Function at 0x538f80
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x364
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x1cb0
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
mov eax, dword [0x714cfc]
lea esi, [esp + 0x274]
mov dword [esp + 0x18], ebp
call fcn.0053d180
mov edi, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x538fb6
mov eax, dword [str.checkpoints.sav]
mov ecx, dword [0x670a3c]
mov edx, dword [0x670a40]
mov dword [edi], eax
mov eax, dword [0x670a44]
mov dword [edi + 4], ecx
mov cx, word [0x670a48]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x278]
push eax
mov word [edi + 0x10], cx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x5391aa
add ebp, 4
mov ecx, dword [str.checkpoints_]
mov eax, dword [0x670a30]
mov edx, dword [0x670a2c]
mov dword [esp + 0x34], ecx
mov cl, byte [0x670a34]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x160]
mov dword [esp + 0x38], edx
mov byte [esp + 0x40], cl
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x539040
lea edi, [esp + 0x34]
sub eax, esi
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x539050
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x34]
and ecx, 3
push 0x2e
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.00625a30
add esp, 8
test eax, eax
je 0x53907c
mov byte [eax], 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
lea ebx, [esp + 0x2c]
call fcn.00538d70
add esp, 0xc
mov esi, eax
cmp si, 0xffff
je 0x539175
lea eax, [esp + 0x34]
push str.autosave
push eax
call fcn.00625680
add esp, 8
test eax, eax
je 0x5390c8
mov al, byte [esp + 0x378]
test al, al
je 0x539175
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [ebp], edx
mov edx, dword [esp + 0x28]
lea eax, [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov word [ebp - 4], si
mov dword [ebp + 0x20], 0
mov eax, dword [esp + 0x148]
mov dword [ebp + 0x18], eax
mov ecx, dword [esp + 0x14c]
lea edx, [esp + 0x34]
push 0x5c
push edx
mov dword [ebp + 0x1c], ecx
call fcn.00625a30
add esp, 8
inc eax
mov edx, ebp
sub edx, eax
mov ecx, eax
lea esi, [edx + 0x24]
lea esp, [esp]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x539130
mov edi, str.autosave
mov esi, eax
mov ecx, 9
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x539155
mov dword [ebp + 0x20], 2
jmp 0x53916e
mov esi, eax
mov edi, str.autosave1
mov ecx, 0xa
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x53916e
mov dword [ebp + 0x20], 1
inc dword [esp + 0x10]
add ebp, 0x48
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x134]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x539197
cmp dword [esp + 0x10], 0x66
jl 0x539010
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov cl, byte [esp + 0x37c]
push 0x538f40
push 0x48
push ebx
push ebp
mov byte [0x69e7f8], cl
call fcn.00623660
add esp, 0x10
xor edi, edi
test ebx, ebx
jle 0x53920b
lea esi, [ebp + 4]
mov eax, dword [esp + 0x380]
test eax, eax
je 0x539204
mov edx, dword [esp + 0x384]
push edx
mov edx, dword [esi]
lea ecx, [esi + 8]
push ecx
mov ecx, dword [esi + 4]
push edx
xor edx, edx
mov dx, word [esi - 4]
push ecx
lea ecx, [esi + 0x24]
push edx
push ecx
push edi
call eax
add esp, 0x1c
test al, al
je 0x539205
inc edi
add esi, 0x48
dec ebx
jne 0x5391d1
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x364
ret