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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d618
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
xor esi, esi
push esi
push 0x5d78cc
lea edx, [ebp - 0x64]
push edi
push edx
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x1a8], ecx
call fcn.004eec60
add esp, 0x10
cmp byte [ebp + 0x10], 0
mov dword [ebp - 4], esi
je 0x4f2976
mov ebx, dword [ebp + 0x18]
cmp ebx, esi
je 0x4f2976
push 0x2c
mov dword [ebp - 0x18], esi
call fcn.00559a21
add esp, 4
cmp eax, esi
je 0x4f2b11
mov dword [ebp - 0x1c], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], eax
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x28], 1
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 0x29], 1
lea edx, [ebp - 0x20]
push edx
push 0x5d78cc
push edi
mov byte [ebp - 4], 1
call fcn.004f25a0
add esp, 0xc
cmp ebx, esi
jle 0x4f288f
dec ebx
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax]
cmp esi, eax
je 0x4f294d
lea esp, [esp]
cmp dword [esi + 0x20], 0x10
lea eax, [esi + 0xc]
jb 0x4f28ab
mov eax, dword [eax]
push 0
push eax
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.004eec60
add esp, 0x10
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 2
jae 0x4f28cb
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x1a8]
mov edx, dword [ebp - 0x1ac]
push ebx
push ecx
push 1
push edx
push eax
call fcn.004f27d0
add esp, 0x14
cmp dword [ebp - 0x34], 0x10
mov byte [ebp - 4], 1
jb 0x4f28fb
mov eax, dword [ebp - 0x48]
push eax
call fcn.00558723
add esp, 4
cmp byte [esi + 0x29], 0
jne 0x4f2942
mov ecx, dword [esi + 8]
cmp byte [ecx + 0x29], 0
jne 0x4f2920
mov eax, dword [ecx]
cmp byte [eax + 0x29], 0
jne 0x4f291c
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x29], 0
je 0x4f2912
mov esi, ecx
jmp 0x4f2942
mov eax, dword [esi + 4]
cmp byte [eax + 0x29], 0
jne 0x4f2940
lea esp, [esp]
cmp esi, dword [eax + 8]
jne 0x4f2940
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x29], 0
je 0x4f2930
mov esi, eax
mov eax, dword [ebp - 0x1c]
cmp esi, eax
jne 0x4f28a0
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [ebp - 0x1b0]
push ecx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00434ac0
mov edx, dword [ebp - 0x1c]
push edx
mov byte [ebp - 4], 0
call fcn.00558723
add esp, 4
xor esi, esi
mov edx, dword [ebp - 0x1ac]
push esi
push edx
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.004eec60
add esp, 0x10
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.0041fd30
mov ebx, 0x10
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], ebx
jb 0x4f29b2
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00558723
add esp, 4
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], ebx
jae 0x4f29bd
lea eax, [ebp - 0x64]
lea edx, [ebp - 0x1a4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4f2ad9
xor ecx, ecx
mov eax, 0xf
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov byte [ebp - 0x48], cl
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x2c], cl
mov byte [ebp - 4], 6
test byte [ebp - 0x1a4], 0x10
jne 0x4f2a88
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f2a05
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.00422130
push 1
push 0x5c0144
lea ecx, [ebp - 0x2c]
call fcn.00416b30
lea eax, [ebp - 0x178]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f2a30
sub eax, edx
push eax
lea eax, [ebp - 0x178]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00416b30
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x4f2a54
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.004eb5b0
mov ebx, dword [ebp - 0x1a8]
add esp, 8
push 0
lea edx, [ebp - 0x48]
push edx
mov ecx, ebx
call fcn.00433c20
push eax
lea eax, [ebp - 0x1b4]
push eax
mov ecx, ebx
call fcn.00434830
mov ebx, 0x10
lea ecx, [ebp - 0x1a4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4f29f3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x18], ebx
jb 0x4f2ab6
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00558723
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x34], ebx
jb 0x4f2ad9
mov eax, dword [ebp - 0x48]
push eax
call fcn.00558723
add esp, 4
mov ecx, dword [ebp - 0x1a8]
mov esi, dword [ecx + 8]
cmp dword [ebp - 0x50], ebx
jb 0x4f2af3
mov edx, dword [ebp - 0x64]
push edx
call fcn.00558723
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1b0]
push eax
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x1b0], esi
call fcn.0055909d
push 0x60e354
lea ecx, [ebp - 0x1c0]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00559aa1
int3