Function at 0x10008cb0
Capabilities:
Get common file path
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069281
mov eax, dword fs:[0]
push eax
sub esp, 0x4d0
mov eax, dword [0x100891f4]
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
xor eax, eax
mov dword [ebp - 0x4c8], 0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 7
mov word [ebp - 0x430], ax
mov dword [ebp - 4], eax
call fcn.100031c0
mov ecx, eax
test ecx, ecx
je 0x10009330
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4b8], esi
push 0x200
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.10043b10
add esp, 0xc
lea eax, [ebp - 0x418]
xorps xmm0, xmm0
movlpd qword [ebp - 0x4d4], xmm0
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10043b10
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [ebp - 0x4d0]
lea edi, [ebp - 0x418]
mov dword [ebp - 0x4c4], eax
mov eax, dword [ebp - 0x4d4]
mov dword [ebp - 0x4cc], eax
mov dword [ebp - 0x4bc], edi
nop dword [eax + eax]
movzx eax, word [edi]
test ax, ax
jne 0x1000907b
mov edi, dword [esi - 0xc]
test edi, edi
je 0x100090dc
lea ebx, [edi - 1]
test ebx, ebx
js 0x1000933a
cmp ebx, edi
jge 0x1000933a
cmp dword [esi - 4], 1
jle 0x10008df2
push edi
lea ecx, [ebp - 0x4b8]
call fcn.10002d60
mov esi, dword [ebp - 0x4b8]
xor eax, eax
mov word [esi + ebx*2], ax
test edi, edi
js 0x1000933a
cmp edi, dword [esi - 8]
jg 0x1000933a
mov dword [esi - 0xc], edi
xorps xmm0, xmm0
mov word [esi + edi*2], ax
movlpd qword [ebp - 0x4dc], xmm0
movlpd qword [ebp - 0x4d4], xmm0
cmp dword [esi - 0xc], 2
jg 0x10008e40
add esi, 0xfffffff0
push esi
call fcn.10007580
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0x4c0], edi
jmp 0x10008ea4
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x10008e50
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x10008e64
call fcn.100031c0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x10009330
mov edx, dword [eax]
mov ecx, eax
push 2
push 2
call dword [edx]
test eax, eax
je 0x10009344
cmp dword [eax + 8], 2
lea edi, [eax + 0x10]
mov dword [ebp - 0x4c0], edi
jl 0x1000933a
push 4
push esi
xor eax, eax
mov dword [edi - 0xc], 2
push 4
push edi
mov word [edi + 4], ax
call fcn.10004190
add esp, 0x10
mov ebx, dword [ebp - 0x4c8]
lea eax, [ebp - 0x4c0]
or ebx, 1
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x4b8]
mov dword [ebp - 0x4c8], ebx
call fcn.10008ae0
mov byte [ebp - 4], 1
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10008ee5
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x4b8]
push 0x1006e200
push esi
call fcn.10048418
add esp, 8
test eax, eax
je 0x10008ffe
push 0x1006e208
push esi
call fcn.10048418
add esp, 8
test eax, eax
je 0x10008ffe
cmp dword [esi - 0xc], 0
jl 0x1000933a
mov ax, word [ebp - 0x218]
cmp ax, word [esi]
je 0x10008ffe
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x10008f62
mov edi, dword [ebp - 0x4bc]
lea ecx, [ebp - 0x4b8]
add edi, 2
mov dword [ebp - 0x4bc], edi
call fcn.10008c50
mov esi, dword [ebp - 0x4b8]
jmp 0x10008db0
push 0
lea eax, [ebp - 0x4dc]
push eax
lea eax, [ebp - 0x4d4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x10008fd9
mov eax, dword [ebp - 0x4c4]
cmp eax, dword [ebp - 0x4d0]
ja 0x10008fd9
jb 0x10008f9b
mov eax, dword [ebp - 0x4cc]
cmp eax, dword [ebp - 0x4d4]
jae 0x10008fd9
cmp dword [esi - 4], 1
jle 0x10008fb5
push dword [esi - 0xc]
lea ecx, [ebp - 0x4b8]
call fcn.10002d60
mov esi, dword [ebp - 0x4b8]
push esi
lea ecx, [ebp - 0x430]
call fcn.10008c20
mov eax, dword [ebp - 0x4d4]
mov dword [ebp - 0x4cc], eax
mov eax, dword [ebp - 0x4d0]
mov dword [ebp - 0x4c4], eax
lea ecx, [ebp - 0x4b8]
call fcn.10008c50
mov edi, dword [ebp - 0x4bc]
mov esi, dword [ebp - 0x4b8]
add edi, 2
mov dword [ebp - 0x4c8], ebx
jmp 0x10008da2
mov edi, dword [ebp - 0x4bc]
lea edx, [esi - 0x10]
mov eax, dword [edx]
add edi, 2
cmp dword [edx + 4], 0
mov dword [ebp - 0x4bc], edi
mov dword [ebp - 0x4c0], eax
je 0x10009070
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x10009048
cmp dword [esi - 8], 0
jl 0x1000933a
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
mov dword [ebp - 0x4c8], ebx
jmp 0x10008db0
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000905c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x4c0]
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4b8], esi
mov dword [ebp - 0x4c8], ebx
jmp 0x10008db0
mov ebx, dword [esi - 0xc]
mov dword [ebp - 0x4c0], eax
lea edi, [ebx + 1]
test edi, edi
js 0x1000933a
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or ecx, eax
jge 0x100090b2
push edi
lea ecx, [ebp - 0x4b8]
call fcn.10003660
mov esi, dword [ebp - 0x4b8]
mov eax, dword [ebp - 0x4c0]
mov word [esi + ebx*2], ax
cmp edi, dword [esi - 8]
jg 0x1000933a
mov dword [esi - 0xc], edi
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [ebp - 0x4bc]
add edi, 2
jmp 0x10008da2
push 1
push 0x1006c52c
lea ecx, [ebp - 0x430]
call fcn.10003e80
mov ecx, dword [ebp - 0x420]
cmp ecx, 2
jbe 0x10009117
cmp dword [ebp - 0x41c], 8
lea eax, [ebp - 0x430]
cmovae eax, dword [ebp - 0x430]
cmp word [eax + 2], 0x3a
jne 0x10009119
cmp ecx, 2
jae 0x10009153
push 0
push 0x1006e1fc
lea ecx, [ebp - 0x430]
call fcn.10004000
push 2
lea eax, [ebp - 0x218]
push eax
push 0
lea ecx, [ebp - 0x430]
call fcn.10009370
push 1
push 0x1006c52c
lea ecx, [ebp - 0x430]
call fcn.10003e80
cmp dword [ebp - 0x41c], 8
lea ebx, [ebp - 0x430]
lea eax, [ebp - 0x4b0]
cmovae ebx, dword [ebp - 0x430]
mov dword [ebp - 0x4cc], ebx
mov dword [ebp - 0x4b4], eax
test ebx, ebx
jne 0x10009188
mov dword [ebp - 0x4b4], ebx
jmp 0x10009270
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10009190
sub ecx, edx
sar ecx, 1
push 0x80
lea eax, [ecx + 1]
lea edi, [eax*4]
mov dword [ebp - 0x4c4], eax
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x4b4]
push edi
push eax
call fcn.10005030
add esp, 0x10
push 0
push 0
push edi
push dword [ebp - 0x4b4]
mov edi, dword [ebp - 0x4c4]
push edi
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x10009262
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10009262
mov ebx, dword [ebp - 0x4cc]
push 0
push 0
push 0
push 0
push edi
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea eax, [ebp - 0x4b0]
push 0x80
push eax
lea eax, [ebp - 0x4b4]
push edi
push eax
call fcn.10005030
add esp, 0x10
push 0
push 0
push edi
push dword [ebp - 0x4b4]
push dword [ebp - 0x4c4]
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x10009349
mov ebx, dword [ebp - 0x4b4]
mov ecx, 0x1008bd78
mov edi, ebx
mov edx, 0x104
sub edi, ecx
nop
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10009299
mov al, byte [edi + ecx]
test al, al
je 0x10009299
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10009280
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
lea eax, [ebp - 0x4b0]
cmp ebx, eax
je 0x100092b7
push ebx
call fcn.10046fa0
add esp, 4
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100092d3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x41c]
cmp edx, 8
jb 0x1000930f
mov ecx, dword [ebp - 0x430]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10009305
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009368
push edx
push ecx
call fcn.1002615b
add esp, 8
mov eax, 0x1008bd78
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.100264cc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10002810
push 0x80070057
call fcn.10002810
call fcn.100038d0
push 0x80
lea eax, [ebp - 0x4b0]
push eax
push dword [ebp - 0x4b4]
call fcn.10005130
add esp, 0xc
call fcn.10005330
call fcn.10046ec3
int3