Function at 0x422458
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push 0x140
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x144]
push ebx
push eax
mov dword [ebp - 0x148], esi
call fcn.004c37f0
push esi
call fcn.0048c30a
add esp, 0x10
test eax, eax
jne 0x4224cd
push 1
mov edi, 0x71c
push edi
call fcn.004ccef4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4224cd
push 1
push edi
call fcn.004ccef4
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4224de
push esi
call fcn.004cceff
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret
push 0x71c
push dword [ebp - 0x148]
push esi
call fcn.0048dd2a
push esi
call fcn.0048cfd3
push esi
call fcn.0048cf12
push 0x22
push esi
call fcn.0048cb43
push esi
call fcn.0041fbe3
add esp, 0x20
test eax, eax
je 0x422555
push 0x4e86ec
push esi
call fcn.004c3950
pop ecx
pop ecx
test eax, eax
jne 0x422555
push esi
call fcn.004cd280
pop ecx
cmp byte [eax + esi - 1], 0x5c
je 0x422542
push 0x71c
push 0x4f571c
push esi
call fcn.0048dc3d
add esp, 0xc
push 0x71c
push 0x4e86ec
push esi
call fcn.0048dc3d
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x148], eax
cmp eax, 0xffffffff
jne 0x422580
push esi
call fcn.004cceff
push edi
call fcn.004cceff
pop ecx
jmp 0x4224cc
lea eax, [ebp - 0x118]
push eax
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x422629
cmp byte [ebp - 0x118], 0x2e
je 0x422629
cmp dword [ebp + 0xc], eax
je 0x4225b0
test byte [ebp - 0x144], 2
jne 0x422629
test byte [ebp - 0x144], 0x10
jne 0x422629
inc ebx
cmp dword [ebp - 0x14c], 0
je 0x422629
push 0x71c
lea eax, [ebp - 0x118]
push eax
push edi
call fcn.0048dd2a
push 0x104
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0048dd2a
lea eax, [ebp - 0x118]
push eax
call fcn.0048ccf5
lea eax, [ebp - 0x118]
push eax
push edi
call fcn.0048c896
push 0x104
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.0048dd2a
add esp, 0x30
lea eax, [ebp - 0x144]
push dword [ebp + 0x18]
push eax
call dword [ebp - 0x14c]
test eax, eax
je 0x422644
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x422580
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x10], 0
je 0x422714
push esi
push edi
call fcn.004ccf60
push edi
call fcn.0048ccf5
push 0x4e86ec
push edi
call fcn.004ccf70
add esp, 0x14
lea eax, [ebp - 0x144]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x148], eax
cmp eax, 0xffffffff
je 0x422714
lea eax, [ebp - 0x118]
push eax
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x4226f1
cmp byte [ebp - 0x118], 0x2e
je 0x4226f1
cmp dword [ebp + 0xc], eax
je 0x4226ba
test byte [ebp - 0x144], 2
jne 0x4226f1
test byte [ebp - 0x144], 0x10
je 0x4226f1
push esi
push edi
call fcn.004ccf60
lea eax, [ebp - 0x118]
push eax
push edi
call fcn.0048a9af
push dword [ebp + 0x18]
push dword [ebp - 0x14c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00422458
add esp, 0x24
add ebx, eax
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x422692
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call fcn.004cceff
push edi
call fcn.004cceff
pop ecx
pop ecx
mov eax, ebx
jmp 0x4224cf