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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3bdc
mov eax, dword fs:[0]
push eax
sub esp, 0x4fc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x508]
mov ecx, 0x13f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x4c6280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], 0
je 0x4370b1
cmp dword [ebp + 0xc], 0
jne 0x4370b8
xor eax, eax
jmp 0x437358
mov word [ebp - 0x224], 0
push 0x208
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.004806d0
add esp, 0xc
push 0x104
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x224]
push edx
call fcn.0048312d
add esp, 0xc
test eax, eax
jne 0x4370fa
xor eax, eax
jmp 0x437358
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x248]
call fcn.00419660
mov dword [ebp - 4], 0
lea eax, [ebp - 0x248]
call fcn.0045e4e0
mov ecx, eax
call fcn.00421e20
mov esi, esp
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp esi, esp
call fcn.0049f8de
test eax, eax
jne 0x437160
mov dword [ebp - 0x500], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00419810
mov eax, dword [ebp - 0x500]
jmp 0x437358
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x26c]
call fcn.00419660
mov byte [ebp - 4], 1
lea edi, [ebp - 0x26c]
call fcn.0045e640
push 0x4b35a8
lea ebx, [ebp - 0x26c]
call fcn.0045e870
mov esi, esp
lea edx, [ebp - 0x4c4]
push edx
lea eax, [ebp - 0x26c]
call fcn.0045e4e0
mov ecx, eax
call fcn.00421e20
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp esi, esp
call fcn.0049f8de
push eax
lea ecx, [ebp - 0x4d0]
call fcn.004377d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4d0]
call fcn.004377f0
test eax, eax
jne 0x43721e
mov dword [ebp - 0x504], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4d0]
call fcn.00437810
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x26c]
call fcn.00419810
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00419810
mov eax, dword [ebp - 0x504]
jmp 0x437358
mov dword [ebp - 0x4d8], 1
cmp dword [ebp - 0x4d8], 0
je 0x437318
push 0x4b35ac
lea eax, [ebp - 0x498]
push eax
call fcn.0047f224
add esp, 8
test eax, eax
je 0x437265
push 0x4b35b0
lea ecx, [ebp - 0x498]
push ecx
call fcn.0047f224
add esp, 8
test eax, eax
jne 0x43728f
mov esi, esp
lea edx, [ebp - 0x4c4]
push edx
lea ecx, [ebp - 0x4d0]
call fcn.00410760
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp esi, esp
call fcn.0049f8de
mov dword [ebp - 0x4d8], eax
jmp 0x437228
mov eax, dword [ebp - 0x4c4]
and eax, 0x10
je 0x4372eb
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x4f8]
call fcn.00419630
mov byte [ebp - 4], 3
lea edx, [ebp - 0x498]
push edx
lea ebx, [ebp - 0x4f8]
call fcn.0045e870
lea edi, [ebp - 0x4f8]
call fcn.0045e640
lea eax, [ebp - 0x4f8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00437650
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4f8]
call fcn.00419810
mov esi, esp
lea ecx, [ebp - 0x4c4]
push ecx
lea ecx, [ebp - 0x4d0]
call fcn.00410760
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp esi, esp
call fcn.0049f8de
mov dword [ebp - 0x4d8], eax
jmp 0x437228
mov dword [ebp - 0x508], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4d0]
call fcn.00437810
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x26c]
call fcn.00419810
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00419810
mov eax, dword [ebp - 0x508]
push edx
mov ecx, ebp
push eax
lea edx, [0x437394]
call fcn.0049f901
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047f404
add esp, 0x508
cmp ebp, esp
call fcn.0049f8de
mov esp, ebp
pop ebp
ret 8