Function at 0x47a090
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5a27a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
mov eax, dword [0x65ec1c]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [ebp + 8]
lea edx, [esp + 0xc]
push ecx
push str._s.gsd
push edx
mov dword [esp + 0x178], 0
call fcn.0058148b
mov ecx, dword [esp + 0x18]
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x20], ebx
jne 0x47a11b
lea ecx, [esp + 0xc]
mov dword [esp + 0x16c], eax
call fcn.005886c0
pop ebp
pop ebx
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
add esp, 0x168
ret
push esi
push edi
mov edx, dword [0x65ec1c]
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x58]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x639028
push edx
mov byte [esp + 0x184], 1
call fcn.0058148b
push 0x38
call fcn.00584a5c
add esp, 0x14
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0x174], 2
je 0x47a170
mov ecx, eax
call fcn.004ceb10
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x47a17c
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
mov byte [esp + 0x178], 1
call fcn.004cebc0
mov edx, dword [0x663644]
xor eax, eax
test edx, edx
jle 0x47a1b1
mov edi, dword [esi + 0x2c]
mov ecx, dword [0x663640]
cmp dword [ecx], edi
je 0x47a1e7
inc eax
add ecx, 0xc
cmp eax, edx
jl 0x47a1a5
test esi, esi
je 0x47a1bd
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov byte [esp + 0x174], 0
lea ecx, [esp + 0x10]
je 0x47a371
call fcn.005886c0
jmp 0x47a11d
mov ecx, dword [esp + 0x10]
lea edx, [esi + 0x30]
push ecx
push 0x638fa8
push edx
call fcn.0058148b
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ebx, edx
add esp, 0xc
mov dword [esp + 0x24], ebx
inc ebx
xor edi, edi
cmp ebx, edi
jne 0x47a23a
cmp eax, edi
je 0x47a224
push eax
mov dword [esp + 0x24], edx
call fcn.00584a85
add esp, 4
mov dword [ebp + 0x10], edi
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x14], edi
mov dword [edx + eax*4], esi
jmp 0x47a1bd
cmp eax, edi
jne 0x47a280
lea edi, [ebx*4]
push edi
call fcn.00584a5c
mov edx, eax
mov ecx, edi
mov dword [ebp + 0x10], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x14], ebx
mov ebx, dword [esp + 0x28]
mov dword [edx + eax*4], esi
jmp 0x47a1bd
mov ecx, dword [ebp + 0x18]
cmp ebx, ecx
jg 0x47a2ca
cmp edx, ebx
jge 0x47a2ac
mov ecx, ebx
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x14], ebx
mov ebx, dword [esp + 0x28]
mov dword [edx + eax*4], esi
jmp 0x47a1bd
jle 0x47a2b4
sub edx, ebx
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x14], ebx
mov ebx, dword [esp + 0x28]
mov dword [edx + eax*4], esi
jmp 0x47a1bd
mov eax, dword [ebp + 0x1c]
cmp eax, edi
jne 0x47a2f4
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x47a2e8
mov eax, 4
jmp 0x47a2f4
cmp eax, 0x400
jle 0x47a2f4
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x1c], eax
jl 0x47a302
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x1c]
lea ecx, [eax*4]
push ecx
call fcn.00584a5c
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x24], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0x14]
mov ecx, ebx
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.00584a85
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov dword [ebp + 0x10], eax
mov edx, eax
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0x14], ebx
mov ebx, dword [esp + 0x30]
mov dword [ebp + 0x18], ecx
add esp, 8
mov dword [edx + eax*4], esi
jmp 0x47a1bd
call fcn.005886c0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov dword [esp + 0x174], 0xffffffff
call fcn.005886c0
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x168
ret