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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x15c
mov eax, dword [0x5092e4]
xor eax, esp
mov dword [esp + 0x158], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x13c
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x28]
push esi
push eax
mov dword [esp + 0x2c], esi
call fcn.00401f80
add esp, 0xc
mov edx, edi
mov dword [esp + 0xc], esi
call fcn.00445b2f
test eax, eax
je 0x4a0795
xor eax, eax
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401317
mov esp, ebp
pop ebp
ret
push 1
mov ebx, 0x71c
push ebx
call fcn.00401a3a
mov esi, eax
pop ecx
pop ecx
mov dword [esp + 0x10], esi
test esi, esi
je 0x4a077e
push 1
push ebx
call fcn.00401a3a
pop ecx
pop ecx
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4a07c9
push esi
call fcn.00401a00
pop ecx
jmp 0x4a077e
push edi
mov ecx, ebx
mov eax, esi
call fcn.00444961
mov edx, esi
call fcn.004456dc
call fcn.00445630
push 0x22
mov edi, esi
call fcn.004446e2
push esi
call fcn.0049f690
add esp, 0xc
test eax, eax
je 0x4a082b
mov edi, 0x4cc9a8
push edi
push esi
call fcn.00401b10
pop ecx
pop ecx
test eax, eax
jne 0x4a082b
push esi
call fcn.00401a80
cmp byte [eax + esi - 1], 0x5c
pop ecx
je 0x4a0822
push 0x4d18b0
mov eax, ebx
call fcn.00445aee
pop ecx
push edi
mov eax, ebx
call fcn.00445aee
pop ecx
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x4a085a
xor edi, edi
push esi
call fcn.00401a00
push dword [esp + 0x18]
call fcn.00401a00
pop ecx
pop ecx
mov eax, edi
jmp 0x4a0780
mov edi, 0x104
lea edx, [esp + 0x4c]
call fcn.00445b2f
test eax, eax
jne 0x4a08df
cmp byte [esp + 0x4c], 0x2e
je 0x4a08df
cmp dword [ebp + 0xc], eax
je 0x4a087f
test byte [esp + 0x20], 2
jne 0x4a08df
test byte [esp + 0x20], 0x10
jne 0x4a08df
inc dword [esp + 0xc]
cmp dword [esp + 0x18], 0
je 0x4a08df
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x4c]
push eax
mov ecx, ebx
mov eax, esi
call fcn.00444961
push dword [esp + 0x14]
mov ecx, edi
lea eax, [esp + 0x54]
call fcn.00444961
call fcn.00444748
mov edx, eax
mov ecx, esi
call fcn.00446954
push esi
mov ecx, edi
lea eax, [esp + 0x58]
call fcn.00444961
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [esp + 0x24]
push eax
call dword [esp + 0x20]
test eax, eax
je 0x4a08fa
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4a085f
mov esi, dword [esp + 0x14]
push dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
call ebx
cmp dword [ebp + 0x10], 0
je 0x4a09ac
push dword [esp + 0x10]
push esi
call fcn.00401ba0
mov eax, esi
call fcn.00444748
push 0x4cc9a8
push esi
call fcn.00401bb0
add esp, 0x10
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a09ac
lea edx, [esp + 0x4c]
call fcn.00445b2f
test eax, eax
jne 0x4a0999
cmp byte [esp + 0x4c], 0x2e
je 0x4a0999
cmp dword [ebp + 0xc], eax
je 0x4a0962
test byte [esp + 0x20], 2
jne 0x4a0999
test byte [esp + 0x20], 0x10
je 0x4a0999
push dword [esp + 0x10]
push esi
call fcn.00401ba0
lea eax, [esp + 0x54]
push eax
mov ecx, esi
call fcn.004457e2
push dword [ebp + 0x18]
push dword [esp + 0x28]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.004a072f
add esp, 0x20
add dword [esp + 0xc], eax
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4a0942
push edi
call ebx
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
jmp 0x4a0842