Function at 0x4f8ff0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x2b0
mov eax, dword [0x6531f0]
xor eax, esp
mov dword [esp + 0x2ac], eax
push ebx
mov ebx, dword [esp + 0x2bc]
push ebp
push esi
xor ebp, ebp
mov esi, ecx
mov dword [esp + 0x1c], ebp
cmp dword [esi + 8], 0xffffffff
push edi
mov edi, dword [esp + 0x2c4]
mov dword [esp + 0x28], ebx
mov byte [esp + 0x13], 0
jne 0x4f9162
cmp byte [esi + 0x10], 0
jne 0x4f9162
mov byte [esp + 0x13], 1
xor ebx, ebx
call fcn.00479310
cmp eax, 0x90
jl 0x4f9054
lea ebp, [ebx + 2]
lea ebx, [ebp - 1]
xor eax, eax
cmp byte [esi + 0x18], al
je 0x4f9060
mov eax, 1
push ebp
push 0
push eax
lea eax, [esp + 0x78]
push eax
push ebx
mov ecx, esi
call fcn.004818a0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x4f915e
push 1
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
mov dword [esp + 0x2c], str._UNC_
call fcn.00481380
test al, al
je 0x4f915e
push 1
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
mov edx, 0x5c
push ecx
mov ecx, esi
mov word [esp + 0x28], dx
call fcn.004860b0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
sub edx, ecx
cmp edx, 4
jne 0x4f9118
lea eax, [eax + ecx*4 + 0x1c]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x24]
mov dword [esp + 0x18], ecx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], 0x5aff5c
mov dword [esp + 0x20], eax
call fcn.004bab10
lea eax, [esi + 0xc]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ebx, 1
call fcn.004ef9a0
add esp, 8
test al, al
je 0x4f911c
mov byte [esp + 0x18], bl
jmp 0x4f9121
mov bl, byte [esp + 0x20]
mov byte [esp + 0x18], 0
test bl, 1
je 0x4f912f
lea ecx, [esp + 0x24]
call fcn.00497990
cmp byte [esp + 0x18], 0
je 0x4f9155
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0xc]
cmp edx, dword [eax + 8]
jne 0x4f9151
lea ecx, [esp + 0x14]
call fcn.00401340
xor al, al
jmp 0x4f939b
mov byte [esi + 0x10], 1
lea ecx, [esp + 0x14]
call fcn.00401340
mov ebx, dword [esp + 0x28]
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
jne 0x4f9170
cmp byte [esi + 0x10], 0
je 0x4f914a
cmp byte [esp + 0x13], 0
jne 0x4f91a7
cmp byte [esi + 0x10], 0
je 0x4f9197
inc dword [esi + 0x14]
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0xc]
sub edx, dword [eax + 8]
mov ecx, dword [esi + 0x14]
cmp ecx, edx
jl 0x4f91a7
xor al, al
jmp 0x4f939b
lea ecx, [esp + 0x6c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4f914a
cmp byte [esi + 0x10], 0
je 0x4f927d
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 8]
add edx, dword [esi + 0x14]
mov esi, dword [esi + 4]
lea eax, [eax + edx*4 + 0x14]
mov dword [esp + 0x18], esi
mov ecx, 1
lock xadd dword [esi], ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00480e30
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x30]
call fcn.004ec960
mov esi, eax
push esi
mov ecx, edi
call fcn.0047fb70
lea eax, [esi + 4]
push eax
lea ecx, [edi + 4]
call fcn.0047fb70
mov cx, word [esi + 8]
mov word [edi + 8], cx
mov dx, word [esi + 0xa]
mov ecx, dword [esp + 0x30]
mov word [edi + 0xa], dx
mov ax, word [esi + 0xc]
mov word [edi + 0xc], ax
mov edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4f9230
mov eax, dword [esp + 0x30]
push eax
call fcn.0047fb60
add esp, 4
mov ecx, dword [esp + 0x2c]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4f924a
mov eax, dword [esp + 0x2c]
push eax
call fcn.0047fb60
add esp, 4
mov ecx, dword [esp + 0x18]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4f9264
mov eax, dword [esp + 0x18]
push eax
call fcn.0047fb60
add esp, 4
mov dword [ebx + 0x10], 0x10
or dword [ebx + 4], 0x440000
or dword [ebx], 0x560000
jmp 0x4f9399
push 0xffffffffffffffff
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00482aa0
mov esi, dword [esi + 4]
add esp, 0xc
mov dword [esp + 0x18], esi
mov eax, 1
lock xadd dword [esi], eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00480e30
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x30]
call fcn.004ec960
mov esi, eax
push esi
mov ecx, edi
call fcn.0047fb70
lea eax, [esi + 4]
push eax
lea ecx, [edi + 4]
call fcn.0047fb70
mov cx, word [esi + 8]
mov word [edi + 8], cx
mov dx, word [esi + 0xa]
mov ecx, dword [esp + 0x30]
mov word [edi + 0xa], dx
mov ax, word [esi + 0xc]
mov word [edi + 0xc], ax
mov edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4f930a
mov eax, dword [esp + 0x30]
push eax
call fcn.0047fb60
add esp, 4
mov ecx, dword [esp + 0x2c]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4f9324
mov eax, dword [esp + 0x2c]
push eax
call fcn.0047fb60
add esp, 4
mov ecx, dword [esp + 0x18]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4f933e
mov eax, dword [esp + 0x18]
push eax
call fcn.0047fb60
add esp, 4
lea ecx, [esp + 0x3c]
xor esi, esi
push ecx
mov ecx, ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call fcn.004f3530
push 1
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], 0x60433c
call fcn.004813b0
test al, al
jne 0x4f937f
push esi
push 1
lea eax, [esp + 0x74]
push eax
mov ecx, ebx
call fcn.004edf80
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4f9399
mov eax, dword [esp + 0x14]
push eax
call fcn.0047fb60
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x2bc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fdb4a
add esp, 0x2b0
ret 8