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

Disassembly:
push ebp
lea ebp, [esp - 0x1084]
mov eax, 0x1084
call fcn.005409e0
push 0xffffffffffffffff
push 0x57ced0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5d3070]
xor eax, ebp
mov dword [ebp + 0x1080], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 4], 0
mov ecx, dword [ebp + 0x1090]
mov eax, dword [ebp + 0x108c]
mov dword [ebp - 0x10], ecx
jne 0x4f663b
xor al, al
jmp 0x4f69c7
cmp dword [eax + 0x14], 8
jb 0x4f6643
mov eax, dword [eax]
push 0x100
lea ecx, [ebp + 0x660]
push ecx
push 0x100
lea ecx, [ebp + 0x860]
push ecx
push 0x104
lea ecx, [ebp + 0xa60]
push ecx
push 3
lea ecx, [ebp + 0x1078]
push ecx
push eax
call fcn.00554677
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x860]
add esp, 0x24
push eax
lea eax, [ebp + 0xa60]
push eax
call esi
lea eax, [ebp + 0x660]
push eax
lea eax, [ebp + 0xa60]
push eax
call esi
push 0x5a565c
push 0x5a565c
lea eax, [ebp + 0xa60]
push eax
lea eax, [ebp + 0x1078]
push eax
lea eax, [ebp + 0x458]
push 0x104
push eax
call fcn.00553e19
add esp, 0x18
lea eax, [ebp]
push eax
lea eax, [ebp + 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4f69c5
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [eax]
cmp word [ebp + 0x2c], 0x2e
je 0x4f69af
push 0x208
lea eax, [ebp + 0xc68]
push 0
push eax
call fcn.005481a0
push 0
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0xa60]
push eax
lea eax, [ebp + 0x1078]
push eax
lea eax, [ebp + 0xc68]
push 0x104
push eax
call fcn.00553e19
push 0
push 0
push 0x104
lea eax, [ebp + 0x250]
push eax
push 0
push 0
push 0
lea eax, [ebp + 0xa60]
push 0
push eax
call fcn.00554677
add esp, 0x48
lea eax, [ebp + 0xe70]
push 0x208
push 0
push eax
call fcn.005481a0
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x250]
add esp, 0xc
push 0
push eax
call fcn.00403020
push eax
push 0
lea eax, [ebp + 0xe70]
push 0x104
push eax
call fcn.00553e19
add esp, 0x18
xor eax, eax
test byte [ebp], 0x10
je 0x4f68a4
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], eax
mov word [ebp - 0x70], ax
cmp word [ebp + 0xe70], ax
jne 0x4f67bf
xor ecx, ecx
jmp 0x4f67df
lea ecx, [ebp + 0xe70]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f67d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp + 0xe70]
push eax
lea ecx, [ebp - 0x70]
call fcn.00402b20
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp + 0xc68], ax
jne 0x4f6817
xor ecx, ecx
jmp 0x4f682f
lea ecx, [ebp + 0xc68]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f6820
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp + 0xc68]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402b20
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004f65e0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4f6869
inc eax
push 2
push eax
push dword [ebp - 0x28]
call fcn.00403190
add esp, 0xc
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x4f69af
push 2
inc eax
push eax
push dword [ebp - 0x70]
call fcn.00403190
add esp, 0xc
jmp 0x4f69af
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp word [ebp + 0xe70], ax
jne 0x4f68c3
xor eax, eax
jmp 0x4f68df
lea eax, [ebp + 0xe70]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4f68d0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp + 0xe70]
push eax
lea ecx, [ebp - 0x58]
call fcn.00402b20
mov dword [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [ebp + 0xc68], ax
jne 0x4f6917
xor ecx, ecx
jmp 0x4f692f
lea ecx, [ebp + 0xc68]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f6920
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp + 0xc68]
push eax
lea ecx, [ebp - 0x40]
call fcn.00402b20
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.004f64a0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4f6969
inc eax
push 2
push eax
push dword [ebp - 0x40]
call fcn.00403190
add esp, 0xc
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x4f699b
push 2
inc eax
push eax
push dword [ebp - 0x58]
call fcn.00403190
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
lea eax, [ebp]
push eax
push esi
call ebx
test eax, eax
jne 0x4f66f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1080]
xor ecx, ebp
call fcn.0053f778
lea esp, [ebp + 0x1084]
pop ebp
ret 8