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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018c435
mov eax, dword fs:[0]
push eax
sub esp, 0x764
mov eax, dword [0x10207514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x754], ebx
mov dword [ebp - 0x770], esi
cmp dword [edx + 0x10], ebx
jne 0x100f7fe8
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
jmp 0x100f851c
push edx
lea ecx, [ebp - 0x6bc]
call fcn.10007960
mov edx, 0x101bdfc4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x6bc]
call fcn.100ffe20
mov edx, 0x101bdfe0
lea ecx, [ebp - 0x6bc]
call fcn.100ffe20
cmp dword [ebp - 0x6a8], 8
lea ecx, [ebp - 0x6bc]
push 0xa
cmovae ecx, dword [ebp - 0x6bc]
mov edx, 0x101bdfc8
call fcn.100ffb80
add esp, 4
test eax, eax
jne 0x100f8153
lea ecx, [ebp - 0x6d4]
call fcn.10007940
push 0x20c
lea eax, [ebp - 0x2a4]
mov byte [ebp - 4], 1
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2a4]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x100f8132
xor eax, eax
lea ecx, [ebp - 0x2a4]
mov word [ebp - 0x9a], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100f80a0
sub ecx, edx
lea eax, [ebp - 0x2a4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6d4]
call fcn.100094b0
cmp dword [ebp - 0x6c0], 8
lea eax, [ebp - 0x6d4]
cmovae eax, dword [ebp - 0x6d4]
push eax
lea eax, [ebp - 0x6bc]
push 0x101bdfc8
push eax
call fcn.100ffce0
lea eax, [ebp - 0x6bc]
add esp, 0xc
cmp esi, eax
je 0x100f8111
cmp dword [ebp - 0x6a8], 8
mov ecx, esi
push dword [ebp - 0x6ac]
cmovae eax, dword [ebp - 0x6bc]
push eax
call fcn.100094b0
mov dword [edi], 0
lea ecx, [ebp - 0x6d4]
mov dword [edi + 4], 0
mov byte [ebp - 4], 0
call fcn.100078b0
jmp 0x100f850a
mov dword [edi], 0xffffffff
lea ecx, [ebp - 0x6d4]
mov dword [edi + 4], 0xffffffff
mov byte [ebp - 4], 0
call fcn.100078b0
jmp 0x100f850a
push 0x400
lea eax, [ebp - 0x6a4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x6a4]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x100f84fd
cmp word [ebp - 0x6a4], 0
mov dword [ebp - 0x764], 0
je 0x100f84fd
lea esi, [ebp - 0x6a4]
mov dword [ebp - 0x768], 0
mov dword [ebp - 0x758], esi
nop dword [eax]
nop word [eax + eax]
push 0x101be004
lea ecx, [ebp - 0x704]
call fcn.100078f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6ec]
or ebx, 1
push esi
mov dword [ebp - 0x754], ebx
call fcn.100078f0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x75c]
mov ecx, dword [ebp - 0x6f4]
lea esi, [ebp - 0x76c]
mov eax, dword [ebp - 0x6dc]
or ebx, 2
cmp eax, ecx
mov dword [ebp - 0x76c], ecx
mov dword [ebp - 0x75c], eax
lea ecx, [ebp - 0x6ec]
cmovae esi, edx
mov dword [ebp - 0x754], ebx
cmp dword [ebp - 0x6f0], 8
lea edx, [ebp - 0x704]
mov dword [ebp - 0x760], ebx
cmovae edx, dword [ebp - 0x704]
cmp dword [ebp - 0x6d8], 8
push dword [esi]
cmovae ecx, dword [ebp - 0x6ec]
call fcn.100ffb80
add esp, 4
test eax, eax
je 0x100f830f
push 0x101bdffc
lea ecx, [ebp - 0x71c]
call fcn.100078f0
push dword [ebp - 0x758]
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x74c]
or ebx, 4
mov dword [ebp - 0x754], ebx
call fcn.100078f0
mov dword [ebp - 4], 5
lea edx, [ebp - 0x75c]
mov ebx, dword [ebp - 0x760]
lea esi, [ebp - 0x760]
mov ecx, dword [ebp - 0x70c]
or ebx, 0xc
mov eax, dword [ebp - 0x73c]
cmp eax, ecx
mov dword [ebp - 0x760], ecx
lea ecx, [ebp - 0x74c]
cmovae esi, edx
mov dword [ebp - 0x75c], eax
cmp dword [ebp - 0x708], 8
lea edx, [ebp - 0x71c]
mov dword [ebp - 0x754], ebx
cmovae edx, dword [ebp - 0x71c]
cmp dword [ebp - 0x738], 8
push dword [esi]
cmovae ecx, dword [ebp - 0x74c]
call fcn.100ffb80
add esp, 4
mov byte [ebp - 0x74d], 0
test eax, eax
jne 0x100f8316
mov byte [ebp - 0x74d], 1
mov dword [ebp - 4], 4
test bl, 8
je 0x100f8336
and ebx, 0xfffffff7
lea ecx, [ebp - 0x74c]
mov dword [ebp - 0x754], ebx
call fcn.100078b0
mov dword [ebp - 4], 3
test bl, 4
je 0x100f8356
and ebx, 0xfffffffb
lea ecx, [ebp - 0x71c]
mov dword [ebp - 0x754], ebx
call fcn.100078b0
mov esi, ebx
mov dword [ebp - 4], 2
and ebx, 0xfffffffd
lea ecx, [ebp - 0x6ec]
mov dword [ebp - 0x754], ebx
call fcn.100078b0
mov ebx, esi
mov dword [ebp - 4], 0
and ebx, 0xfffffffc
lea ecx, [ebp - 0x704]
mov dword [ebp - 0x754], ebx
call fcn.100078b0
cmp byte [ebp - 0x74d], 0
jne 0x100f84ce
push 0x80
lea eax, [ebp - 0x98]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x758]
add esp, 0xc
movzx eax, word [eax]
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x768]
push 0x40
movzx eax, word [ebp + eax - 0x6a2]
mov word [ebp - 0x16], ax
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x100f84ce
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x6d4]
call fcn.100078f0
mov edx, 0x101bdfc4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x6d4]
call fcn.100ffe20
mov edx, 0x101bdfe0
lea ecx, [ebp - 0x6d4]
call fcn.100ffe20
cmp dword [ebp - 0x6c0], 8
lea edx, [ebp - 0x6d4]
mov esi, dword [ebp - 0x6c4]
lea ecx, [ebp - 0x6bc]
cmovae edx, dword [ebp - 0x6d4]
cmp dword [ebp - 0x6a8], 8
push esi
cmovae ecx, dword [ebp - 0x6bc]
call fcn.100ffb80
add esp, 4
test eax, eax
jne 0x100f84bf
mov eax, dword [ebp - 0x6ac]
lea edx, [ebp - 0x6bc]
sub eax, esi
lea ecx, [ebp - 0x734]
push eax
call fcn.101000b0
add esp, 4
mov byte [ebp - 4], 7
cmp dword [ebp - 0x724], 0
je 0x100f853a
cmp dword [ebp - 0x720], 8
lea eax, [ebp - 0x734]
cmovae eax, dword [ebp - 0x734]
cmp word [eax], 0x5c
je 0x100f853a
lea ecx, [ebp - 0x734]
mov byte [ebp - 4], 6
call fcn.100078b0
lea ecx, [ebp - 0x6d4]
mov byte [ebp - 4], 0
call fcn.100078b0
mov eax, dword [ebp - 0x764]
lea esi, [ebp - 0x6a4]
add eax, 4
mov dword [ebp - 0x764], eax
add eax, eax
add esi, eax
mov dword [ebp - 0x768], eax
mov dword [ebp - 0x758], esi
cmp word [esi], 0
jne 0x100f81c0
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
lea ecx, [ebp - 0x6bc]
mov dword [ebp - 4], 0xffffffff
call fcn.100078b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10161f63
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x6bc]
lea ecx, [ebp - 0x6ec]
call fcn.10100140
add esp, 8
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x704]
call fcn.100078f0
lea eax, [ebp - 0x6ec]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x704]
push eax
lea eax, [ebp - 0x71c]
push eax
call fcn.100fdee0
add esp, 0xc
mov ecx, dword [ebp - 0x770]
push eax
mov byte [ebp - 4], 0xa
call fcn.100127c0
lea ecx, [ebp - 0x71c]
mov byte [ebp - 4], 9
call fcn.100078b0
lea ecx, [ebp - 0x704]
mov byte [ebp - 4], 8
call fcn.100078b0
mov dword [edi], 0
lea ecx, [ebp - 0x6ec]
mov dword [edi + 4], 0
mov byte [ebp - 4], 7
call fcn.100078b0
lea ecx, [ebp - 0x734]
mov byte [ebp - 4], 6
call fcn.100078b0
lea ecx, [ebp - 0x6d4]
mov byte [ebp - 4], 0
call fcn.100078b0
jmp 0x100f850a