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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2e
push 0
push 0
dec ecx
jne 0x4d8644
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404d18
xor eax, eax
push ebp
push 0x4d8a08
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x154]
mov ecx, 0x4d8a20
mov edx, dword [ebp - 4]
call fcn.00404b74
mov eax, dword [ebp - 0x154]
call fcn.00404d28
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4d86a5
mov al, 1
jmp 0x4d89c4
xor eax, eax
jmp 0x4d89c4
cmp byte [ebx + 0x3dc], 2
je 0x4d89cc
mov eax, dword [0x55c428]
mov eax, dword [eax]
call fcn.0048da60
lea eax, [ebp - 8]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.00404ad8
mov eax, dword [ebp - 0x150]
cmp eax, 0x10
je 0x4d870e
cmp eax, 2
je 0x4d870e
cmp eax, 4
je 0x4d870e
cmp eax, 0x80
je 0x4d870e
cmp eax, 0x100
je 0x4d870e
cmp eax, 0x12
je 0x4d870e
cmp eax, 0x13
je 0x4d870e
cmp eax, 0x20
jne 0x4d87aa
push dword [ebp - 4]
push 0x4d8a30
push dword [ebp - 8]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00404be8
mov edx, dword [ebp - 0x158]
mov eax, dword [ebx + 0x34c]
call fcn.0046d0e8
mov eax, dword [ebp - 8]
mov edx, 0x4d8a3c
call fcn.00404c74
je 0x4d87aa
mov eax, dword [ebp - 8]
mov edx, 0x4d8a48
call fcn.00404c74
je 0x4d87aa
push dword [ebp - 4]
push 0x4d8a30
push dword [ebp - 8]
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00404be8
mov eax, dword [ebp - 0x15c]
call fcn.004d6014
test al, al
je 0x4d87aa
push dword [ebp - 4]
push 0x4d8a30
push dword [ebp - 8]
lea eax, [ebp - 0x160]
mov edx, 3
call fcn.00404be8
mov edx, dword [ebp - 0x160]
mov eax, ebx
call fcn.004d863c
mov eax, dword [ebx + 0x328]
mov eax, dword [eax + 0x22c]
call fcn.00453044
mov edi, eax
dec edi
test edi, edi
jl 0x4d89ae
inc edi
xor esi, esi
mov eax, dword [0x55c428]
mov eax, dword [eax]
call fcn.0048da60
cmp byte [ebx + 0x3dc], 2
je 0x4d89ae
mov eax, dword [ebx + 0x328]
mov eax, dword [eax + 0x22c]
mov edx, esi
call fcn.00453074
call fcn.004529d0
test al, al
je 0x4d89a6
mov eax, dword [ebx + 0x328]
mov eax, dword [eax + 0x22c]
mov edx, esi
call fcn.00453074
mov edx, dword [eax + 0x24]
lea eax, [ebp - 0x10]
call fcn.00404900
mov edx, dword [ebp - 0x10]
mov eax, 0x4d8a54
call fcn.00404e6c
test eax, eax
jle 0x4d892c
lea eax, [ebp - 0x164]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00404d88
mov eax, dword [ebp - 0x164]
mov edx, 0x4d8a60
call fcn.00404c74
jne 0x4d8908
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404dc8
lea edx, [ebp - 0x168]
mov eax, dword [ebp - 8]
call fcn.00409bdc
mov edx, dword [ebp - 0x168]
mov eax, dword [ebp - 0x10]
call fcn.00404c74
jne 0x4d89a6
mov edx, dword [0x4d6d84]
mov eax, 0xc
call fcn.0040576c
mov edi, eax
mov eax, edi
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.00404ad8
push dword [ebp - 4]
push 0x4d8a30
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.00404ad8
push dword [ebp - 0x16c]
lea eax, [edi + 4]
mov edx, 3
call fcn.00404be8
mov eax, dword [ebp - 0x130]
mov dword [edi + 8], eax
mov edx, edi
mov eax, dword [ebx + 0x3e0]
call fcn.0041aaf4
jmp 0x4d89ae
lea edx, [ebp - 0x170]
mov eax, dword [ebp - 8]
call fcn.00409bdc
mov edx, dword [ebp - 0x170]
mov eax, dword [ebp - 0x10]
call fcn.00404c74
je 0x4d89ae
jmp 0x4d89a6
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00404c74
jne 0x4d89a6
mov edx, dword [0x4d6d84]
mov eax, 0xc
call fcn.0040576c
mov edi, eax
mov eax, edi
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.00404ad8
push dword [ebp - 4]
push 0x4d8a30
lea eax, [ebp - 0x174]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.00404ad8
push dword [ebp - 0x174]
lea eax, [edi + 4]
mov edx, 3
call fcn.00404be8
mov eax, dword [ebp - 0x130]
mov dword [edi + 8], eax
mov edx, edi
mov eax, dword [ebx + 0x3e0]
call fcn.0041aaf4
jmp 0x4d89ae
inc esi
dec edi
jne 0x4d87c9
lea eax, [ebp - 0x150]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4d86ac
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8a0f
lea eax, [ebp - 0x174]
mov edx, 9
call fcn.0040488c
lea eax, [ebp - 0x10]
call fcn.00404868
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040488c
ret