Function at 0x4fa650
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x6077b3
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.005dfcbc
add esp, 4
mov dword [esp + 0x20], eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x29c], esi
je 0x4fa699
mov ecx, eax
call fcn.0047b130
jmp 0x4fa69b
xor eax, eax
or edi, 0xffffffff
mov ecx, eax
mov dword [esp + 0x29c], edi
mov dword [esp + 0x30], eax
call fcn.0047b270
mov eax, dword [0x6d19b0]
mov ecx, dword [esp + 0x30]
push eax
add ecx, 0x58
push 0x6a1fe8
push ecx
call fcn.005dc6eb
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.0041e790
push 0x68
call fcn.005dfcbc
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, esi
mov dword [esp + 0x29c], 1
je 0x4fa704
mov ecx, eax
call fcn.0047b130
mov esi, eax
mov ecx, esi
mov dword [esp + 0x29c], edi
mov dword [esi + 0x64], 2
call fcn.0047b270
mov eax, dword [0x6d19ac]
lea ecx, [esi + 0x58]
push eax
push 0x6a1fe8
push ecx
call fcn.005dc6eb
mov edi, dword [ebp + 8]
add esp, 0xc
mov ecx, ebp
lea edx, [edi + 1]
push 0xffffffffffffffff
push edx
call fcn.00479740
mov eax, dword [ebp + 4]
mov dword [eax + edi*4], esi
mov al, byte [ebx + 4]
test al, al
je 0x4faa32
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 0x4fa777
lea eax, [ebx + 0xc]
mov edx, str._sq_.dt
test edx, edx
je 0x4fa857
cmp eax, edi
je 0x4fa857
push eax
lea ecx, [esp + 0x18]
call fcn.0040d7a0
lea ecx, [esp + 0x24]
mov byte [esp + 0x29c], 3
call fcn.00401070
push str._sq_.dt
lea ecx, [esp + 0x3c]
call fcn.00401fd0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x29c], 4
cmp eax, edi
jne 0x4fa7c9
lea eax, [esp + 0x18]
mov esi, dword [esp + 0x40]
push eax
call fcn.005c7292
lea esi, [eax + esi + 2]
lea ebx, [esi + esi]
push ebx
call fcn.005dfcbc
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x24], edi
je 0x4fa82f
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.00402050
push eax
lea ecx, [esp + 0x3c]
call fcn.00402050
push eax
mov eax, dword [esp + 0x2c]
push esi
push eax
call fcn.005c7222
mov ecx, dword [esp + 0x34]
push ecx
call fcn.005c7292
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 0x4fa861
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 0x4faa1e
lea eax, [esp + 0x70]
push 0x5f
push eax
call fcn.005c71e2
mov esi, eax
add esp, 8
cmp esi, edi
je 0x4faa03
mov cx, word [esi + 2]
add esi, 2
push ecx
call fcn.005ca57d
add esp, 4
test eax, eax
je 0x4faa03
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
mov word [esp + 0x1c], di
call fcn.00402060
mov eax, dword [esp + 0x14]
mov byte [esp + 0x29c], 5
cmp eax, edi
jne 0x4fa8d8
lea eax, [esp + 0x18]
push 0x2e
push eax
call fcn.005c76ff
add esp, 8
cmp eax, edi
je 0x4fa9ee
mov word [eax], di
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x4fa8fa
lea eax, [esp + 0x18]
push eax
call fcn.005c8d51
mov ebx, eax
add esp, 4
cmp ebx, 2
jle 0x4fa9ec
push 0x68
call fcn.005dfcbc
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x29c], 6
je 0x4fa937
mov ecx, eax
call fcn.0047b130
mov edi, eax
mov dword [esp + 0x10], edi
jmp 0x4fa943
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.0047b270
mov eax, dword [esp + 0x34]
mov esi, 2
mov ecx, dword [eax + 0x1c]
cmp ecx, esi
jle 0x4fa97a
mov eax, dword [eax + 0x18]
add eax, 8
mov edx, dword [eax]
cmp ebx, dword [edx + 0x64]
jl 0x4fa97a
inc esi
add eax, 4
cmp esi, ecx
jl 0x4fa96b
mov ebx, dword [ebp + 8]
push 0xffffffffffffffff
cmp esi, ebx
jl 0x4fa990
lea eax, [esi + 1]
mov ecx, ebp
push eax
call fcn.00479740
jmp 0x4fa9d2
lea ecx, [ebx + 1]
push ecx
mov ecx, ebp
call fcn.00479740
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.005c8320
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 0x4fa9db
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 0x4fa87c
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