Function at 0x403f00
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x188
lea eax, [esp + 0x13]
push ebx
mov ebx, ecx
push ebp
lea ecx, [esp + 0xb]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.0040f010
lea edx, [esp + 0x50]
push edx
push str.res.dll
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x403f48
lea ecx, [esp + 0x1c]
call fcn.00405d20
pop ebp
xor al, al
pop ebx
add esp, 0x188
ret
push esi
lea eax, [esp + 0xf]
push edi
push eax
lea ecx, [esp + 0x44]
call fcn.00405d90
lea edi, [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x84]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [esp + ecx + 0x84]
push ecx
push edx
lea ecx, [esp + 0x48]
call fcn.00406380
lea eax, [esp + 0x40]
lea ecx, [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00406190
push eax
lea ecx, [esp + 0x1c]
call fcn.004b8b50
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x38]
call fcn.004b8b30
push eax
lea ecx, [esp + 0x3c]
call fcn.004b8b50
lea ecx, [esp + 0x40]
call fcn.00406010
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [esp + 0x58]
push ecx
push ebp
call esi
test eax, eax
je 0x404066
lea edx, [esp + 0x13]
lea ecx, [esp + 0x4c]
push edx
call fcn.00405d90
lea edi, [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x84]
lea ecx, [esp + 0x84]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.00406380
lea edx, [esp + 0x4c]
lea eax, [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x2c]
call fcn.00406190
push eax
lea ecx, [esp + 0x1c]
call fcn.004b8b50
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.004b8b30
push eax
lea ecx, [esp + 0x44]
call fcn.004b8b50
lea ecx, [esp + 0x4c]
call fcn.00406010
lea eax, [esp + 0x58]
push eax
push ebp
call esi
test eax, eax
jne 0x403fdb
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0
push ecx
lea ecx, [esp + 0x28]
call fcn.005d8060
mov eax, dword [eax]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], eax
call fcn.00470dc0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
mov edi, 4
je 0x404116
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x38]
mov dword [esp + 0x38], ecx
push eax
call fcn.00406480
mov ecx, dword [esp + 0x3c]
add esp, 4
mov eax, dword [ecx + 0x10]
push eax
call esi
test eax, eax
mov dword [esp + 0x30], eax
je 0x4040f1
mov edx, dword [ebx + 0x450]
lea ecx, [ebx + 0x44c]
cmp edx, dword [ecx + 8]
je 0x4040e4
test edx, edx
je 0x4040df
mov dword [edx], eax
add dword [ecx + 4], edi
jmp 0x4040f1
lea eax, [esp + 0x30]
push 1
push eax
push edx
call fcn.00485120
lea ecx, [esp + 0x14]
push ecx
call fcn.00406480
add esp, 4
lea edx, [esp + 0x18]
lea ecx, [esp + 0x24]
push edx
call fcn.00470dc0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jne 0x4040a5
mov eax, dword [ebx + 0x448]
lea edx, [ebx + 0x448]
test eax, eax
je 0x404152
mov eax, dword [ebx + 0x450]
mov esi, dword [ebx + 0x454]
lea ecx, [ebx + 0x44c]
cmp eax, esi
je 0x404149
test eax, eax
je 0x404144
mov edx, dword [edx]
mov dword [eax], edx
add dword [ecx + 4], edi
jmp 0x404152
push 1
push edx
push eax
call fcn.00485120
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebx + 0x44c]
mov edx, dword [ebx + 0x450]
cmp eax, edx
lea ecx, [esp + 0x24]
setne bl
call fcn.00405ea0
mov ecx, dword [esp + 0x24]
push 1
push ecx
lea ecx, [esp + 0x2c]
call fcn.004423c0
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x188
ret