Function at 0x488310
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa58
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xa58], eax
call fcn.0048c7d0
test eax, eax
je 0x48853d
test ebx, ebx
je 0x488361
cmp word [ebx], 0
je 0x488361
lea ecx, [ebp - 0x804]
push ebx
push ecx
call fcn.00489690
add esp, 8
jmp 0x488376
push 0x1000000
lea edx, [ebp - 0x804]
push edx
push edi
call fcn.00489490
add esp, 0xc
mov eax, dword [ebp - 0xa58]
cmp eax, 0xffffffff
jne 0x4883d1
lea eax, [ebp - 0xa54]
push eax
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa58], eax
cmp eax, 0xffffffff
jne 0x4883e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4885eb
cmp eax, 3
je 0x4885eb
cmp eax, 0x12
je 0x4885eb
mov eax, 1
mov byte [esi + 0x10c4], al
jmp 0x4887ea
lea edx, [ebp - 0xa54]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x48860a
lea ecx, [ebp - 0x804]
push ecx
lea ebx, [esi + 0x400]
push ebx
call fcn.00489690
add esp, 8
lea edx, [ebp - 0xa28]
push edx
push ebx
call fcn.00489f00
add esp, 4
push eax
call fcn.00489690
push 0x1000000
push esi
push ebx
call fcn.00489460
mov ecx, dword [ebp - 0xa38]
xor eax, eax
xor edi, edi
add eax, dword [ebp - 0xa34]
push 0x1000000
adc ecx, edi
mov dword [esi + 0xc04], ecx
lea ecx, [esi + 0xca8]
mov dword [esi + 0xc00], eax
mov eax, dword [ebp - 0xa54]
push ecx
lea edx, [ebp - 0x820]
push edx
mov dword [esi + 0xc08], eax
call fcn.00489460
mov eax, dword [ebp - 0xa50]
mov ecx, dword [ebp - 0xa4c]
mov edx, dword [ebp - 0xa48]
mov dword [esi + 0x10a8], eax
mov eax, dword [ebp - 0xa44]
mov dword [esi + 0x10ac], ecx
mov ecx, dword [ebp - 0xa40]
mov dword [esi + 0x10b4], eax
add esp, 0x20
mov dword [esi + 0x10b0], edx
mov edx, dword [ebp - 0xa3c]
lea eax, [ebp - 0xa40]
mov dword [esi + 0x10b8], ecx
push eax
lea ecx, [esi + 0xc18]
mov dword [esi + 0x10bc], edx
call fcn.00488100
lea ecx, [ebp - 0xa50]
push ecx
lea ecx, [esi + 0xc48]
call fcn.00488100
lea edx, [ebp - 0xa48]
push edx
lea ecx, [esi + 0xc78]
call fcn.00488100
mov eax, dword [esi + 0xc18]
mov ecx, dword [esi + 0xc2c]
sub eax, 0x3c
shl eax, 4
or eax, dword [esi + 0xc1c]
shr ecx, 1
shl eax, 5
or eax, dword [esi + 0xc20]
push ebx
shl eax, 5
or eax, dword [esi + 0xc24]
shl eax, 6
or eax, dword [esi + 0xc28]
shl eax, 5
or eax, ecx
mov dword [esi + 0xc0c], eax
call fcn.004893d0
add esp, 4
test al, al
je 0x4887ea
xor edx, edx
mov word [ebx], dx
jmp 0x4887ea
test edi, edi
je 0x48855c
cmp byte [edi], 0
je 0x48855c
lea edx, [ebp - 0x404]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x488550
jmp 0x488571
push 0x1000000
lea eax, [ebp - 0x404]
push eax
push ebx
call fcn.00489460
add esp, 0xc
mov eax, dword [ebp - 0xa58]
cmp eax, 0xffffffff
jne 0x4885f8
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jle 0x488598
xor eax, eax
jmp 0x4885b2
lea eax, [edi + edi]
call fcn.00497dd0
mov eax, esp
push 3
push edi
lea edx, [ebp - 0x404]
push edx
push eax
call fcn.00403550
lea ecx, [ebp - 0xa54]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa58], eax
cmp eax, 0xffffffff
jne 0x48862b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4885eb
cmp eax, 3
je 0x4885eb
mov eax, 1
mov byte [esi + 0x10c4], al
jmp 0x4887ea
xor eax, eax
mov byte [esi + 0x10c4], al
jmp 0x4887ea
lea edx, [ebp - 0xa54]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x48862b
mov dword [ebp - 0xa58], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [esi + 0x10c4], al
jmp 0x4887ea
lea eax, [ebp - 0x404]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x488637
lea edx, [ebp - 0xa28]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x48865a
xor edi, edi
jmp 0x488678
lea edi, [eax + eax]
mov eax, edi
call fcn.00497dd0
mov eax, esp
push 3
push edi
lea ecx, [ebp - 0xa28]
push ecx
push eax
call fcn.00403590
mov edi, eax
push esi
call fcn.00489e80
add esp, 4
sub eax, edi
mov cl, byte [edi]
mov byte [eax + edi], cl
inc edi
test cl, cl
jne 0x488683
push 0x1000000
lea ebx, [esi + 0x400]
push ebx
push esi
call fcn.00489490
mov eax, dword [ebp - 0xa38]
xor edx, edx
add esp, 0xc
xor edi, edi
add edx, dword [ebp - 0xa34]
adc eax, edi
mov dword [esi + 0xc04], eax
mov dword [esi + 0xc00], edx
mov edx, dword [ebp - 0xa54]
lea eax, [ebp - 0x820]
push eax
mov dword [esi + 0xc08], edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4886e5
xor eax, eax
jmp 0x488701
lea edi, [eax + eax]
mov eax, edi
call fcn.00497dd0
mov eax, esp
push 3
push edi
lea ecx, [ebp - 0x820]
push ecx
push eax
call fcn.00403590
lea edx, [esi + 0xca8]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x488710
mov edx, dword [ebp - 0xa50]
mov ecx, dword [ebp - 0xa48]
mov eax, dword [ebp - 0xa4c]
mov dword [esi + 0x10a8], edx
mov edx, dword [ebp - 0xa44]
mov dword [esi + 0x10b0], ecx
mov ecx, dword [ebp - 0xa3c]
mov dword [esi + 0x10b4], edx
mov dword [esi + 0x10ac], eax
mov eax, dword [ebp - 0xa40]
lea edx, [ebp - 0xa40]
mov dword [esi + 0x10bc], ecx
push edx
lea ecx, [esi + 0xc18]
mov dword [esi + 0x10b8], eax
call fcn.00488100
lea eax, [ebp - 0xa50]
push eax
lea ecx, [esi + 0xc48]
call fcn.00488100
lea ecx, [ebp - 0xa48]
push ecx
lea ecx, [esi + 0xc78]
call fcn.00488100
mov edx, dword [esi + 0xc18]
mov eax, dword [esi + 0xc2c]
sub edx, 0x3c
shl edx, 4
or edx, dword [esi + 0xc1c]
shr eax, 1
shl edx, 5
or edx, dword [esi + 0xc20]
push esi
shl edx, 5
or edx, dword [esi + 0xc24]
shl edx, 6
or edx, dword [esi + 0xc28]
shl edx, 5
or edx, eax
mov dword [esi + 0xc0c], edx
call fcn.004893a0
add esp, 4
test al, al
je 0x4887ea
xor ecx, ecx
mov word [ebx], cx
mov dword [esi + 0x10c0], 0
mov eax, dword [ebp - 0xa58]
lea esp, [ebp - 0xa64]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret