Function at 0x478710
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 0x57b533
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2d8
mov eax, dword [0x5df3f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], eax
push 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call fcn.0050ada4
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4787b3
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
mov dword [eax], ecx
lea eax, [ebx + 0xc]
mov byte [ebp - 4], 3
push eax
call fcn.0047f2e0
push dword [ebp - 0x2b4]
mov edx, dword [esi + 4]
push ecx
mov ecx, dword [esi]
call fcn.0045ac80
mov eax, dword [esi]
add esp, 8
cmp dword [ebp - 0x18], 0
mov dword [esi + 4], eax
je 0x478b0a
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop
push 1
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x2e4]
push eax
lea ecx, [ebp - 0x28]
call fcn.00472a90
mov ecx, eax
call fcn.00472910
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x478819
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov eax, dword [eax + ecx*4]
lea ecx, [ebx + 0xc]
cmp ecx, eax
je 0x478837
push 0xffffffffffffffff
push 0
push eax
call fcn.0044d8f0
push 0x5b5b4c
lea eax, [ebx + 0xc]
push eax
lea eax, [ebp - 0x2cc]
push eax
call fcn.00472b50
lea ecx, [ebx + 0x24]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x2ac]
push eax
call fcn.00460ab0
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x47889f
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x478882
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0044d810
xor eax, eax
mov dword [ebp - 0x2c], 7
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00459050
mov eax, dword [ebp - 0x298]
cmp eax, 8
jb 0x4788bd
inc eax
lea ecx, [ebp - 0x2ac]
push eax
push dword [ebp - 0x2ac]
call fcn.0044d810
xor eax, eax
mov byte [ebp - 4], 3
mov word [ebp - 0x2ac], ax
mov eax, dword [ebp - 0x2b8]
mov dword [ebp - 0x298], 7
mov dword [ebp - 0x29c], 0
cmp eax, 8
jb 0x4788fc
inc eax
lea ecx, [ebp - 0x2cc]
push eax
push dword [ebp - 0x2cc]
call fcn.0044d810
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
dec eax
mov edx, dword [ebp - 0x20]
add ecx, eax
mov eax, dword [ebp - 0x24]
dec edx
and edx, ecx
mov esi, dword [eax + edx*4]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x478924
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.0044d810
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x47893a
mov esi, dword [esi]
xor eax, eax
mov ecx, 0
mov word [esi], ax
sub dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x1c]
cmove eax, ecx
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x478aea
nop word [eax + eax]
mov edx, 0x5b5680
lea ecx, [ebp - 0x264]
nop dword [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4789b6
test ax, ax
je 0x4789b2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4789b6
add ecx, 4
add edx, 4
test ax, ax
jne 0x478990
xor eax, eax
jmp 0x4789bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x478ad8
mov eax, 0x5b5c80
lea ecx, [ebp - 0x264]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4789f6
test dx, dx
je 0x4789f2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4789f6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4789d0
xor eax, eax
jmp 0x4789fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x478ad8
test byte [ebp - 0x290], 0x10
lea eax, [ebx + 0xc]
push 0x5b5b4c
push eax
lea eax, [ebp - 0x2cc]
push eax
je 0x478a4b
call fcn.00472b50
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0x2ac]
push eax
call fcn.0045a630
add esp, 0x18
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.004727f0
jmp 0x478a7b
call fcn.00472b50
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x2ac]
push eax
call fcn.0045a630
add esp, 0x18
mov ecx, dword [ebp - 0x2b0]
push eax
mov byte [ebp - 4], 9
call fcn.00472650
mov eax, dword [ebp - 0x298]
cmp eax, 8
jb 0x478a99
inc eax
lea ecx, [ebp - 0x2ac]
push eax
push dword [ebp - 0x2ac]
call fcn.0044d810
xor eax, eax
mov byte [ebp - 4], 3
mov word [ebp - 0x2ac], ax
mov eax, dword [ebp - 0x2b8]
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 7
cmp eax, 8
jb 0x478ad8
inc eax
lea ecx, [ebp - 0x2cc]
push eax
push dword [ebp - 0x2cc]
call fcn.0044d810
lea eax, [ebp - 0x290]
push eax
push esi
call edi
test eax, eax
jne 0x478980
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
cmp eax, 0x12
jne 0x478bb8
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x18], 0
jne 0x4787f0
mov byte [ebp - 0x291], 1
lea ecx, [ebp - 0x28]
call fcn.00472700
push dword [ebp - 0x28]
call fcn.0054145a
mov eax, dword [ebp - 0x2c]
add esp, 4
mov dword [ebp - 0x28], 0
cmp eax, 8
jb 0x478b40
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0044d810
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x478b69
inc eax
lea ecx, [ebx + 0xc]
push eax
push dword [ebx + 0xc]
call fcn.0044d810
mov ecx, dword [ebx + 0x38]
xor eax, eax
mov dword [ebx + 0x20], 7
mov dword [ebx + 0x1c], 0
mov word [ebx + 0xc], ax
cmp ecx, 8
jb 0x478b92
inc ecx
push ecx
push dword [ebx + 0x24]
lea ecx, [ebx + 0x24]
call fcn.0044d810
mov al, byte [ebp - 0x291]
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.0050ad85
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x34
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x291], 0
jmp 0x478b11