Function at 0x476a90
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 0x5d7403
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x748
mov eax, dword [0x655140]
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 - 0x730], eax
mov esi, dword [ebx + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x754], esi
mov dword [ebp - 0x734], 1
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
cmp dword [eax + 0x130], 0
mov dword [ebp - 0x734], 1
je 0x476f96
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.004b4016
lea ecx, [ebp - 0x4bc]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x4bc], eax
mov dword [eax], ecx
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x4ac]
mov edx, dword [ebp - 0x4b4]
lea eax, [edi + 1]
cmp edx, eax
ja 0x476bba
push ecx
call fcn.0040d3a0
mov edi, dword [ebp - 0x4ac]
mov edx, dword [ebp - 0x4b4]
mov ecx, dword [ebp - 0x4b0]
lea eax, [edx - 1]
and ecx, eax
lea eax, [edx - 1]
mov dword [ebp - 0x4b0], ecx
add ecx, edi
and eax, ecx
mov dword [ebp - 0x72c], ecx
mov ecx, dword [ebp - 0x4b8]
lea edi, [eax*4]
cmp dword [ecx + edi], 0
jne 0x476c0a
push 0x18
call fcn.004b4016
mov ecx, dword [ebp - 0x4b8]
add esp, 4
mov dword [ecx + edi], eax
mov edx, dword [ebp - 0x4b4]
mov ecx, dword [ebp - 0x4b8]
lea eax, [edx - 1]
and eax, dword [ebp - 0x72c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ebp - 0x730]
add eax, 0x120
push eax
call fcn.0040c880
add dword [ebp - 0x4ac], 1
je 0x476f8b
nop dword [eax]
nop dword [eax + eax]
mov ecx, dword [ebp - 0x4b4]
mov eax, dword [ebp - 0x4b8]
dec ecx
and ecx, dword [ebp - 0x4b0]
push dword [eax + ecx*4]
lea ecx, [ebp - 0x4d4]
call fcn.0040c880
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4b4]
mov eax, dword [ebp - 0x4b8]
dec ecx
and ecx, dword [ebp - 0x4b0]
mov ecx, dword [eax + ecx*4]
call fcn.00408bb0
sub dword [ebp - 0x4ac], 1
jne 0x476c95
mov dword [ebp - 0x4b0], 0
jmp 0x476c9b
inc dword [ebp - 0x4b0]
push 0x208
lea eax, [ebp - 0x2a0]
push 0
push eax
call fcn.004b69d0
add esp, 0xc
lea eax, [ebp - 0x4d4]
cmp dword [ebp - 0x4c0], 7
cmova eax, dword [ebp - 0x4d4]
push eax
lea eax, [ebp - 0x2a0]
push 0x6344cc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x2a0]
push 0x6344d4
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x250
lea eax, [ebp - 0x728]
push 0
push eax
call fcn.004b69d0
add esp, 0xc
lea eax, [ebp - 0x728]
push eax
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x738], edi
cmp edi, 0xffffffff
je 0x476f6f
nop dword [eax + eax]
cmp word [ebp - 0x6fc], 0x2e
je 0x476f52
push 0x208
lea eax, [ebp - 0x4a8]
push 0
push eax
call fcn.004b69d0
add esp, 0xc
lea ecx, [ebp - 0x6fc]
cmp dword [ebp - 0x4c0], 7
lea eax, [ebp - 0x4d4]
cmova eax, dword [ebp - 0x4d4]
push ecx
push eax
lea eax, [ebp - 0x4a8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [ebp - 0x728], 0x10
je 0x476e8a
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x750]
call fcn.00407f40
mov dword [ebp - 0x72c], eax
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x4ac]
mov edx, dword [ebp - 0x4b4]
lea ecx, [edi + 1]
cmp edx, ecx
ja 0x476dd1
push ecx
lea ecx, [ebp - 0x4bc]
call fcn.0040d3a0
mov edi, dword [ebp - 0x4ac]
mov edx, dword [ebp - 0x4b4]
mov ecx, dword [ebp - 0x4b0]
lea eax, [edx - 1]
and ecx, eax
lea eax, [edx - 1]
mov dword [ebp - 0x4b0], ecx
add ecx, edi
and eax, ecx
mov dword [ebp - 0x730], ecx
mov ecx, dword [ebp - 0x4b8]
lea edi, [eax*4]
cmp dword [ecx + edi], 0
jne 0x476e21
push 0x18
call fcn.004b4016
mov ecx, dword [ebp - 0x4b8]
add esp, 4
mov dword [ecx + edi], eax
mov edx, dword [ebp - 0x4b4]
mov ecx, dword [ebp - 0x4b8]
lea eax, [edx - 1]
xorps xmm0, xmm0
and eax, dword [ebp - 0x730]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x72c]
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
lea ecx, [ebp - 0x750]
inc dword [ebp - 0x4ac]
mov byte [ebp - 4], 2
call fcn.00408bb0
mov edi, dword [ebp - 0x738]
jmp 0x476f52
push 0x80
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.004b69d0
add esp, 0xc
lea eax, [ebp - 0x98]
push 0x40
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x6fc]
push 0
push eax
call fcn.004cb7c1
add esp, 0x24
lea eax, [ebp - 0x98]
push eax
push str..exe
call fcn.004c0ad1
add esp, 8
test eax, eax
jne 0x476f52
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x750]
call fcn.00407f40
mov byte [ebp - 4], 4
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x476f34
movups xmm0, xmmword [ebp - 0x750]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x740]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [esi + 4], 0x18
mov dword [ebp - 0x740], 0
mov dword [ebp - 0x73c], 7
mov word [ebp - 0x750], ax
jmp 0x476f43
lea ecx, [ebp - 0x750]
push ecx
push eax
mov ecx, esi
call fcn.00478000
lea ecx, [ebp - 0x750]
mov byte [ebp - 4], 2
call fcn.00408bb0
lea eax, [ebp - 0x728]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x476d30
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x4d4]
mov byte [ebp - 4], 1
call fcn.00408bb0
cmp dword [ebp - 0x4ac], 0
jne 0x476c40
lea ecx, [ebp - 0x4bc]
call fcn.0040c560
mov eax, esi
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.004b3f1a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4