Function at 0x1005f110
Capabilities:
Get common file path
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x1009d4a7
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
push 0x208
xor edi, edi
lea eax, [esp + 0x98]
push edi
xor esi, esi
push eax
mov dword [esp + 0x24], esi
call fcn.10079c60
add esp, 0xc
push 0x104
lea ecx, [esp + 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1005f3a3
xor edx, edx
mov ebx, 7
lea eax, [esp + 0x94]
mov word [esp + 0x60], dx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1005f1a2
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x98]
lea esi, [esp + 0x60]
call fcn.10007450
mov dword [esp + 0x2a8], edi
xor eax, eax
push 3
mov word [esp + 0x80], ax
push edi
mov eax, esi
lea ecx, [esp + 0x80]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x94], edi
call fcn.100073a0
mov byte [esp + 0x2a8], 2
mov ebp, 8
cmp dword [esp + 0x74], ebp
jb 0x1005f212
mov ecx, dword [esp + 0x60]
push ecx
call fcn.100755e2
add esp, 4
mov eax, dword [esp + 0x7c]
xor edx, edx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], edi
mov word [esp + 0x60], dx
cmp dword [esp + 0x90], ebp
jae 0x1005f232
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1005f367
xor eax, eax
mov dword [esp + 0x74], ebx
mov word [esp + 0x60], ax
mov ebx, 4
push ebx
mov eax, str.._
lea esi, [esp + 0x60]
mov dword [esp + 0x74], edi
call fcn.10007450
mov byte [esp + 0x2a8], 3
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x7c]
push edx
lea ecx, [ebx - 2]
xor edx, edx
call fcn.10006760
mov byte [esp + 0x2a8], bl
push eax
mov eax, esi
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.100522c0
add esp, 0xc
mov byte [esp + 0x2a8], 5
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.100073a0
mov byte [esp + 0x2a8], bl
cmp dword [esp + 0x58], ebp
jb 0x1005f2c5
mov edx, dword [esp + 0x44]
push edx
call fcn.100755e2
add esp, 4
mov esi, 7
xor eax, eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
mov word [esp + 0x44], ax
mov byte [esp + 0x2a8], 3
cmp dword [esp + 0x3c], ebp
jb 0x1005f2f4
mov ecx, dword [esp + 0x28]
push ecx
call fcn.100755e2
add esp, 4
mov ecx, dword [esp + 0x60]
xor edx, edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edi
mov word [esp + 0x28], dx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
cmp dword [esp + 0x74], ebp
jae 0x1005f319
lea ecx, [esp + 0x60]
lea ebx, [esp + 0x1c]
call fcn.10061080
test eax, eax
je 0x1005f33b
mov eax, dword [esp + 0x1c]
and eax, 0xfff
or eax, edi
je 0x1005f33b
mov dword [esp + 0x18], 1
mov byte [esp + 0x2a8], 2
cmp dword [esp + 0x74], ebp
jb 0x1005f356
mov eax, dword [esp + 0x60]
push eax
call fcn.100755e2
add esp, 4
xor ecx, ecx
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], edi
mov word [esp + 0x60], cx
mov ebx, esi
mov dword [esp + 0x2a8], 0xffffffff
cmp dword [esp + 0x90], ebp
jb 0x1005f388
mov edx, dword [esp + 0x7c]
push edx
call fcn.100755e2
add esp, 4
xor eax, eax
mov word [esp + 0x7c], ax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], edi
jmp 0x1005f3a5
mov eax, esi
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.100755ed
add esp, 0x298
ret