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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a6692
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x10221008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x280], esi
mov dword [ebp - 0x288], esi
mov dword [ebp - 0x28c], esi
xor eax, eax
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov dword [ebp - 4], 1
mov eax, dword [edx + 0x10]
test eax, eax
jne 0x1000c30d
movups xmm0, xmmword [ebp - 0x234]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
movups xmmword [esi], xmm0
mov word [ebp - 0x234], ax
movq xmm0, qword [ebp - 0x224]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x284], 1
jmp 0x1000c9fe
lea ecx, [ebp - 0x234]
cmp ecx, edx
je 0x1000c32c
cmp dword [edx + 0x14], 8
jb 0x1000c31f
mov edx, dword [edx]
push eax
push edx
lea ecx, [ebp - 0x234]
call fcn.10004a70
mov edx, 0x101e1f18
lea ecx, [ebp - 0x234]
call fcn.1009f140
mov edx, 0x101e1f18
lea ecx, [ebp - 0x234]
call fcn.1009f1d0
lea ecx, [ebp - 0x234]
call fcn.1009f300
cmp dword [ebp - 0x220], 8
lea edx, [ebp - 0x234]
push ecx
cmovae edx, dword [ebp - 0x234]
mov ecx, 0x101e1f1c
call fcn.1009f830
add esp, 4
test al, al
je 0x1000c395
push 0x101dfe90
mov edx, 0x101e1f28
lea ecx, [ebp - 0x234]
call fcn.1009f010
add esp, 4
cmp dword [ebp - 0x220], 8
lea edx, [ebp - 0x234]
push ecx
cmovae edx, dword [ebp - 0x234]
mov ecx, str._systemroot
call fcn.1009f830
mov edi, dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 4
test al, al
je 0x1000c4f6
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
mov byte [ebp - 4], 2
push 0x20c
push eax
lea eax, [ebp - 0x21c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x1000c462
xor eax, eax
lea ecx, [ebp - 0x21c]
mov word [ebp - 0x12], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c440
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x24c]
call fcn.10004a70
push 0x101dfe90
mov edx, 0x101e1f50
lea ecx, [ebp - 0x234]
call fcn.1009f010
lea eax, [ebp - 0x234]
push eax
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x264]
call fcn.10097e70
add esp, 8
mov esi, eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x234]
cmp eax, esi
je 0x1000c4d3
mov ecx, eax
call fcn.10004a00
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x234], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x224], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x264]
call fcn.10004a00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24c]
call fcn.10004a00
jmp 0x1000c8e7
cmp dword [ebp - 0x220], 8
lea edx, [ebp - 0x234]
push ecx
cmovae edx, dword [ebp - 0x234]
mov ecx, str._systemroot_
call fcn.1009f830
add esp, 4
lea edx, [ebp - 0x234]
test al, al
je 0x1000c551
lea ecx, [ebp - 0x264]
call fcn.100a0a60
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x234]
push eax
call fcn.100047c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x264]
call fcn.10004a00
jmp 0x1000c8ed
cmp dword [ebp - 0x220], 8
push ecx
cmovae edx, dword [ebp - 0x234]
mov ecx, 0x101e1f8c
call fcn.1009f830
add esp, 4
test al, al
je 0x1000c675
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
mov byte [ebp - 4], 5
push 0x20c
push eax
lea eax, [ebp - 0x21c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x103
ja 0x1000c612
xor eax, eax
lea ecx, [ebp - 0x21c]
mov word [ebp - 0x12], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c5f0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x24c]
call fcn.10004a70
push 0x101dfe90
mov edx, str.system32
lea ecx, [ebp - 0x234]
call fcn.1009f010
lea eax, [ebp - 0x234]
push eax
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x264]
call fcn.10097e70
add esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x234]
push eax
call fcn.100047c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x264]
call fcn.10004a00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24c]
call fcn.10004a00
jmp 0x1000c8ed
cmp dword [ebp - 0x220], 8
lea edx, [ebp - 0x234]
push ecx
cmovae edx, dword [ebp - 0x234]
mov ecx, str.deviceharddiskvolume
call fcn.1009f830
add esp, 4
test al, al
je 0x1000c8ed
mov eax, dword [0x10227fec]
test al, 1
jne 0x1000c6f2
or eax, 1
mov dword [0x10227fec], eax
mov byte [ebp - 4], 7
xorps xmm0, xmm0
movlpd qword [0x10227fe4], xmm0
mov dword [0x10227fe4], 0
mov dword [0x10227fe8], 0
call fcn.1000ef10
mov dword [0x10227fe4], eax
mov byte [ebp - 4], 7
push 0x101c2680
call fcn.1018baba
add esp, 4
mov byte [ebp - 4], 1
cmp dword [0x10227fe8], 0
jne 0x1000c82b
mov esi, 0x61
lea edi, [esi - 0x48]
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
mov byte [ebp - 4], 0xa
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [ebp - 0x24c]
push 0x101e1fec
push eax
call fcn.1009f680
add esp, 0x18
lea ecx, [ebp - 0x218]
cmp dword [ebp - 0x238], 8
lea eax, [ebp - 0x24c]
cmovae eax, dword [ebp - 0x24c]
push 0x103
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1000c800
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c7a0
sub ecx, edx
sar ecx, 1
je 0x1000c800
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x264]
call fcn.10004830
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x264]
call fcn.1009f300
lea eax, [ebp - 0x24c]
mov ecx, 0x10227fe4
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.1000ed40
mov ecx, eax
call fcn.10005e80
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x264]
call fcn.10004a00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24c]
call fcn.10004a00
inc esi
sub edi, 1
jne 0x1000c710
cmp dword [0x10227fe8], edi
je 0x1000c8e7
mov edi, dword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov edx, dword [0x10227fe4]
mov esi, dword [edx]
cmp esi, edx
je 0x1000c8e7
nop dword [eax + eax]
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x1000c84b
mov eax, dword [eax]
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x234]
jb 0x1000c864
mov ecx, dword [ebp - 0x234]
test ecx, ecx
je 0x1000c879
test eax, eax
je 0x1000c879
push eax
push ecx
call edi
add esp, 8
test eax, eax
jne 0x1000c8c2
mov edx, dword [0x10227fe4]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x1000c8a4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1000c8a0
nop dword [eax + eax]
cmp esi, dword [eax + 8]
jne 0x1000c8a0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1000c890
mov esi, eax
jmp 0x1000c8bc
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1000c8bc
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x1000c8b0
cmp esi, edx
jne 0x1000c840
jmp 0x1000c8e7
cmp dword [esi + 0x3c], 8
lea eax, [esi + 0x28]
jb 0x1000c8cd
mov eax, dword [eax]
cmp dword [esi + 0x24], 8
lea edx, [esi + 0x10]
jb 0x1000c8d8
mov edx, dword [edx]
push eax
lea ecx, [ebp - 0x234]
call fcn.1009f010
add esp, 4
mov esi, dword [ebp - 0x280]
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x27c]
call fcn.100a2340
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x27c]
cmp dword [ebp - 0x268], 8
jb 0x1000c91f
mov eax, dword [ebp - 0x27c]
test eax, eax
je 0x1000c9a3
push 0x101e1ff4
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 8
test eax, eax
je 0x1000c9a3
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x24c]
call fcn.10005100
mov byte [ebp - 4], 0xd
mov edx, 0x101e1ff4
push 0x101e1ff8
lea ecx, [ebp - 0x24c]
call fcn.1009f010
cmp dword [ebp - 0x238], 8
lea eax, [ebp - 0x24c]
lea edx, [ebp - 0x27c]
cmovae eax, dword [ebp - 0x24c]
lea ecx, [ebp - 0x234]
cmp dword [ebp - 0x268], 8
push eax
cmovae edx, dword [ebp - 0x27c]
call fcn.1009f010
add esp, 8
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x24c]
call fcn.10004a00
movups xmm0, xmmword [ebp - 0x234]
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
mov word [ebp - 0x234], ax
movq xmm0, qword [ebp - 0x224]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x284], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x27c]
call fcn.10004a00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.10004a00
mov eax, esi
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.1018b6f4
mov esp, ebp
pop ebp
ret