Function at 0x42967e
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x140
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x144]
push 0
push eax
mov dword [ebp - 0x150], edi
call fcn.004e4da0
push edi
call fcn.0049f486
add esp, 0x10
test eax, eax
jne 0x42970f
lea eax, [ebp - 0x144]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x148], esi
cmp esi, 0xffffffff
je 0x42970f
push 0x114
push 1
call fcn.004ee464
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x429721
push 0x114
push edi
push str.:5:FindFirstFileOrdered___s___FAILED:_calloc__d__FAILED.
call fcn.004255b9
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret
push 0x104
lea esi, [ebx + 0x10]
push edi
push esi
call fcn.004a11a5
push esi
call fcn.004a03e7
push esi
call fcn.004a0326
push esi
call fcn.004a0109
push esi
call fcn.0049d915
and dword [ebx + 0xc], 0
mov esi, 0x140
and dword [ebx + 4], 0
push esi
push 0x33
mov dword [ebx + 8], 0x32
call fcn.004ee464
add esp, 0x24
mov dword [ebx], eax
test eax, eax
jne 0x429799
mov eax, dword [ebx + 8]
add eax, esi
push eax
push edi
push str.:5:FindFirstFileOrdered___s___FAILED:_calloc2__d__FAILED.
call fcn.004255b9
add esp, 0xc
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call fcn.004ee46f
pop ecx
jmp 0x42970f
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x148]
and eax, 0x200000
mov dword [ebp - 0x14c], eax
test eax, eax
je 0x4297be
test byte [ebp - 0x144], 0x10
jne 0x429857
test dword [ebp + 0x10], 0x800000
je 0x4297d4
test byte [ebp - 0x144], 0x10
je 0x429857
test dword [ebp + 0x10], 0x400000
je 0x42980b
lea eax, [ebp - 0x118]
push 0x50a0b4
push eax
call fcn.004ee718
pop ecx
pop ecx
test eax, eax
je 0x429857
lea eax, [ebp - 0x118]
push 0x51bf40
push eax
call fcn.004ee718
pop ecx
pop ecx
test eax, eax
je 0x429857
mov eax, dword [ebx + 8]
cmp dword [ebx + 4], eax
jl 0x42983a
imul eax, eax, 0x280
mov edi, 0x140
add eax, edi
push eax
push dword [ebx]
call fcn.004f0009
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebx + 8]
add eax, eax
test ecx, ecx
je 0x429874
mov dword [ebx], ecx
mov dword [ebx + 8], eax
imul edi, dword [ebx + 4], 0x140
lea esi, [ebp - 0x144]
push 0x50
pop ecx
add edi, dword [ebx]
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 4]
mov esi, dword [ebp - 0x148]
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x42988b
mov eax, dword [ebp - 0x14c]
jmp 0x4297ad
inc eax
push eax
push dword [ebp - 0x150]
push str.:FindFirstFileOrdered___s___FAILED:_realloc___FAILED_to_allocate__d_file_slots.
call fcn.004255b9
add esp, 0xc
jmp 0x429890
mov edi, 0x140
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebx + 4]
test eax, eax
jg 0x4298b1
push dword [ebx]
call fcn.004ee46f
push ebx
call fcn.004ee46f
pop ecx
jmp 0x429793
test byte [ebp + 0x10], 1
mov esi, 0x100000
je 0x4298d9
test dword [ebp + 0x10], esi
je 0x4298c8
push 0x429b5e
jmp 0x4298cd
push fcn.00429b44
push edi
push eax
push dword [ebx]
call fcn.004f0020
add esp, 0x10
test byte [ebp + 0x10], 2
je 0x4298fe
test dword [ebp + 0x10], esi
je 0x4298eb
push 0x429a85
jmp 0x4298f0
push 0x429a6c
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.004f0020
add esp, 0x10
test byte [ebp + 0x10], 4
je 0x429923
test dword [ebp + 0x10], esi
je 0x429910
push 0x429b2b
jmp 0x429915
push 0x429b12
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.004f0020
add esp, 0x10
test byte [ebp + 0x10], 8
je 0x429948
test dword [ebp + 0x10], esi
je 0x429935
push 0x429a1d
jmp 0x42993a
push 0x429a04
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.004f0020
add esp, 0x10
test byte [ebp + 0x10], 0x10
je 0x42996d
test dword [ebp + 0x10], esi
je 0x42995a
push 0x429bc4
jmp 0x42995f
push 0x429b78
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.004f0020
add esp, 0x10
test byte [ebp + 0x10], 0x20
je 0x429992
test dword [ebp + 0x10], esi
je 0x42997f
push 0x429a52
jmp 0x429984
push 0x429a36
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.004f0020
add esp, 0x10
test byte [ebp + 0x10], 0x40
je 0x4299b7
test dword [ebp + 0x10], esi
je 0x4299a4
push 0x429afe
jmp 0x4299a9
push fcn.00429a9e
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.004f0020
add esp, 0x10
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x4299d4
imul esi, dword [ebx + 0xc], 0x140
mov edi, eax
push 0x50
pop ecx
add esi, dword [ebx]
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0xc]
mov eax, dword [0x5a3f54]
test eax, eax
jne 0x4299e7
call fcn.0048e640
mov dword [0x5a3f54], eax
push ebx
push eax
call fcn.0048eaf2
cmp dword [0x5a3f54], 0
pop ecx
pop ecx
je 0x42989e
mov eax, ebx
jmp 0x429712