Function at 0x420111
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x55f900]
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.004c37f0
push edi
call fcn.0048c30a
add esp, 0x10
test eax, eax
jne 0x4201a2
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 0x4201a2
push 0x114
push 1
call fcn.004ccef4
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x4201b4
push 0x114
push edi
push str.:5:FindFirstFileOrdered___s___FAILED:_calloc__d__FAILED.
call fcn.0041c80a
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.004c2120
leave
ret
push 0x104
lea esi, [ebx + 0x10]
push edi
push esi
call fcn.0048dd2a
push esi
call fcn.0048cfd3
push esi
call fcn.0048cf12
push esi
call fcn.0048ccf5
push esi
call fcn.0048a85a
and dword [ebx + 0xc], 0
mov esi, 0x140
and dword [ebx + 4], 0
push esi
push 0x33
mov dword [ebx + 8], 0x32
call fcn.004ccef4
add esp, 0x24
mov dword [ebx], eax
test eax, eax
jne 0x42022c
mov eax, dword [ebx + 8]
add eax, esi
push eax
push edi
push str.:5:FindFirstFileOrdered___s___FAILED:_calloc2__d__FAILED.
call fcn.0041c80a
add esp, 0xc
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call fcn.004cceff
pop ecx
jmp 0x4201a2
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x148]
and eax, 0x200000
mov dword [ebp - 0x14c], eax
test eax, eax
je 0x420251
test byte [ebp - 0x144], 0x10
jne 0x4202ea
test dword [ebp + 0x10], 0x800000
je 0x420267
test byte [ebp - 0x144], 0x10
je 0x4202ea
test dword [ebp + 0x10], 0x400000
je 0x42029e
lea eax, [ebp - 0x118]
push 0x4e803c
push eax
call fcn.004cd1a7
pop ecx
pop ecx
test eax, eax
je 0x4202ea
lea eax, [ebp - 0x118]
push 0x4f5908
push eax
call fcn.004cd1a7
pop ecx
pop ecx
test eax, eax
je 0x4202ea
mov eax, dword [ebx + 8]
cmp dword [ebx + 4], eax
jl 0x4202cd
imul eax, eax, 0x280
mov edi, 0x140
add eax, edi
push eax
push dword [ebx]
call fcn.004ce874
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebx + 8]
add eax, eax
test ecx, ecx
je 0x420307
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 0x42031e
mov eax, dword [ebp - 0x14c]
jmp 0x420240
inc eax
push eax
push dword [ebp - 0x150]
push str.:FindFirstFileOrdered___s___FAILED:_realloc___FAILED_to_allocate__d_file_slots.
call fcn.0041c80a
add esp, 0xc
jmp 0x420323
mov edi, 0x140
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebx + 4]
test eax, eax
jg 0x420344
push dword [ebx]
call fcn.004cceff
push ebx
call fcn.004cceff
pop ecx
jmp 0x420226
test byte [ebp + 0x10], 1
mov esi, 0x100000
je 0x42036c
test dword [ebp + 0x10], esi
je 0x42035b
push 0x4205f1
jmp 0x420360
push fcn.004205d7
push edi
push eax
push dword [ebx]
call fcn.004ce880
add esp, 0x10
test byte [ebp + 0x10], 2
je 0x420391
test dword [ebp + 0x10], esi
je 0x42037e
push 0x420518
jmp 0x420383
push 0x4204ff
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.004ce880
add esp, 0x10
test byte [ebp + 0x10], 4
je 0x4203b6
test dword [ebp + 0x10], esi
je 0x4203a3
push 0x4205be
jmp 0x4203a8
push 0x4205a5
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.004ce880
add esp, 0x10
test byte [ebp + 0x10], 8
je 0x4203db
test dword [ebp + 0x10], esi
je 0x4203c8
push 0x4204b0
jmp 0x4203cd
push 0x420497
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.004ce880
add esp, 0x10
test byte [ebp + 0x10], 0x10
je 0x420400
test dword [ebp + 0x10], esi
je 0x4203ed
push 0x420657
jmp 0x4203f2
push 0x42060b
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.004ce880
add esp, 0x10
test byte [ebp + 0x10], 0x20
je 0x420425
test dword [ebp + 0x10], esi
je 0x420412
push 0x4204e5
jmp 0x420417
push 0x4204c9
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.004ce880
add esp, 0x10
test byte [ebp + 0x10], 0x40
je 0x42044a
test dword [ebp + 0x10], esi
je 0x420437
push 0x420591
jmp 0x42043c
push fcn.00420531
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.004ce880
add esp, 0x10
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x420467
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 [0x568ae4]
test eax, eax
jne 0x42047a
call fcn.0047bcca
mov dword [0x568ae4], eax
push ebx
push eax
call fcn.0047c17c
cmp dword [0x568ae4], 0
pop ecx
pop ecx
je 0x420331
mov eax, ebx
jmp 0x4201a5