Function at 0x479440
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5a0b54
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
mov eax, dword [0x65ca8c]
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.0057f8fb
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 0x4794cb
lea ecx, [esp + 0xc]
mov dword [esp + 0x16c], eax
call fcn.00586b33
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 [0x65ca8c]
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x58]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x637020
push edx
mov byte [esp + 0x184], 1
call fcn.0057f8fb
push 0x38
call fcn.00582ecc
add esp, 0x14
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0x174], 2
je 0x479520
mov ecx, eax
call fcn.004cd470
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x47952c
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.004cd520
mov edx, dword [0x6614ac]
xor eax, eax
test edx, edx
jle 0x479561
mov edi, dword [esi + 0x2c]
mov ecx, dword [0x6614a8]
cmp dword [ecx], edi
je 0x479597
inc eax
add ecx, 0xc
cmp eax, edx
jl 0x479555
test esi, esi
je 0x47956d
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 0x479721
call fcn.00586b33
jmp 0x4794cd
mov ecx, dword [esp + 0x10]
lea edx, [esi + 0x30]
push ecx
push 0x636fa0
push edx
call fcn.0057f8fb
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 0x4795ea
cmp eax, edi
je 0x4795d4
push eax
mov dword [esp + 0x24], edx
call fcn.00582ef5
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 0x47956d
cmp eax, edi
jne 0x479630
lea edi, [ebx*4]
push edi
call fcn.00582ecc
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 0x47956d
mov ecx, dword [ebp + 0x18]
cmp ebx, ecx
jg 0x47967a
cmp edx, ebx
jge 0x47965c
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 0x47956d
jle 0x479664
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 0x47956d
mov eax, dword [ebp + 0x1c]
cmp eax, edi
jne 0x4796a4
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x479698
mov eax, 4
jmp 0x4796a4
cmp eax, 0x400
jle 0x4796a4
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x1c], eax
jl 0x4796b2
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x1c]
lea ecx, [eax*4]
push ecx
call fcn.00582ecc
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.00582ef5
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 0x47956d
call fcn.00586b33
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov dword [esp + 0x174], 0xffffffff
call fcn.00586b33
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x168
ret