Function at 0x4587c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6ce3
mov eax, dword fs:[0]
push eax
sub esp, 0x73c
mov eax, dword [0x5060c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x748], eax
mov dword [ebp - 0x744], 1
mov dword [ebp - 0x740], eax
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [edi + 0x130], 0
mov dword [ebp - 0x744], 1
je 0x459000
movups xmmword [ebp - 0x4b4], xmm0
mov dword [ebp - 0x4a4], 0
push 8
mov dword [ebp - 0x4b4], 0
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4ac], 0
mov dword [ebp - 0x4a8], 0
mov dword [ebp - 0x4a4], 0
call fcn.004a2383
lea ecx, [ebp - 0x4b4]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x4b4], eax
mov dword [eax], ecx
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x4a4]
mov edx, dword [ebp - 0x4ac]
lea eax, [esi + 1]
cmp edx, eax
ja 0x4588d6
push ecx
call fcn.0045a030
mov esi, dword [ebp - 0x4a4]
mov edx, dword [ebp - 0x4ac]
mov ecx, dword [ebp - 0x4a8]
lea eax, [edx - 1]
and ecx, eax
lea eax, [edx - 1]
mov dword [ebp - 0x4a8], ecx
add ecx, esi
and eax, ecx
mov dword [ebp - 0x724], ecx
mov ecx, dword [ebp - 0x4b0]
lea esi, [eax*4]
cmp dword [ecx + esi], 0
jne 0x458926
push 0x18
call fcn.004a2383
mov ecx, dword [ebp - 0x4b0]
add esp, 4
mov dword [ecx + esi], eax
mov edx, dword [ebp - 0x4ac]
mov ecx, dword [ebp - 0x4b0]
lea eax, [edx - 1]
and eax, dword [ebp - 0x724]
mov ecx, dword [ecx + eax*4]
lea eax, [edi + 0x120]
push eax
call fcn.00454780
mov ecx, dword [ebp - 0x4a4]
add ecx, 1
mov dword [ebp - 0x4a4], ecx
je 0x458f24
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [ebp - 0x4ac]
xorps xmm0, xmm0
mov edx, dword [ebp - 0x4a8]
mov esi, dword [ebp - 0x4b0]
lea eax, [ecx - 1]
and eax, edx
mov esi, dword [esi + eax*4]
mov edi, esi
movups xmmword [ebp - 0x4cc], xmm0
mov dword [ebp - 0x4bc], 0
mov dword [ebp - 0x4b8], 0
cmp dword [esi + 0x14], 7
jbe 0x4589a2
mov edi, dword [esi]
mov esi, dword [esi + 0x10]
cmp esi, 0x7ffffffe
ja 0x459022
cmp esi, 7
ja 0x4589d2
mov dword [ebp - 0x4bc], esi
mov dword [ebp - 0x4b8], 7
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x4cc], xmm0
jmp 0x458a3f
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x4589e5
mov eax, SysReAllocString
jmp 0x4589f0
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0x720], eax
lea eax, [ebp - 0x720]
push eax
lea eax, [ebp - 0x4cc]
push eax
call fcn.00426130
mov ecx, dword [ebp - 0x720]
mov dword [ebp - 0x4b8], ecx
lea ecx, [esi*2 + 2]
push ecx
push edi
push eax
mov dword [ebp - 0x4cc], eax
mov dword [ebp - 0x4bc], esi
call fcn.004a3d80
mov edx, dword [ebp - 0x4a8]
add esp, 0x14
mov ecx, dword [ebp - 0x4ac]
dec ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x4b0]
and ecx, edx
mov ecx, dword [eax + ecx*4]
call fcn.00425e10
sub dword [ebp - 0x4a4], 1
jne 0x458a69
mov dword [ebp - 0x4a8], 0
jmp 0x458a6f
inc dword [ebp - 0x4a8]
push 0x208
lea eax, [ebp - 0x4a0]
push 0
push eax
call fcn.004a4300
cmp dword [ebp - 0x4b8], 7
lea eax, [ebp - 0x4cc]
cmova eax, dword [ebp - 0x4cc]
push eax
lea eax, [ebp - 0x4a0]
push 0x4ed148
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x4a0]
push 0x4ee244
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x250
lea eax, [ebp - 0x71c]
push 0
push eax
call fcn.004a4300
add esp, 0xc
lea eax, [ebp - 0x71c]
push eax
lea eax, [ebp - 0x4a0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x724], edi
cmp edi, 0xffffffff
je 0x458ed2
nop dword [eax]
cmp word [ebp - 0x6f0], 0x2e
je 0x458eb5
push 0x208
lea eax, [ebp - 0x298]
push 0
push eax
call fcn.004a4300
add esp, 0xc
lea ecx, [ebp - 0x6f0]
cmp dword [ebp - 0x4b8], 7
lea eax, [ebp - 0x4cc]
cmova eax, dword [ebp - 0x4cc]
push ecx
push eax
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [ebp - 0x71c], 0x10
je 0x458cee
xorps xmm0, xmm0
mov dword [ebp - 0x72c], 0
lea esi, [ebp - 0x298]
mov dword [ebp - 0x728], 0
movups xmmword [ebp - 0x73c], xmm0
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x458b81
sub esi, ecx
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x459022
cmp esi, 7
ja 0x458bd6
mov dword [ebp - 0x72c], esi
lea eax, [ebp - 0x298]
add esi, esi
mov dword [ebp - 0x728], 7
push esi
push eax
lea eax, [ebp - 0x73c]
push eax
call fcn.004a3d80
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x73c], ax
jmp 0x458c40
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x458be9
mov eax, SysReAllocString
jmp 0x458bf4
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0x720], eax
lea eax, [ebp - 0x720]
push eax
lea eax, [ebp - 0x73c]
push eax
call fcn.00426130
mov ecx, dword [ebp - 0x720]
mov edi, eax
mov dword [ebp - 0x72c], esi
lea eax, [ebp - 0x298]
add esi, esi
mov dword [ebp - 0x73c], edi
push esi
push eax
push edi
mov dword [ebp - 0x728], ecx
call fcn.004a3d80
add esp, 0x14
xor eax, eax
mov word [esi + edi], ax
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x4a4]
mov edx, dword [ebp - 0x4ac]
lea eax, [esi + 1]
cmp edx, eax
ja 0x458c6f
push ecx
lea ecx, [ebp - 0x4b4]
call fcn.0045a030
mov esi, dword [ebp - 0x4a4]
mov edx, dword [ebp - 0x4ac]
mov ecx, dword [ebp - 0x4a8]
lea eax, [edx - 1]
and ecx, eax
lea eax, [edx - 1]
mov dword [ebp - 0x4a8], ecx
lea edi, [esi + ecx]
mov ecx, dword [ebp - 0x4b0]
and eax, edi
cmp dword [ecx + eax*4], 0
lea esi, [eax*4]
jne 0x458cba
push 0x18
call fcn.004a2383
mov ecx, dword [ebp - 0x4b0]
add esp, 4
mov dword [ecx + esi], eax
mov edx, dword [ebp - 0x4ac]
mov ecx, dword [ebp - 0x4b0]
movups xmm0, xmmword [ebp - 0x73c]
lea eax, [edx - 1]
and eax, edi
mov edi, dword [ebp - 0x724]
mov eax, dword [ecx + eax*4]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x72c]
movq qword [eax + 0x10], xmm0
inc dword [ebp - 0x4a4]
mov byte [ebp - 4], 2
jmp 0x458eb5
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.004a4300
push 0x40
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x6f0]
push 0
push eax
call fcn.004b9197
lea eax, [ebp - 0x90]
push eax
push 0x4ee2dc
call fcn.004b8983
add esp, 0x38
test eax, eax
jne 0x458eb5
xorps xmm0, xmm0
mov dword [ebp - 0x72c], eax
lea esi, [ebp - 0x298]
mov dword [ebp - 0x728], eax
movups xmmword [ebp - 0x73c], xmm0
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x458d60
sub esi, ecx
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x459022
cmp esi, 7
ja 0x458db5
mov dword [ebp - 0x72c], esi
lea eax, [ebp - 0x298]
add esi, esi
mov dword [ebp - 0x728], 7
push esi
push eax
lea eax, [ebp - 0x73c]
push eax
call fcn.004a3d80
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x73c], ax
jmp 0x458e25
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x458dc8
mov eax, SysReAllocString
jmp 0x458dd3
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0x720], eax
lea eax, [ebp - 0x720]
push eax
lea eax, [ebp - 0x73c]
push eax
call fcn.00426130
mov ecx, dword [ebp - 0x720]
mov edi, eax
mov dword [ebp - 0x72c], esi
lea eax, [ebp - 0x298]
add esi, esi
mov dword [ebp - 0x73c], edi
push esi
push eax
push edi
mov dword [ebp - 0x728], ecx
call fcn.004a3d80
add esp, 0x14
xor eax, eax
mov word [esi + edi], ax
mov edi, dword [ebp - 0x724]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x740]
mov eax, dword [edx + 4]
cmp eax, dword [edx + 8]
je 0x458e62
movups xmm0, xmmword [ebp - 0x73c]
mov ecx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x72c]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [edx + 4], 0x18
mov word [ebp - 0x73c], ax
jmp 0x458e77
lea ecx, [ebp - 0x73c]
push ecx
push eax
mov ecx, edx
call fcn.0045a560
mov ecx, dword [ebp - 0x728]
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x458eb5
mov edx, dword [ebp - 0x73c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x458eab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45901d
push ecx
push edx
call fcn.004a23b3
add esp, 8
lea eax, [ebp - 0x71c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x458b00
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4b8]
cmp ecx, 7
jbe 0x458f16
mov edx, dword [ebp - 0x4cc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x458f0c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45901d
push ecx
push edx
call fcn.004a23b3
add esp, 8
mov ecx, dword [ebp - 0x4a4]
test ecx, ecx
jne 0x458960
test ecx, ecx
je 0x458f6b
nop dword [eax + eax]
mov eax, dword [ebp - 0x4a8]
dec eax
add ecx, eax
mov eax, dword [ebp - 0x4ac]
dec eax
and ecx, eax
mov eax, dword [ebp - 0x4b0]
mov ecx, dword [eax + ecx*4]
call fcn.00425e10
mov ecx, dword [ebp - 0x4a4]
sub ecx, 1
mov dword [ebp - 0x4a4], ecx
jne 0x458f30
mov dword [ebp - 0x4a8], 0
mov ecx, dword [ebp - 0x4b0]
test ecx, ecx
je 0x458fdf
mov esi, dword [ebp - 0x4ac]
test esi, esi
jle 0x458fa4
nop
mov eax, dword [ecx + esi*4 - 4]
dec esi
test eax, eax
je 0x458f9a
push 0x18
push eax
call fcn.004a23b3
mov ecx, dword [ebp - 0x4b0]
add esp, 8
test esi, esi
jg 0x458f80
mov esi, dword [ebp - 0x4ac]
shl esi, 2
mov eax, ecx
cmp esi, 0x1000
jb 0x458fc1
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45901d
push esi
push ecx
call fcn.004a23b3
add esp, 8
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4ac], 0
mov eax, dword [ebp - 0x4b4]
push 8
push eax
mov dword [ebp - 0x4b4], 0
call fcn.004a23b3
mov eax, dword [ebp - 0x740]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a2700
mov esp, ebp
pop ebp
ret 4
call fcn.004a78df
call fcn.004253f0
int3