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

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x561b0d
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp + 0x25c]
mov eax, dword [ebp + 0x264]
mov ebx, dword [ebp + 0x260]
mov dword [ebp - 0x34], eax
mov ecx, dword [ecx]
mov eax, dword [ebp + 0x268]
sub ecx, 0x10
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], eax
call fcn.0040a1d0
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 1
mov edx, dword [eax - 0xc]
test edx, edx
jle 0x4cfa92
lea ecx, [edx - 1]
test ecx, ecx
js 0x4d0096
cmp ecx, edx
jg 0x4d0096
cmp word [eax + ecx*2], 0x5c
je 0x4cfa92
push 0x5c
lea ecx, [ebp - 0x2c]
call fcn.00492b30
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov ecx, eax
mov dword [ebp - 0x54], eax
call fcn.0040a1d0
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
mov eax, dword [ebx]
push dword [eax - 0xc]
push eax
call fcn.00416df0
mov edi, dword [ebp - 0x20]
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x28], 0x589c6c
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 4
lea eax, [ebp]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
or ebx, 0xffffffff
cmp eax, 1
jne 0x4cfe64
nop dword [eax]
call fcn.00411fd0
test eax, eax
je 0x4d00a0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
lea eax, [ebp + 0x2c]
test eax, 0xffff0000
jne 0x4cfb26
movzx eax, ax
lea ecx, [ebp - 0x14]
push eax
call fcn.00412350
jmp 0x4cfb4c
lea ecx, [ebp + 0x2c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cfb30
sub ecx, edx
lea eax, [ebp + 0x2c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.004126c0
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x14]
push 0x2e
push esi
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x18], eax
call fcn.00522f4c
add esp, 8
test eax, eax
jne 0x4cfb6d
or eax, 0xffffffff
jmp 0x4cfb71
sub eax, esi
sar eax, 1
mov ecx, dword [ebp - 0x18]
sub ecx, eax
lea eax, [ebp - 0x10]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00409e50
mov byte [ebp - 4], 7
push str..pack
push dword [ebp - 0x10]
call fcn.0052adad
add esp, 8
test eax, eax
jne 0x4cfe0d
push 0x2e
push esi
call fcn.00522f4c
add esp, 8
test eax, eax
jne 0x4cfbb3
or eax, 0xffffffff
jmp 0x4cfbb7
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x14]
call fcn.00409d90
mov byte [ebp - 4], 8
lea ebx, [esi - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4cfc19
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x4cfc0a
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4cfc0a
call fcn.0040a1d0
mov dword [ebp - 0x18], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4cfc02
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
jmp 0x4cfc19
push dword [edx - 0xc]
lea ecx, [ebp - 0x14]
push edx
call fcn.004126c0
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 7
or eax, 0xffffffff
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cfc38
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [esi - 0xc]
push 0x2e
push esi
call fcn.00522f4c
add esp, 8
test eax, eax
jne 0x4cfc4f
or eax, 0xffffffff
jmp 0x4cfc53
sub eax, esi
sar eax, 1
sub ebx, eax
lea ecx, [ebp - 0x14]
push ebx
lea eax, [ebp - 0x40]
push eax
call fcn.00409e50
mov byte [ebp - 4], 0xa
mov edx, dword [eax]
mov ebx, dword [ebp - 0x10]
add ebx, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4cfcb7
cmp dword [ebx + 0xc], 0
jl 0x4cfcab
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4cfcab
call fcn.0040a1d0
mov dword [ebp - 0x18], eax
lea edx, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4cfca3
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [ebp - 0x10], eax
jmp 0x4cfcb7
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.004126c0
mov byte [ebp - 4], 7
or ebx, 0xffffffff
mov edx, dword [ebp - 0x40]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cfcd8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x59002c
push dword [ebp - 0x10]
call fcn.0052adad
add esp, 8
test eax, eax
jne 0x4cfe0d
lea eax, [ebp + 0x2c]
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
call fcn.0047a940
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.0040a1d0
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x34]
mov ecx, dword [edx + 4]
mov ebx, dword [edx + 8]
cmp ecx, ebx
jne 0x4cfd86
mov edx, dword [edx]
lea eax, [ebp - 0x3c]
cmp eax, edx
jb 0x4cfd51
lea edi, [ebp - 0x3c]
lea eax, [edx + ebx*8]
cmp edi, eax
mov edi, dword [ebp - 0x20]
jb 0x4d00a0
test ebx, ebx
jne 0x4cfd5c
mov ebx, 1
jmp 0x4cfd6b
lea ebx, [ecx + ecx]
test ebx, ebx
js 0x4cfdc4
cmp ebx, 0xfffffff
ja 0x4cfdc4
push 8
push ebx
push edx
call fcn.00529406
add esp, 0xc
test eax, eax
je 0x4cfdc4
mov edx, dword [ebp - 0x34]
mov ecx, dword [edx + 4]
mov dword [edx + 8], ebx
mov dword [edx], eax
mov eax, dword [edx]
lea ebx, [eax + ecx*8]
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 4], 0x10
test ebx, ebx
je 0x4cfdbd
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x58], ebx
lea ecx, [ecx - 0x10]
call fcn.0040a1d0
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x38]
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x34]
mov byte [ebp - 4], 0xf
inc dword [edx + 4]
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 0xc
or ebx, 0xffffffff
mov edx, dword [ebp - 0x3c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cfdef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, ebx
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cfe0d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
sete byte [ebp - 0x19]
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cfe3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4cfe5a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x19], 0
jne 0x4cfaf0
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4d00a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0x19
mov eax, 0x58adcc
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x4cfe9c
movzx eax, ax
push eax
call fcn.00412350
jmp 0x4cfea6
push 0x58adcc
call fcn.00495630
mov byte [ebp - 4], 0x1a
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x40]
call fcn.00490be0
add esp, 4
mov byte [ebp - 4], 0x1b
lea esi, [edi - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x4cff10
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4cff01
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4cff01
call fcn.0040a1d0
mov dword [ebp - 0x30], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4cfef9
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
lea edi, [eax + 0x10]
mov dword [ebp - 0x20], edi
jmp 0x4cff10
push dword [edx - 0xc]
lea ecx, [ebp - 0x20]
push edx
call fcn.004126c0
mov edi, dword [ebp - 0x20]
mov byte [ebp - 4], 0x1a
mov eax, ebx
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cff2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cff4c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4cff61
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x24], 0
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x24]
mov esi, eax
cmp esi, ecx
je 0x4cff83
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call dword [edx + 4]
mov ecx, esi
mov dword [ebp - 0x24], ecx
lea eax, [ebp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
jne 0x4d001a
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x44]
nop dword [eax]
test byte [ebp], 0x10
je 0x4d0005
cmp word [ebp + 0x2c], 0x2e
jne 0x4cffc3
mov ax, word [ebp + 0x2e]
test ax, ax
je 0x4d0005
cmp ax, 0x2e
jne 0x4cffc3
cmp word [ebp + 0x30], 0
je 0x4d0005
lea eax, [ebp + 0x2c]
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
call fcn.0047a940
add esp, 4
mov byte [ebp - 4], 0x1e
mov ecx, dword [ebp - 0x50]
push edi
push esi
push dword [ebp - 0x4c]
push eax
call fcn.004cf9f0
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d0005
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x4cffa0
mov edi, dword [ebp - 0x20]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], 0x589c6c
test eax, eax
je 0x4d003a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4d0055
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x54]
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4d0071
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.005214e1
lea esp, [ebp + 0x254]
pop ebp
ret 0x10
push 0x80070057
call fcn.004126a0
push 0x80004005
call fcn.004126a0
int3