Function at 0x4f8ad0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x604ff3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x284
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x68
mov dword [esp + 0x38], ebx
call fcn.005dd58d
add esp, 4
mov dword [esp + 0x20], eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x29c], esi
je 0x4f8b19
mov ecx, eax
call fcn.00479930
jmp 0x4f8b1b
xor eax, eax
or edi, 0xffffffff
mov ecx, eax
mov dword [esp + 0x29c], edi
mov dword [esp + 0x30], eax
call fcn.00479a70
mov eax, dword [0x6cf6b8]
mov ecx, dword [esp + 0x30]
push eax
add ecx, 0x58
push 0x69ffbc
push ecx
call fcn.005d9fbb
mov eax, dword [ebx + 0x1c]
lea ebp, [ebx + 0x14]
add esp, 0xc
lea edx, [esp + 0x30]
mov ecx, ebp
push edx
push eax
call fcn.0041d400
push 0x68
call fcn.005dd58d
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, esi
mov dword [esp + 0x29c], 1
je 0x4f8b84
mov ecx, eax
call fcn.00479930
mov esi, eax
mov ecx, esi
mov dword [esp + 0x29c], edi
mov dword [esi + 0x64], 2
call fcn.00479a70
mov eax, dword [0x6cf6b4]
lea ecx, [esi + 0x58]
push eax
push 0x69ffbc
push ecx
call fcn.005d9fbb
mov edi, dword [ebp + 8]
add esp, 0xc
mov ecx, ebp
lea edx, [edi + 1]
push 0xffffffffffffffff
push edx
call fcn.00477f40
mov eax, dword [ebp + 4]
mov dword [eax + edi*4], esi
mov al, byte [ebx + 4]
test al, al
je 0x4f8eb2
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edi
mov word [esp + 0x28], di
mov eax, dword [ebx + 8]
mov dword [esp + 0x29c], 2
cmp eax, edi
jne 0x4f8bf7
lea eax, [ebx + 0xc]
mov edx, str._sq_.dt
test edx, edx
je 0x4f8cd7
cmp eax, edi
je 0x4f8cd7
push eax
lea ecx, [esp + 0x18]
call fcn.0040d680
lea ecx, [esp + 0x24]
mov byte [esp + 0x29c], 3
call fcn.00401070
push str._sq_.dt
lea ecx, [esp + 0x3c]
call fcn.00401ed0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x29c], 4
cmp eax, edi
jne 0x4f8c49
lea eax, [esp + 0x18]
mov esi, dword [esp + 0x40]
push eax
call fcn.005c4b4a
lea esi, [eax + esi + 2]
lea ebx, [esi + esi]
push ebx
call fcn.005dd58d
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x24], edi
je 0x4f8caf
mov ecx, ebx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x14]
call fcn.00401f50
push eax
lea ecx, [esp + 0x3c]
call fcn.00401f50
push eax
mov eax, dword [esp + 0x2c]
push esi
push eax
call fcn.005c4ada
mov ecx, dword [esp + 0x34]
push ecx
call fcn.005c4b4a
add esp, 0x14
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x29c], 3
call fcn.00401070
lea ecx, [esp + 0x14]
mov byte [esp + 0x29c], 2
call fcn.00401070
mov ecx, dword [esp + 0x24]
xor edi, edi
cmp ecx, edi
mov eax, ecx
jne 0x4f8ce1
lea eax, [esp + 0x28]
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x20], ebx
je 0x4f8e9e
lea eax, [esp + 0x70]
push 0x5f
push eax
call fcn.005c4a9a
mov esi, eax
add esp, 8
cmp esi, edi
je 0x4f8e83
mov cx, word [esi + 2]
add esi, 2
push ecx
call fcn.005c7e3d
add esp, 4
test eax, eax
je 0x4f8e83
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
mov word [esp + 0x1c], di
call fcn.00401f60
mov eax, dword [esp + 0x14]
mov byte [esp + 0x29c], 5
cmp eax, edi
jne 0x4f8d58
lea eax, [esp + 0x18]
push 0x2e
push eax
call fcn.005c4fbf
add esp, 8
cmp eax, edi
je 0x4f8e6e
mov word [eax], di
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x4f8d7a
lea eax, [esp + 0x18]
push eax
call fcn.005c6611
mov ebx, eax
add esp, 4
cmp ebx, 2
jle 0x4f8e6c
push 0x68
call fcn.005dd58d
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x29c], 6
je 0x4f8db7
mov ecx, eax
call fcn.00479930
mov edi, eax
mov dword [esp + 0x10], edi
jmp 0x4f8dc3
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x10]
mov ecx, edi
mov byte [esp + 0x29c], 5
mov dword [edi + 0x64], ebx
call fcn.00479a70
mov eax, dword [esp + 0x34]
mov esi, 2
mov ecx, dword [eax + 0x1c]
cmp ecx, esi
jle 0x4f8dfa
mov eax, dword [eax + 0x18]
add eax, 8
mov edx, dword [eax]
cmp ebx, dword [edx + 0x64]
jl 0x4f8dfa
inc esi
add eax, 4
cmp esi, ecx
jl 0x4f8deb
mov ebx, dword [ebp + 8]
push 0xffffffffffffffff
cmp esi, ebx
jl 0x4f8e10
lea eax, [esi + 1]
mov ecx, ebp
push eax
call fcn.00477f40
jmp 0x4f8e52
lea ecx, [ebx + 1]
push ecx
mov ecx, ebp
call fcn.00477f40
mov eax, dword [ebp + 4]
mov edx, esi
shl edx, 0x1e
sub edx, esi
lea edi, [esi*4]
add edx, ebx
shl edx, 2
push edx
lea ecx, [edi + eax]
lea edx, [eax + esi*4 + 4]
push ecx
push edx
call fcn.005c5be0
mov eax, dword [ebp + 4]
add esp, 0xc
add eax, edi
mov edi, dword [esp + 0x10]
mov dword [eax], 0
xor ecx, ecx
lea eax, [esi*4]
mov edx, dword [ebp + 4]
add eax, 4
mov dword [edx + eax - 4], edi
mov edx, ecx
dec ecx
test edx, edx
jne 0x4f8e5b
xor edi, edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x29c], 2
call fcn.00401070
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x44]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4f8cfc
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x24]
mov dword [esp + 0x29c], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x294]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x290
ret