Function at 0x601d20
Capabilities:
Enumerate files on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
mov eax, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x602580
test edi, edi
je 0x602580
mov eax, dword [sym.imp.msvcrt.dll__errno]
mov dword [ebp - 0x20], eax
call eax
mov dword [eax], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x601e80
mov dword [esp + 4], eax
mov eax, dword [eax + 0x250]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x601fd4
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax]
lea eax, [esi + 0x2c]
cmp word [esi + 0x2c], 0
mov dword [ebp - 0x20], eax
je 0x602152
xor ebx, ebx
jmp 0x601db4
cmp ebx, 0xff
je 0x6025ab
mov edi, ebx
add ebx, 1
cmp word [esi + ebx*2 + 0x2c], 0
jne 0x601da8
lea ecx, [edi + 2]
lea eax, [esi + 0x254]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x100
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
test eax, eax
jne 0x601e60
mov eax, dword [ebp - 0x1c]
lea ebx, [edi + 1]
mov ecx, dword [ebp - 0x24]
mov edx, dword [eax]
cmp ebx, 2
jbe 0x6021b0
lea eax, [edx + 0x254]
lea edi, [esi + ecx*2 + 0x2c]
cmp eax, edi
jae 0x6021c0
lea edi, [edx + ecx + 0x254]
cmp dword [ebp - 0x20], edi
jae 0x6021c0
mov edx, dword [ebp - 0x20]
lea ebx, [edx + ecx*2]
lea esi, [esi]
movzx ecx, word [edx]
add edx, 2
add eax, 1
mov byte [eax - 1], cl
cmp ebx, edx
jne 0x601e50
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov byte [eax + 0x353], 0
add eax, 0x254
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov ebx, eax
lea eax, [eax - 1]
cmp eax, 0x7ffffffb
ja 0x60260b
mov dword [esp + 4], 1
mov dword [esp], 0x354
call sub.msvcrt.dll_calloc
mov edx, dword [ebp - 0x1c]
mov dword [edx], eax
test eax, eax
je 0x60269c
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [ebx + 1]
mov dword [esp + 8], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [ebp - 0x28], eax
call eax
mov dword [ebp - 0x24], 0xfde9
sub esp, 0x18
mov edx, eax
test eax, eax
jle 0x601fe0
lea eax, [edx + edx + 0x1f]
shr eax, 4
shl eax, 4
call fcn.00651990
sub esp, eax
lea eax, [esp + 0x2f]
mov dword [esp + 0x14], edx
and eax, 0xfffffff0
mov dword [ebp - 0x30], edx
mov dword [esp + 0x10], eax
mov dword [ebp - 0x2c], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [ebp - 0x28]
call eax
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
sub esp, 0x18
test eax, eax
mov esi, edx
je 0x60266e
movzx eax, word [ecx + esi*2 - 4]
cmp ax, 0x2a
je 0x601f8e
mov dword [ebp - 0x24], ecx
lea edx, [ecx + edx*2 - 2]
cmp ax, 0x2f
je 0x602593
cmp ax, 0x5c
je 0x602593
mov dword [esp + 4], 0x6cfb80
mov dword [esp], edx
call sub.msvcrt.dll_wcscpy
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x1c]
mov ebx, dword [edi]
mov dword [esp], ecx
mov dword [esp + 4], ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebx + 0x250], eax
mov esi, dword [edi]
sub esp, 8
cmp dword [esi + 0x250], 0xffffffff
jne 0x601d8c
mov dword [esp], esi
call fcn.0065f328
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
mov eax, dword [ebp - 0x20]
call eax
mov dword [eax], 0x16
xor eax, eax
jmp 0x601e71
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
je 0x602629
lea eax, [ebx + ebx + 0x21]
shr eax, 4
shl eax, 4
call fcn.00651990
sub esp, eax
lea eax, [esp + 0x2f]
and eax, 0xfffffff0
mov ecx, eax
cmp ebx, 0xe
jbe 0x60261d
mov dword [ebp - 0x28], eax
mov eax, esi
mov edx, edi
pxor xmm2, xmm2
and eax, 0xfffffff0
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], eax
add eax, edi
mov ecx, eax
mov eax, dword [ebp - 0x28]
nop
movdqu xmm4, xmmword [edx]
movdqa xmm1, xmm2
add edx, 0x10
add eax, 0x20
pcmpgtb xmm1, xmm4
movdqa xmm0, xmm4
punpcklbw xmm0, xmm1
movups xmmword [eax - 0x20], xmm0
movdqa xmm0, xmm4
punpckhbw xmm0, xmm1
movups xmmword [eax - 0x10], xmm0
cmp edx, ecx
jne 0x602030
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
cmp esi, eax
je 0x60214b
mov eax, dword [ebp - 0x24]
sub ebx, eax
lea edx, [ebx + 1]
cmp ebx, 2
jbe 0x602118
mov ebx, edx
pxor xmm1, xmm1
shr ebx, 2
movdqa xmm2, xmm1
mov dword [ebp - 0x28], ebx
lea ebx, [edi + eax]
cmp dword [ebp - 0x28], 1
lea eax, [ecx + eax*2]
movd xmm0, dword [ebx]
pcmpgtb xmm2, xmm0
movdqa xmm5, xmm0
punpcklbw xmm0, xmm2
punpcklbw xmm5, xmm2
pshufd xmm0, xmm0, 0x41
movd dword [eax], xmm5
movd dword [eax + 4], xmm0
je 0x60210d
movd xmm0, dword [ebx + 4]
movdqa xmm2, xmm1
cmp dword [ebp - 0x28], 2
pcmpgtb xmm2, xmm0
movdqa xmm6, xmm0
punpcklbw xmm0, xmm2
punpcklbw xmm6, xmm2
pshufd xmm0, xmm0, 0x41
movd dword [eax + 8], xmm6
movd dword [eax + 0xc], xmm0
je 0x60210d
movd xmm0, dword [ebx + 8]
pcmpgtb xmm1, xmm0
movdqa xmm7, xmm0
punpcklbw xmm0, xmm1
punpcklbw xmm7, xmm1
pshufd xmm0, xmm0, 0x41
movd dword [eax + 0x10], xmm7
movd dword [eax + 0x14], xmm0
test dl, 3
je 0x60214b
and edx, 0xfffffffc
add dword [ebp - 0x24], edx
mov ebx, dword [ebp - 0x24]
movsx ax, byte [edi + ebx]
lea edx, [ebx + ebx]
mov word [ecx + ebx*2], ax
lea eax, [ebx + 1]
cmp eax, esi
jae 0x60214b
movsx ax, byte [edi + ebx + 1]
mov word [ecx + edx + 2], ax
lea eax, [ebx + 2]
cmp eax, esi
jae 0x60214b
movsx ax, byte [edi + ebx + 2]
mov word [ecx + edx + 4], ax
mov edx, esi
jmp 0x601f55
add esi, 0x254
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x100
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
test eax, eax
jne 0x601e60
mov eax, dword [ebp - 0x1c]
mov ecx, 1
mov edx, dword [eax]
lea esi, [esi]
lea eax, [edx + 0x254]
jmp 0x601e46
cmp ebx, 0xe
jbe 0x602693
movdqu xmm0, xmmword [0x6cfb90]
movdqu xmm1, xmmword [esi + 0x2c]
mov eax, ecx
movdqu xmm2, xmmword [esi + 0x3c]
shr eax, 4
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [edx + 0x254], xmm1
cmp eax, 1
je 0x602478
movdqu xmm1, xmmword [esi + 0x4c]
movdqu xmm2, xmmword [esi + 0x5c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [edx + 0x264], xmm1
cmp eax, 2
je 0x602478
movdqu xmm1, xmmword [esi + 0x6c]
movdqu xmm2, xmmword [esi + 0x7c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [edx + 0x274], xmm1
cmp eax, 3
je 0x602478
movdqu xmm1, xmmword [esi + 0x8c]
movdqu xmm2, xmmword [esi + 0x9c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [edx + 0x284], xmm1
cmp eax, 4
je 0x602478
movdqu xmm1, xmmword [esi + 0xac]
movdqu xmm2, xmmword [esi + 0xbc]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [edx + 0x294], xmm1
cmp eax, 5
je 0x602478
movdqu xmm1, xmmword [esi + 0xcc]
movdqu xmm2, xmmword [esi + 0xdc]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [edx + 0x2a4], xmm1
cmp eax, 6
je 0x602478
movdqu xmm1, xmmword [esi + 0xec]
movdqu xmm2, xmmword [esi + 0xfc]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [edx + 0x2b4], xmm1
cmp eax, 7
je 0x602478
movdqu xmm1, xmmword [esi + 0x10c]
movdqu xmm2, xmmword [esi + 0x11c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [edx + 0x2c4], xmm1
cmp eax, 8
je 0x602478
movdqu xmm1, xmmword [esi + 0x12c]
movdqu xmm2, xmmword [esi + 0x13c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [edx + 0x2d4], xmm1
cmp eax, 9
je 0x602478
movdqu xmm1, xmmword [esi + 0x14c]
movdqu xmm2, xmmword [esi + 0x15c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [edx + 0x2e4], xmm1
cmp eax, 0xa
je 0x602478
movdqu xmm1, xmmword [esi + 0x16c]
movdqu xmm2, xmmword [esi + 0x17c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [edx + 0x2f4], xmm1
cmp eax, 0xb
je 0x602478
movdqu xmm1, xmmword [esi + 0x18c]
movdqu xmm2, xmmword [esi + 0x19c]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [edx + 0x304], xmm1
cmp eax, 0xc
je 0x602478
movdqu xmm1, xmmword [esi + 0x1ac]
movdqu xmm2, xmmword [esi + 0x1bc]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [edx + 0x314], xmm1
cmp eax, 0xd
je 0x602478
movdqu xmm1, xmmword [esi + 0x1cc]
movdqu xmm2, xmmword [esi + 0x1dc]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [edx + 0x324], xmm1
cmp eax, 0xe
je 0x602478
movdqu xmm1, xmmword [esi + 0x1ec]
movdqu xmm2, xmmword [esi + 0x1fc]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movups xmmword [edx + 0x334], xmm1
cmp eax, 0x10
jne 0x602478
movdqu xmm1, xmmword [esi + 0x20c]
movdqu xmm2, xmmword [esi + 0x21c]
pand xmm1, xmm0
pand xmm0, xmm2
packuswb xmm1, xmm0
movups xmmword [edx + 0x344], xmm1
jmp 0x601e60
mov edi, ecx
and edi, 0xfffffff0
test cl, 0xf
je 0x601e60
mov ebx, ecx
sub ebx, edi
lea eax, [ebx - 1]
cmp eax, 2
jbe 0x60252f
mov eax, ebx
shr eax, 2
mov dword [ebp - 0x24], eax
lea eax, [esi + edi*2 + 0x2c]
cmp dword [ebp - 0x24], 1
lea esi, [edx + edi + 0x254]
movd xmm0, dword [eax]
movd xmm1, dword [eax + 4]
movdqa xmm2, xmm0
punpcklbw xmm0, xmm1
punpcklbw xmm2, xmm1
pshufd xmm2, xmm2, 0x41
punpcklbw xmm0, xmm2
movd dword [esi], xmm0
je 0x60251f
movd xmm0, dword [eax + 8]
movd xmm1, dword [eax + 0xc]
cmp dword [ebp - 0x24], 2
movdqa xmm2, xmm0
punpcklbw xmm0, xmm1
punpcklbw xmm2, xmm1
pshufd xmm2, xmm2, 0x41
punpcklbw xmm0, xmm2
movd dword [esi + 4], xmm0
je 0x60251f
movd xmm0, dword [eax + 0x10]
movd xmm1, dword [eax + 0x14]
movdqa xmm2, xmm0
punpcklbw xmm0, xmm1
punpcklbw xmm2, xmm1
pshufd xmm2, xmm2, 0x41
punpcklbw xmm0, xmm2
movd dword [esi + 8], xmm0
mov eax, ebx
and eax, 0xfffffffc
add edi, eax
and ebx, 3
je 0x601e60
mov esi, dword [ebp - 0x20]
lea ebx, [edi + edi]
movzx eax, word [esi + edi*2]
mov byte [edx + edi + 0x254], al
lea eax, [edi + 1]
cmp eax, ecx
jae 0x601e60
mov dword [ebp - 0x20], ebx
movzx ebx, word [esi + ebx + 2]
lea eax, [edi + 2]
mov byte [edx + edi + 0x255], bl
cmp eax, ecx
jae 0x601e60
mov ebx, dword [ebp - 0x20]
movzx ecx, word [esi + ebx + 4]
mov byte [edx + edi + 0x256], cl
jmp 0x601e60
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x16
xor eax, eax
jmp 0x601e71
mov dword [esp + 4], 0x6cfb86
mov dword [esp], edx
call sub.msvcrt.dll_wcscpy
mov ecx, dword [ebp - 0x24]
jmp 0x601f8e
lea eax, [esi + 0x254]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x100
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x100
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
test eax, eax
jne 0x601e60
mov eax, dword [ebp - 0x1c]
mov ecx, 0x100
mov edx, dword [eax]
jmp 0x601e24
mov eax, dword [ebp - 0x20]
call eax
mov dword [eax], 2
xor eax, eax
jmp 0x601e71
mov dword [ebp - 0x24], 0
jmp 0x60206c
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [ebp - 0x28]
call eax
sub esp, 0x18
mov edx, eax
test eax, eax
jle 0x601ff1
mov dword [ebp - 0x24], 0
jmp 0x601f01
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi]
mov dword [esp], eax
call fcn.0065f328
mov dword [edi], 0
mov eax, dword [ebp - 0x20]
call eax
mov dword [eax], 0x16
xor eax, eax
jmp 0x601e71
mov ebx, ecx
xor edi, edi
jmp 0x602496
mov eax, dword [ebp - 0x20]
call eax
mov dword [eax], 0xc
xor eax, eax
jmp 0x601e71