Function at 0x476c30
Capabilities:
Enumerate files on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7b97
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x758
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x750], eax
mov ecx, dword [ebx + 8]
xorps xmm0, xmm0
xor esi, esi
movq qword [ebp - 0x4c8], xmm0
xor edi, edi
mov dword [ebp - 0x4c0], 0
mov dword [ebp - 0x734], ecx
mov dword [ebp - 0x754], 0
mov dword [ebp - 0x4c8], esi
mov dword [ebp - 0x4c4], edi
mov dword [ebp - 0x4c0], esi
mov dword [ebp - 4], edi
cmp dword [eax + 0x130], edi
jne 0x476cd1
mov dword [ecx], edi
mov eax, ecx
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
jmp 0x4770d7
movups xmmword [ebp - 0x4bc], xmm0
mov dword [ebp - 0x4ac], 0
push 8
mov dword [ebp - 0x4bc], 0
mov dword [ebp - 0x4b8], 0
mov dword [ebp - 0x4b4], 0
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4ac], 0
call fcn.005a8f62
add esp, 4
mov dword [ebp - 0x4bc], eax
test eax, eax
je 0x476d3b
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x4bc]
lea ecx, [ebp - 0x4bc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x750]
add eax, 0x120
mov byte [ebp - 4], 1
push eax
call fcn.00477cf0
cmp dword [ebp - 0x4ac], 0
je 0x4770a4
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [eax + eax]
lea eax, [ebp - 0x764]
push eax
lea ecx, [ebp - 0x4bc]
call fcn.004102d0
mov edx, eax
mov ecx, dword [edx]
test ecx, ecx
jne 0x476d8e
xor eax, eax
jmp 0x476d90
mov eax, dword [ecx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
push 0xffffffffffffffff
mov eax, dword [eax + ecx*4]
xor ecx, ecx
push ecx
mov word [ebp - 0x4e0], cx
lea ecx, [ebp - 0x4e0]
push eax
mov dword [ebp - 0x4cc], 7
mov dword [ebp - 0x4d0], 0
call fcn.00409590
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4b4]
mov eax, dword [ebp - 0x4b8]
dec ecx
and ecx, dword [ebp - 0x4b0]
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x476df6
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00409d50
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x476e0c
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
sub dword [ebp - 0x4ac], 1
jne 0x476e22
mov dword [ebp - 0x4b0], eax
jmp 0x476e28
inc dword [ebp - 0x4b0]
push 0x208
lea eax, [ebp - 0x4a8]
push 0
push eax
call fcn.005c1b40
cmp dword [ebp - 0x4cc], 8
lea eax, [ebp - 0x4e0]
cmovae eax, dword [ebp - 0x4e0]
push eax
lea eax, [ebp - 0x4a8]
push 0x659c08
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x4a8]
push 0x659c10
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x250
lea eax, [ebp - 0x730]
push 0
push eax
call fcn.005c1b40
add esp, 0xc
lea eax, [ebp - 0x730]
push eax
lea eax, [ebp - 0x4a8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x477069
nop dword [eax]
cmp word [ebp - 0x704], 0x2e
je 0x477050
push 0x208
lea eax, [ebp - 0x2a0]
push 0
push eax
call fcn.005c1b40
add esp, 0xc
lea ecx, [ebp - 0x704]
cmp dword [ebp - 0x4cc], 8
lea eax, [ebp - 0x4e0]
cmovae eax, dword [ebp - 0x4e0]
push ecx
push eax
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [ebp - 0x730], 0x10
je 0x476f7d
xor eax, eax
mov dword [ebp - 0x738], 7
mov dword [ebp - 0x73c], 0
mov word [ebp - 0x74c], ax
cmp word [ebp - 0x2a0], ax
jne 0x476f30
xor ecx, ecx
jmp 0x476f4f
lea ecx, [ebp - 0x2a0]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476f40
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x74c]
call fcn.004090e0
lea eax, [ebp - 0x74c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x4bc]
call fcn.0040ff20
jmp 0x47702e
push 0x80
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.005c1b40
push 0x40
lea eax, [ebp - 0x98]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x704]
push 0
push eax
call fcn.005d622e
lea eax, [ebp - 0x98]
push eax
push str..exe
call fcn.005cb64b
add esp, 0x38
test eax, eax
jne 0x477050
mov dword [ebp - 0x738], 7
mov dword [ebp - 0x73c], eax
mov word [ebp - 0x74c], ax
cmp word [ebp - 0x2a0], ax
je 0x477005
lea eax, [ebp - 0x2a0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x476ff6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x74c]
call fcn.004090e0
lea eax, [ebp - 0x74c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x4c8]
call fcn.00477b70
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x738]
cmp eax, 8
jb 0x477050
inc eax
lea ecx, [ebp - 0x74c]
push eax
push dword [ebp - 0x74c]
call fcn.00409d50
lea eax, [ebp - 0x730]
push eax
push esi
call edi
test eax, eax
jne 0x476eb0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x4cc]
cmp eax, 8
jb 0x47708b
inc eax
lea ecx, [ebp - 0x4e0]
push eax
push dword [ebp - 0x4e0]
call fcn.00409d50
cmp dword [ebp - 0x4ac], 0
jne 0x476d70
mov edi, dword [ebp - 0x4c4]
mov esi, dword [ebp - 0x4c8]
mov ecx, dword [ebp - 0x734]
mov eax, dword [ebp - 0x4c0]
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x4bc]
call fcn.0040fe80
push dword [ebp - 0x4bc]
call fcn.005a8a50
mov eax, dword [ebp - 0x734]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4