Function at 0x609550
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x28c
mov ebx, dword [esp + 0x2a0]
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov esi, eax
add eax, 0xa
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov edi, eax
mov dword [esp + 0x2c], eax
je 0x6099b1
lea eax, [esi + 1]
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
movzx eax, byte [edi]
test al, al
je 0x609950
mov ebx, edi
jmp 0x6095ba
add ebx, 1
movzx eax, byte [ebx]
test al, al
je 0x6095cb
cmp al, 0x2f
jne 0x6095b0
mov byte [ebx], 0x5c
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x6095ba
test esi, esi
je 0x6098f0
cmp esi, 2
je 0x609600
cmp esi, 1
jne 0x609940
movzx eax, byte [ebx - 1]
xor edx, edx
cmp al, 0x2e
je 0x609999
cmp al, 0x5c
je 0x609931
test dl, dl
jne 0x60963f
jmp 0x609627
mov eax, dword [esp + 0x2c]
cmp byte [eax + 1], 0x3a
je 0x609913
movzx eax, byte [ebx - 1]
cmp al, 0x5c
je 0x609931
cmp esi, 1
jle 0x609627
cmp al, 0x2e
je 0x609900
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
test al, 0x10
jne 0x609959
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x609643
mov ecx, eax
mov edi, dword [esp + 0x2c]
mov dword [esp + 0xc], 0
shr ecx, 0x10
test eax, 0x8080
mov dword [esp + 8], 0
cmove eax, ecx
lea ecx, [edx + 2]
mov dword [esp], edi
cmove edx, ecx
mov ecx, eax
add cl, al
sbb edx, 3
sub edx, edi
mov dword [esp + 4], edx
call fcn.0060aa20
lea esi, [eax + 1]
lea eax, [esi + esi]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ecx, edi
mov ebx, eax
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x6096a7
mov eax, edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
shr eax, 0x10
test edx, 0x8080
cmove edx, eax
lea eax, [ecx + 2]
cmove ecx, eax
mov eax, edx
add al, dl
mov eax, dword [esp + 0x2c]
sbb ecx, 3
xor esi, esi
sub ecx, eax
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0060aa20
mov word [ebx + eax*2], si
lea eax, [esp + 0x30]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
sub esp, 8
mov edi, eax
mov dword [esp], ebx
mov dword [esp + 0x24], eax
call fcn.004defc0
cmp edi, 0xffffffff
je 0x60996a
xor ebp, ebp
mov dword [esp + 0x28], 0
xor esi, esi
jmp 0x60978f
mov edx, dword [esp + 0x2a8]
test edx, edx
je 0x60974f
mov dword [esp], ebx
call dword [esp + 0x2a8]
test eax, eax
je 0x609830
cmp esi, dword [esp + 0x28]
je 0x609840
lea eax, [esi*4]
mov dword [ebp + esi*4], ebx
add esi, 1
mov dword [ebp + eax + 4], 0
lea eax, [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x609871
lea eax, [esp + 0x5c]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
mov edx, eax
lea eax, [eax + eax*4]
mov dword [esp + 0x20], edx
lea ecx, [eax + 1]
add eax, 0x10d
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call sub.msvcrt.dll_malloc
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov ebx, eax
lea edi, [eax + 8]
lea eax, [esp + 0x5c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edi
call fcn.0060a560
test byte [esp + 0x30], 0x10
mov byte [ebx + eax + 8], 0
je 0x609732
mov edx, dword [edi]
add edi, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x6097ed
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [edi + 2]
mov ecx, eax
cmove edi, edx
add cl, al
mov ecx, 0x2f
sbb edi, 3
mov word [edi], cx
jmp 0x609732
mov dword [esp], ebx
call fcn.004defc0
jmp 0x60976f
lea eax, [esi + 0x21]
mov dword [esp], 4
mov dword [esp + 4], eax
call sub.msvcrt.dll_calloc
test esi, esi
mov edi, eax
jne 0x6098d3
test ebp, ebp
je 0x609865
mov dword [esp], ebp
call fcn.004defc0
add dword [esp + 0x28], 0x20
mov ebp, edi
jmp 0x609759
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.004defc0
mov eax, dword [esp + 0x2ac]
test eax, eax
je 0x6098bd
mov eax, dword [esp + 0x2ac]
mov dword [esp + 8], 4
mov dword [esp + 4], esi
mov dword [esp], ebp
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_qsort
mov eax, dword [esp + 0x2a4]
mov dword [eax], ebp
mov eax, esi
add esp, 0x28c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esi*4]
mov dword [esp + 4], ebp
mov dword [esp], edi
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
jmp 0x60985d
mov eax, dword [esp + 0x2c]
mov dword [eax], 0x2a5c2e
jmp 0x609627
cmp byte [ebx - 2], 0x5c
jne 0x609627
mov byte [ebx - 1], 0x2a
jmp 0x60963f
movsx eax, byte [eax]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_isalpha]
test eax, eax
je 0x60960e
mov byte [ebx], 0x5c
mov byte [ebx + 1], 0
add ebx, 1
mov byte [ebx], 0x2a
mov byte [ebx + 1], 0
jmp 0x60963f
test esi, esi
jg 0x60960e
jmp 0x609627
mov ebx, dword [esp + 0x2c]
jmp 0x6095cb
mov edi, 0x2a5c
mov byte [ebx + 2], 0
mov word [ebx], di
jmp 0x60963f
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.004defc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x2a4]
cmp eax, 0x12
setne al
movzx eax, al
neg eax
mov dword [edi], 0
jmp 0x6098c8
mov eax, dword [esp + 0x2c]
mov edx, 1
mov dword [eax], 0x2a5c2e
movzx eax, byte [ebx - 1]
jmp 0x6095ef
mov eax, 0xffffffff
jmp 0x6098c8