Function at 0x42ae6d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x144], 0
push esi
mov esi, dword [ebp + 8]
push 0x13c
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x140]
push 0
push eax
mov dword [ebp - 0x14c], esi
call fcn.00508d00
push esi
call fcn.004010dc
add esp, 0x10
test eax, eax
je 0x42aec2
or eax, 0xffffffff
jmp 0x42b226
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x148], eax
je 0x42aeba
push ebx
push edi
push 0x11e6
mov edi, str..File.c
push edi
push 1
mov esi, 0x114
push esi
push 1
call fcn.00509d00
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x42af25
push esi
push dword [ebp - 0x14c]
push str.:5:FindFirstFileOrdered___s___FAILED:_calloc__d__FAILED.
call fcn.004020c2
add esp, 0xc
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x42b21d
push 0x104
push dword [ebp - 0x14c]
lea esi, [ebx + 0x10]
push esi
call fcn.00402abd
push esi
call fcn.00401de3
push esi
call fcn.00401d0c
push esi
call fcn.00403224
push esi
call fcn.00402a9f
and dword [ebx + 0xc], 0
and dword [ebx + 4], 0
push 0x11f8
push edi
push 1
mov esi, 0x140
push esi
push 0x33
mov dword [ebx + 8], 0x32
call fcn.00509d00
add esp, 0x30
test eax, eax
mov dword [ebx], eax
jne 0x42afb2
mov eax, dword [ebx + 8]
add eax, esi
push eax
push dword [ebp - 0x14c]
push str.:5:FindFirstFileOrdered___s___FAILED:_calloc2__d__FAILED.
call fcn.004020c2
add esp, 0xc
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
push ebx
call fcn.0050a6d0
pop ecx
pop ecx
jmp 0x42b21d
mov eax, dword [ebp + 0x10]
and eax, 0x200000
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x42afd6
test byte [ebp - 0x144], 0x10
jne 0x42b072
test dword [ebp + 0x10], 0x800000
je 0x42afec
test byte [ebp - 0x144], 0x10
je 0x42b072
test dword [ebp + 0x10], 0x400000
je 0x42b023
lea eax, [ebp - 0x118]
push 0x5824dc
push eax
call fcn.0050da80
test eax, eax
pop ecx
pop ecx
je 0x42b072
lea eax, [ebp - 0x118]
push 0x593fe8
push eax
call fcn.0050da80
test eax, eax
pop ecx
pop ecx
je 0x42b072
mov eax, dword [ebx + 8]
cmp dword [ebx + 4], eax
jl 0x42b04f
imul eax, eax, 0x280
push 0x1216
push edi
push 1
add eax, esi
push eax
push dword [ebx]
call fcn.00509e20
add esp, 0x14
test eax, eax
je 0x42b08f
shl dword [ebx + 8], 1
mov dword [ebx], eax
mov edi, dword [ebx + 4]
imul edi, edi, 0x140
add edi, dword [ebx]
push 0x50
pop ecx
lea esi, [ebp - 0x144]
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 4]
mov esi, 0x140
mov edi, str..File.c
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42afc0
jmp 0x42b0aa
mov eax, dword [ebx + 8]
lea eax, [eax + eax + 1]
push eax
push dword [ebp - 0x14c]
push str.:FindFirstFileOrdered___s___FAILED:_realloc___FAILED_to_allocate__d_file_slots.
call fcn.004020c2
add esp, 0xc
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebx + 4]
test eax, eax
jle 0x42b209
test byte [ebp + 0x10], 1
mov edi, 0x100000
je 0x42b0e9
test dword [ebp + 0x10], edi
je 0x42b0d8
push 0x42ac06
jmp 0x42b0dd
push 0x42abe8
push esi
push eax
push dword [ebx]
call fcn.00511c50
add esp, 0x10
test byte [ebp + 0x10], 2
je 0x42b10e
test dword [ebp + 0x10], edi
je 0x42b0fb
push 0x42ac40
jmp 0x42b100
push 0x42ac24
push esi
push dword [ebx + 4]
push dword [ebx]
call fcn.00511c50
add esp, 0x10
test byte [ebp + 0x10], 4
je 0x42b133
test dword [ebp + 0x10], edi
je 0x42b120
push 0x42ac78
jmp 0x42b125
push 0x42ac5c
push esi
push dword [ebx + 4]
push dword [ebx]
call fcn.00511c50
add esp, 0x10
test byte [ebp + 0x10], 8
je 0x42b158
test dword [ebp + 0x10], edi
je 0x42b145
push 0x42acb0
jmp 0x42b14a
push 0x42ac94
push esi
push dword [ebx + 4]
push dword [ebx]
call fcn.00511c50
add esp, 0x10
test byte [ebp + 0x10], 0x10
je 0x42b17d
test dword [ebp + 0x10], edi
je 0x42b16a
push 0x42ad3f
jmp 0x42b16f
push 0x42accc
push esi
push dword [ebx + 4]
push dword [ebx]
call fcn.00511c50
add esp, 0x10
test byte [ebp + 0x10], 0x20
je 0x42b1a2
test dword [ebp + 0x10], edi
je 0x42b18f
push 0x42add1
jmp 0x42b194
push 0x42adb2
push esi
push dword [ebx + 4]
push dword [ebx]
call fcn.00511c50
add esp, 0x10
test byte [ebp + 0x10], 0x40
je 0x42b1c7
test dword [ebp + 0x10], edi
je 0x42b1b4
push 0x42ae57
jmp 0x42b1b9
push fcn.0042aded
push esi
push dword [ebx + 4]
push dword [ebx]
call fcn.00511c50
add esp, 0x10
mov edi, dword [ebp - 0x154]
test edi, edi
je 0x42b1e4
mov esi, dword [ebx + 0xc]
imul esi, esi, 0x140
add esi, dword [ebx]
push 0x50
pop ecx
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0xc]
mov eax, dword [0x635944]
test eax, eax
jne 0x42b1f7
call fcn.00402f4f
mov dword [0x635944], eax
push ebx
push eax
call fcn.0040153c
cmp dword [0x635944], 0
pop ecx
pop ecx
jne 0x42b222
push 1
push dword [ebx]
call fcn.0050a6d0
push 1
push ebx
call fcn.0050a6d0
add esp, 0x10
or eax, 0xffffffff
jmp 0x42b224
mov eax, ebx
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00508cf0
leave
ret