Function at 0x429090
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x581900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x140
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x144]
push 0
push eax
mov dword [ebp - 0x148], esi
call fcn.004e69c0
push esi
call fcn.004a73a0
add esp, 0x10
test eax, eax
jne 0x429490
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x14c], edi
cmp edi, 0xffffffff
je 0x429490
push ebx
push 0x114
push 1
call fcn.004eea94
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x42913e
push 0x114
push esi
push str.:5:FindFirstFileOrdered___s___FAILED:_calloc__d__FAILED.
call fcn.00424a90
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
push 0x104
push dword [ebp - 0x148]
lea esi, [ebx + 0x10]
push esi
call fcn.004a9a20
push esi
call fcn.004a87a0
push esi
call fcn.004a86c0
push esi
call fcn.004a8490
push esi
call fcn.004a3b10
push 0x140
push 0x33
mov dword [ebx + 0xc], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0x32
call fcn.004eea94
add esp, 0x24
mov dword [ebx], eax
test eax, eax
jne 0x4291d4
mov eax, dword [ebx + 8]
add eax, 0x140
push eax
push dword [ebp - 0x148]
push str.:5:FindFirstFileOrdered___s___FAILED:_calloc2__d__FAILED.
call fcn.00424a90
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call fcn.004eea9f
add esp, 4
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, eax
and ecx, 0x200000
mov dword [ebp - 0x150], ecx
test ecx, ecx
mov ecx, dword [ebp - 0x144]
je 0x4291f8
test cl, 0x10
jne 0x42928e
test eax, 0x800000
je 0x429208
test cl, 0x10
je 0x42928e
test eax, 0x400000
je 0x42923f
lea eax, [ebp - 0x118]
push 0x50b02c
push eax
call fcn.004eeba8
add esp, 8
test eax, eax
je 0x42928e
lea eax, [ebp - 0x118]
push 0x5184e8
push eax
call fcn.004eeba8
add esp, 8
test eax, eax
je 0x42928e
mov eax, dword [ebx + 8]
cmp dword [ebx + 4], eax
jl 0x42926d
lea eax, [eax + eax*4]
shl eax, 7
add eax, 0x140
push eax
push dword [ebx]
call fcn.004f01e4
mov ecx, eax
add esp, 8
mov eax, dword [ebx + 8]
add eax, eax
test ecx, ecx
je 0x4292ae
mov dword [ebx], ecx
mov dword [ebx + 8], eax
mov eax, dword [ebx + 4]
lea esi, [ebp - 0x144]
mov ecx, 0x50
lea edi, [eax + eax*4]
shl edi, 6
add edi, dword [ebx]
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 4]
mov edi, dword [ebp - 0x14c]
lea eax, [ebp - 0x144]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4292c3
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x150]
jmp 0x4291e5
inc eax
push eax
push dword [ebp - 0x148]
push str.:FindFirstFileOrdered___s___FAILED:_realloc___FAILED_to_allocate__d_file_slots.
call fcn.00424a90
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebx + 4]
test ecx, ecx
jle 0x429459
mov eax, dword [ebp + 0x10]
test al, 1
je 0x429303
mov edx, dword [ebx]
test eax, 0x100000
je 0x4292ec
push 0x429660
jmp 0x4292f1
push 0x429640
push 0x140
push ecx
push edx
call fcn.004f01f0
mov eax, dword [ebp + 0x10]
add esp, 0x10
test al, 2
je 0x429331
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
test eax, 0x100000
je 0x42931a
push 0x429550
jmp 0x42931f
push 0x429530
push 0x140
push edx
push ecx
call fcn.004f01f0
mov eax, dword [ebp + 0x10]
add esp, 0x10
test al, 4
je 0x42935f
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
test eax, 0x100000
je 0x429348
push 0x429620
jmp 0x42934d
push 0x429600
push 0x140
push edx
push ecx
call fcn.004f01f0
mov eax, dword [ebp + 0x10]
add esp, 0x10
test al, 8
je 0x42938d
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
test eax, 0x100000
je 0x429376
push 0x4294d0
jmp 0x42937b
push 0x4294b0
push 0x140
push edx
push ecx
call fcn.004f01f0
mov eax, dword [ebp + 0x10]
add esp, 0x10
test al, 0x10
je 0x4293bb
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
test eax, 0x100000
je 0x4293a4
push 0x4296e0
jmp 0x4293a9
push 0x429680
push 0x140
push edx
push ecx
call fcn.004f01f0
mov eax, dword [ebp + 0x10]
add esp, 0x10
test al, 0x20
je 0x4293e9
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
test eax, 0x100000
je 0x4293d2
push 0x429510
jmp 0x4293d7
push 0x4294f0
push 0x140
push edx
push ecx
call fcn.004f01f0
mov eax, dword [ebp + 0x10]
add esp, 0x10
test al, 0x40
je 0x429414
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
test eax, 0x100000
je 0x429400
push 0x4295e0
jmp 0x429405
push fcn.00429570
push 0x140
push edx
push ecx
call fcn.004f01f0
add esp, 0x10
mov edi, dword [ebp - 0x154]
test edi, edi
je 0x429433
mov eax, dword [ebx + 0xc]
mov ecx, 0x50
lea esi, [eax + eax*4]
shl esi, 6
add esi, dword [ebx]
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0xc]
mov eax, dword [0x58aae4]
test eax, eax
jne 0x429446
call fcn.00490e40
mov dword [0x58aae4], eax
push ebx
push eax
call fcn.004913f0
add esp, 8
cmp dword [0x58aae4], 0
jne 0x42947d
push dword [ebx]
call fcn.004eea9f
push ebx
call fcn.004eea9f
add esp, 8
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
xor ecx, ebp
pop esi
call fcn.004e50dc
mov esp, ebp
pop ebp
ret