Function at 0x470c60
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x583c44
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
mov eax, dword [0x639ad4]
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.00562ecb
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 0x470ceb
lea ecx, [esp + 0xc]
mov dword [esp + 0x16c], eax
call fcn.0056a100
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 [0x639ad4]
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x58]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x615f14
push edx
mov byte [esp + 0x184], 1
call fcn.00562ecb
push 0x38
call fcn.0056649c
add esp, 0x14
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0x174], 2
je 0x470d40
mov ecx, eax
call fcn.004c4c20
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x470d4c
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.004c4cd0
mov edx, dword [0x63e4ec]
xor eax, eax
test edx, edx
jle 0x470d81
mov edi, dword [esi + 0x2c]
mov ecx, dword [0x63e4e8]
cmp dword [ecx], edi
je 0x470db7
inc eax
add ecx, 0xc
cmp eax, edx
jl 0x470d75
test esi, esi
je 0x470d8d
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 0x470f41
call fcn.0056a100
jmp 0x470ced
mov ecx, dword [esp + 0x10]
lea edx, [esi + 0x30]
push ecx
push 0x615e9c
push edx
call fcn.00562ecb
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 0x470e0a
cmp eax, edi
je 0x470df4
push eax
mov dword [esp + 0x24], edx
call fcn.005664c5
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 0x470d8d
cmp eax, edi
jne 0x470e50
lea edi, [ebx*4]
push edi
call fcn.0056649c
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 0x470d8d
mov ecx, dword [ebp + 0x18]
cmp ebx, ecx
jg 0x470e9a
cmp edx, ebx
jge 0x470e7c
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 0x470d8d
jle 0x470e84
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 0x470d8d
mov eax, dword [ebp + 0x1c]
cmp eax, edi
jne 0x470ec4
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x470eb8
mov eax, 4
jmp 0x470ec4
cmp eax, 0x400
jle 0x470ec4
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x1c], eax
jl 0x470ed2
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x1c]
lea ecx, [eax*4]
push ecx
call fcn.0056649c
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.005664c5
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 0x470d8d
call fcn.0056a100
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov dword [esp + 0x174], 0xffffffff
call fcn.0056a100
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x168
ret