Function at 0x1004f90
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x680
mov eax, dword [0x100d0ac]
push ebx
push esi
push edi
push 0x41
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
pop ecx
mov dword [ebp - 0x680], eax
xor eax, eax
push 0x41
mov byte [ebp - 0x31c], 0
lea edi, [ebp - 0x31b]
rep stosd dword es:[edi], eax
pop ecx
mov byte [ebp - 0x10c], al
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x31c]
push eax
xor esi, esi
push 0x23
mov dword [ebp - 0x670], esi
call fcn.010049e4
test eax, eax
jge 0x1004ffd
mov dword [ebp - 0x670], 0xffff
jmp 0x10051e7
mov ebx, 0x105
push ebx
lea eax, [ebp - 0x10c]
push eax
push esi
lea eax, [ebp - 0x31c]
push eax
call fcn.01004e2a
cmp eax, esi
mov dword [ebp - 0x678], eax
jne 0x1005030
mov dword [ebp - 0x670], 0xffff
jmp 0x10051fa
push esi
push esi
push esi
push eax
call fcn.01004e2a
push 0x41
pop ecx
mov dword [ebp - 0x674], eax
push dword [ebp - 0x674]
xor eax, eax
push 0x1001720
push 0x100
push esi
mov byte [ebp - 0x214], 0
lea edi, [ebp - 0x213]
push esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.01004448
add esp, 0x1c
cmp eax, esi
jge 0x1005080
and eax, 0xffff
jmp 0x10050a5
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x67c], eax
jne 0x10050b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x670], eax
jmp 0x10051e7
test byte [ebp - 0x66c], 0x10
je 0x10051bf
push 2
mov edi, 0x100171c
lea esi, [ebp - 0x640]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10051bd
push 3
mov edi, 0x1001718
lea esi, [ebp - 0x640]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10051bd
push 0x41
pop ecx
push dword [ebp - 0x680]
mov byte [ebp - 0x52c], al
lea edi, [ebp - 0x52b]
rep stosd dword es:[edi], eax
mov esi, 0x10016f0
push esi
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x640]
push eax
push dword [ebp - 0x674]
lea eax, [ebp - 0x52c]
push 0x10016e0
push 0x100
push 0
push 0
push ebx
push eax
call fcn.01004448
add esp, 0x2c
test eax, eax
jl 0x1005156
lea eax, [ebp - 0x52c]
push eax
call fcn.01004ec8
test eax, eax
je 0x1005156
mov dword [ebp - 0x670], eax
push 0x41
pop ecx
push dword [ebp - 0x680]
xor eax, eax
push esi
mov byte [ebp - 0x424], 0
lea edi, [ebp - 0x423]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x640]
push eax
push dword [ebp - 0x674]
lea eax, [ebp - 0x424]
push 0x10016cc
push 0x100
push 0
push 0
push ebx
push eax
call fcn.01004448
add esp, 0x2c
test eax, eax
jl 0x10051bd
lea eax, [ebp - 0x424]
push eax
call fcn.01004ec8
test eax, eax
je 0x10051bd
mov dword [ebp - 0x670], eax
xor esi, esi
lea eax, [ebp - 0x66c]
push eax
push dword [ebp - 0x67c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x10050b0
push dword [ebp - 0x67c]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x678], esi
je 0x10051fa
push dword [ebp - 0x678]
call fcn.0100a0a7
cmp dword [ebp - 0x674], esi
pop edi
pop esi
pop ebx
je 0x1005210
push dword [ebp - 0x674]
call fcn.0100a0a7
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x670]
call fcn.01009b9d
leave
ret 4