Function at 0x4067c0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x25c
mov eax, dword [0x4a0538]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push ebp
mov ebp, dword [esp + 0x268]
push edi
push 0
mov edi, ecx
push 0xfa0
mov dword [esp + 0x14], edi
mov dword [ebp], 0
call fcn.00401f70
mov ecx, edi
mov dword [ebp + 4], eax
call fcn.00405e70
push eax
lea eax, [esp + 0x164]
push str._sSaveData____
push eax
call fcn.004649e7
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, 0xffffffff
je 0x406bab
push esi
jmp 0x406844
mov edi, dword [esp + 0x10]
test byte [esp + 0x24], 0x10
je 0x406b8f
mov ecx, 0x480094
lea eax, [esp + 0x50]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406878
test dl, dl
je 0x406874
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406878
add eax, 2
add ecx, 2
test dl, dl
jne 0x406858
xor eax, eax
jmp 0x40687d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406b8f
mov ecx, 0x480090
lea eax, [esp + 0x50]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4068b0
test dl, dl
je 0x4068ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4068b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x406890
xor eax, eax
jmp 0x4068b5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406b8f
lea eax, [esp + 0x50]
push eax
call fcn.00465a7a
mov esi, eax
add esp, 4
push esi
mov ecx, edi
mov dword [esp + 0x18], esi
call fcn.00405e70
push eax
lea ecx, [esp + 0x16c]
push str._sSaveData_04d__
push ecx
call fcn.004649e7
add esp, 0x10
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, 0xffffffff
je 0x406b8f
jmp 0x406924
mov esi, dword [esp + 0x14]
test byte [esp + 0x24], 0x10
je 0x406b70
mov ecx, 0x480094
lea eax, [esp + 0x50]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406958
test dl, dl
je 0x406954
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406958
add eax, 2
add ecx, 2
test dl, dl
jne 0x406938
xor eax, eax
jmp 0x40695d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406b70
mov ecx, 0x480090
lea eax, [esp + 0x50]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406990
test dl, dl
je 0x40698c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406990
add eax, 2
add ecx, 2
test dl, dl
jne 0x406970
xor eax, eax
jmp 0x406995
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406b70
lea ecx, [esp + 0x50]
push ecx
call fcn.00465a7a
mov ecx, dword [esp + 0x14]
add esp, 4
mov ebx, eax
push ebx
push esi
call fcn.00405e70
push eax
lea edx, [esp + 0x170]
push str._sSaveData_04d_02d__
push edx
call fcn.004649e7
add esp, 0x14
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x168]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [esp + 0x20], esi
cmp esi, 0xffffffff
je 0x406b70
nop
test byte [esp + 0x24], 0x10
je 0x406b51
mov ecx, 0x480094
lea eax, [esp + 0x50]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406a24
test dl, dl
je 0x406a20
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406a24
add eax, 2
add ecx, 2
test dl, dl
jne 0x406a04
xor eax, eax
jmp 0x406a29
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406b51
mov ecx, 0x480090
lea eax, [esp + 0x50]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406a60
test dl, dl
je 0x406a5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406a60
add eax, 2
add ecx, 2
test dl, dl
jne 0x406a40
xor eax, eax
jmp 0x406a65
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406b51
lea edx, [esp + 0x50]
push edx
call fcn.00465a7a
add esp, 4
push eax
mov eax, dword [esp + 0x18]
push ebx
push eax
lea ecx, [esp + 0x170]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00406780
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x406b51
test byte [esp + 0x24], 0x10
jne 0x406b32
lea ecx, [esp + 0x164]
push 0x5c
push ecx
lea esi, [esp + 0x58]
call fcn.00464f70
mov ecx, esi
mov edx, 1
add esp, 8
sub edx, ecx
lea ecx, [eax + edx]
lea esp, [esp]
mov al, byte [esi]
mov byte [ecx + esi], al
inc esi
test al, al
jne 0x406ae0
push 0
lea edx, [esp + 0x168]
push edx
call fcn.00401fb0
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [edx + ecx*4], eax
inc dword [ebp]
mov eax, dword [ebp]
mov ecx, eax
and ecx, 0x800001ff
jns 0x406b1a
dec ecx
or ecx, 0xfffffe00
inc ecx
jne 0x406b32
push 0
lea edx, [eax*4 + 0xfa0]
mov eax, dword [ebp + 4]
push edx
push eax
call fcn.00401f90
mov dword [ebp + 4], eax
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406ab0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4069f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406920
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406840
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
mov ecx, dword [esp + 0x264]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004637ae
add esp, 0x25c
ret 4