Function at 0x5f8d10
Capabilities:
Get common file path
Get disk information
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x6ccc30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x6c853e], 0
je 0x5f916c
xor eax, eax
mov byte [0x6c853e], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x250]
push eax
push 0
push 0x4000
push 0x6581ec
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x5f904a
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x250]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f8db2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x24c]
call fcn.005d2810
push dword [ebp - 0x250]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ax, word [0x650cb4]
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x238], 8
movups xmm0, xmmword [0x650ca4]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x24c]
cmovae eax, dword [ebp - 0x24c]
push 9
push ecx
push eax
movups xmmword [ebp - 0x2c], xmm0
call fcn.005dcc34
add esp, 0xc
test eax, eax
je 0x5f911b
cmp dword [ebp - 0x238], 8
lea eax, [ebp - 0x24c]
push 2
cmovae eax, dword [ebp - 0x24c]
push 0x650cb8
push eax
call fcn.005dcc34
mov edx, dword [ebp - 0x238]
add esp, 0xc
mov ecx, dword [ebp - 0x24c]
test eax, eax
jne 0x5f8e6e
cmp dword [ebp - 0x23c], 3
jbe 0x5f8e6e
cmp edx, 8
lea eax, [ebp - 0x24c]
cmovae eax, ecx
cmp word [eax + 4], 0x3f
jne 0x5f9127
cmp edx, 8
lea eax, [ebp - 0x24c]
push 8
cmovae eax, ecx
push 0x650cc0
push eax
call fcn.005dcc34
add esp, 0xc
test eax, eax
je 0x5f911b
mov esi, dword [ebp - 0x238]
lea eax, [ebp - 0x24c]
mov edx, dword [ebp - 0x24c]
cmp esi, 8
mov ecx, dword [ebp - 0x23c]
cmovae eax, edx
test ecx, ecx
je 0x5f90fd
xor edi, edi
mov edx, eax
test ecx, ecx
je 0x5f8ed7
cmp word [eax], 0x3a
je 0x5f8ed5
cmp ecx, 1
je 0x5f8ed7
add edx, 2
dec ecx
cmp word [edx], 0x3a
jne 0x5f8ec6
mov edi, edx
test edi, edi
je 0x5f90f7
sub edi, eax
sar edi, 1
je 0x5f90f7
cmp edi, 0xffffffff
je 0x5f90f7
mov ecx, dword [ebp - 0x24c]
cmp edi, 1
jbe 0x5f8f36
cmp esi, 8
lea eax, [ebp - 0x24c]
cmovae eax, ecx
cmp word [eax + edi*2 - 4], 0x5c
je 0x5f8f36
mov dword [ebp - 4], 3
cmp esi, 8
jb 0x5f916c
lea eax, [esi + 1]
push eax
push ecx
lea ecx, [ebp - 0x24c]
call fcn.005d31d0
jmp 0x5f916c
cmp esi, 8
lea eax, [ebp - 0x24c]
cmovae eax, ecx
movzx eax, word [eax + edi*2 - 2]
cmp eax, 0x61
jb 0x5f8f51
cmp eax, 0x7a
jbe 0x5f8f5e
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x5f90eb
push 0x208
lea eax, [ebp - 0x234]
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x18], xmm0
call fcn.0061e8c0
add esp, 0xc
lea eax, [ebp - 0x24c]
cmp esi, 8
cmovae eax, dword [ebp - 0x24c]
lea eax, [eax + edi*2]
add eax, 0xfffffffe
je 0x5f90ad
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x234]
push 0x104
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x5f90a4
cmp eax, 0x104
je 0x5f90a4
mov dword [ebp - 0x26c], 0x650cd4
xor esi, esi
mov dword [ebp - 0x268], 0x650cf0
mov dword [ebp - 0x264], 0x650d24
mov dword [ebp - 0x260], 0x650d58
mov dword [ebp - 0x25c], 0x650d78
mov dword [ebp - 0x258], 0x650db0
nop word [eax + eax]
mov edx, dword [ebp + esi*4 - 0x26c]
mov eax, edx
lea edi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5f9020
sub eax, edi
sar eax, 1
push eax
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.005dcc34
add esp, 0xc
test eax, eax
je 0x5f909b
inc esi
cmp esi, 6
jb 0x5f9010
mov edx, dword [ebp - 0x238]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x5f916c
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
mov dword [ebp - 4], 7
cmp edx, 0x1000
jb 0x5f9162
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5f918c
jmp 0x5f9162
mov byte [0x6cee94], 1
jmp 0x5f904a
mov dword [ebp - 4], 6
jmp 0x5f90c4
call fcn.005d78db
mov dword [eax], 0x16
call fcn.006207d0
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x238]
cmp eax, 8
jb 0x5f916c
inc eax
lea ecx, [ebp - 0x24c]
push eax
push dword [ebp - 0x24c]
call fcn.005d31d0
jmp 0x5f916c
mov dword [ebp - 4], 4
jmp 0x5f8f18
mov edx, dword [ebp - 0x24c]
mov dword [ebp - 4], 2
cmp esi, 8
jb 0x5f916c
lea eax, [esi + 1]
push eax
push edx
lea ecx, [ebp - 0x24c]
call fcn.005d31d0
jmp 0x5f916c
mov edx, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x24c]
mov byte [0x6cee94], 1
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x5f916c
lea edx, [edx*2 + 2]
mov eax, ecx
mov dword [ebp - 4], 1
cmp edx, 0x1000
jb 0x5f9162
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5f9191
push edx
push ecx
call fcn.005d319e
add esp, 8
mov al, byte [0x6cee94]
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.005ce525
mov esp, ebp
pop ebp
ret
call fcn.006207e0
call fcn.006207e0
int3