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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ba91
mov eax, dword fs:[0]
push eax
sub esp, 0x4d0
mov eax, dword [0x10051114]
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.10002f00
mov ecx, eax
test ecx, ecx
je 0x10006b80
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.100214a0
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.100214a0
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 0x100068cb
mov edi, dword [esi - 0xc]
test edi, edi
je 0x1000692c
lea ebx, [edi - 1]
test ebx, ebx
js 0x10006b8a
cmp ebx, edi
jge 0x10006b8a
cmp dword [esi - 4], 1
jle 0x10006642
push edi
lea ecx, [ebp - 0x4b8]
call fcn.10002be0
mov esi, dword [ebp - 0x4b8]
xor eax, eax
mov word [esi + ebx*2], ax
test edi, edi
js 0x10006b8a
cmp edi, dword [esi - 8]
jg 0x10006b8a
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 0x10006690
add esi, 0xfffffff0
push esi
call fcn.10005bb0
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0x4c0], edi
jmp 0x100066f4
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x100066a0
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x100066b4
call fcn.10002f00
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x10006b80
mov edx, dword [eax]
mov ecx, eax
push 2
push 2
call dword [edx]
test eax, eax
je 0x10006b94
cmp dword [eax + 8], 2
lea edi, [eax + 0x10]
mov dword [ebp - 0x4c0], edi
jl 0x10006b8a
push 4
push esi
xor eax, eax
mov dword [edi - 0xc], 2
push 4
push edi
mov word [edi + 4], ax
call fcn.10003ae0
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.10006330
mov byte [ebp - 4], 1
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10006735
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x4b8]
push 0x1003ee44
push esi
call fcn.1002d28e
add esp, 8
test eax, eax
je 0x1000684e
push 0x1003ee4c
push esi
call fcn.1002d28e
add esp, 8
test eax, eax
je 0x1000684e
cmp dword [esi - 0xc], 0
jl 0x10006b8a
mov ax, word [ebp - 0x218]
cmp ax, word [esi]
je 0x1000684e
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x100067b2
mov edi, dword [ebp - 0x4bc]
lea ecx, [ebp - 0x4b8]
add edi, 2
mov dword [ebp - 0x4bc], edi
call fcn.100064a0
mov esi, dword [ebp - 0x4b8]
jmp 0x10006600
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 0x10006829
mov eax, dword [ebp - 0x4c4]
cmp eax, dword [ebp - 0x4d0]
ja 0x10006829
jb 0x100067eb
mov eax, dword [ebp - 0x4cc]
cmp eax, dword [ebp - 0x4d4]
jae 0x10006829
cmp dword [esi - 4], 1
jle 0x10006805
push dword [esi - 0xc]
lea ecx, [ebp - 0x4b8]
call fcn.10002be0
mov esi, dword [ebp - 0x4b8]
push esi
lea ecx, [ebp - 0x430]
call fcn.10006470
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.100064a0
mov edi, dword [ebp - 0x4bc]
mov esi, dword [ebp - 0x4b8]
add edi, 2
mov dword [ebp - 0x4c8], ebx
jmp 0x100065f2
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 0x100068c0
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x10006898
cmp dword [esi - 8], 0
jl 0x10006b8a
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
mov dword [ebp - 0x4c8], ebx
jmp 0x10006600
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100068ac
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 0x10006600
mov ebx, dword [esi - 0xc]
mov dword [ebp - 0x4c0], eax
lea edi, [ebx + 1]
test edi, edi
js 0x10006b8a
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or ecx, eax
jge 0x10006902
push edi
lea ecx, [ebp - 0x4b8]
call fcn.100031f0
mov esi, dword [ebp - 0x4b8]
mov eax, dword [ebp - 0x4c0]
mov word [esi + ebx*2], ax
cmp edi, dword [esi - 8]
jg 0x10006b8a
mov dword [esi - 0xc], edi
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [ebp - 0x4bc]
add edi, 2
jmp 0x100065f2
push 1
push 0x1003d330
lea ecx, [ebp - 0x430]
call fcn.10003840
mov ecx, dword [ebp - 0x420]
cmp ecx, 2
jbe 0x10006967
cmp dword [ebp - 0x41c], 8
lea eax, [ebp - 0x430]
cmovae eax, dword [ebp - 0x430]
cmp word [eax + 2], 0x3a
jne 0x10006969
cmp ecx, 2
jae 0x100069a3
push 0
push 0x1003ee40
lea ecx, [ebp - 0x430]
call fcn.100039c0
push 2
lea eax, [ebp - 0x218]
push eax
push 0
lea ecx, [ebp - 0x430]
call fcn.10006bc0
push 1
push 0x1003d330
lea ecx, [ebp - 0x430]
call fcn.10003840
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 0x100069d8
mov dword [ebp - 0x4b4], ebx
jmp 0x10006ac0
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100069e0
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.10004880
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 0x10006ab2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10006ab2
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.10004880
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 0x10006b99
mov ebx, dword [ebp - 0x4b4]
mov ecx, 0x100522f8
mov edi, ebx
mov edx, 0x104
sub edi, ecx
nop
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10006ae9
mov al, byte [edi + ecx]
test al, al
je 0x10006ae9
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10006ad0
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
lea eax, [ebp - 0x4b0]
cmp ebx, eax
je 0x10006b07
push ebx
call fcn.100231d9
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 0x10006b23
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x41c]
cmp edx, 8
jb 0x10006b5f
mov ecx, dword [ebp - 0x430]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10006b55
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006bb8
push edx
push ecx
call fcn.10017540
add esp, 8
mov eax, 0x100522f8
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.100178b1
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10002690
push 0x80070057
call fcn.10002690
call fcn.10003460
push 0x80
lea eax, [ebp - 0x4b0]
push eax
push dword [ebp - 0x4b4]
call fcn.10004980
add esp, 0xc
call fcn.10004b80
call fcn.100230fc
int3