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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ecebd
mov eax, dword fs:[0]
push eax
sub esp, 0x690
mov eax, dword [0x677000]
xor eax, ebp
mov dword [ebp - 0x14], 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 eax, eax
push 0x206
push eax
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x634], ax
lea eax, [ebp - 0x632]
push eax
call fcn.005bb1c0
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x222]
push eax
call fcn.005bb1c0
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x42c], ax
lea eax, [ebp - 0x42a]
push eax
call fcn.005bb1c0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x46a3cc
mov esi, dword [esi]
push 0
push 0
push 0
push 0
push 0
push 0
push 3
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.005ba731
add esp, 0x24
lea eax, [ebp - 0x1c]
push eax
push 0x63e2dc
push 0xffffffffffffffff
lea eax, [ebp - 0x634]
push 0x104
push eax
call fcn.005b8769
add esp, 0x14
lea eax, [ebp - 0x634]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x46a41c
cmp eax, 1
jne 0x46a42c
xor eax, eax
push str.CInfoMgr::SetVolumeInfo_GetDriveType___Failed
mov word [ebp - 0x1c], ax
call fcn.00418730
push 0
push 0
push 0
push 0
push 0
push 0x104
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x634]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x46a45d
cmp word [ebp - 0x224], 0
jne 0x46a482
push 0xffffffffffffffff
push str.VOL_UNKNOWN
lea eax, [ebp - 0x224]
push 0x104
push eax
call fcn.005b9367
add esp, 0x10
push str.CInfoMgr::SetVolumeInfo_GetVolumeInformation___:_VOL_UNKNOWN
call fcn.00418730
lea ecx, [ebp - 0x224]
xor edx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46a490
sub ecx, esi
sar ecx, 1
test ecx, ecx
jle 0x46a4e3
mov ebx, 0x5f
jmp 0x46a4b0
cmp word [ebp + edx*2 - 0x224], 0x20
jne 0x46a4c3
mov word [ebp + edx*2 - 0x224], bx
lea ecx, [ebp - 0x224]
inc edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46a4d0
sub ecx, esi
sar ecx, 1
cmp edx, ecx
jl 0x46a4b0
push 0x104
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov dword [ebp - 0x654], 7
mov dword [ebp - 0x658], 0
mov word [ebp - 0x668], ax
cmp word [ebp - 0x42c], ax
jne 0x46a51f
xor ecx, ecx
jmp 0x46a53f
lea ecx, [ebp - 0x42c]
lea edx, [ecx + 2]
jmp 0x46a530
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46a530
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x668]
call fcn.00406400
mov dword [ebp - 4], 0
push 6
xor eax, eax
push str.SYSTEM
lea ecx, [ebp - 0x650]
mov dword [ebp - 0x63c], 7
mov dword [ebp - 0x640], 0
mov word [ebp - 0x650], ax
call fcn.00406400
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x650]
add edi, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00409f70
cmp dword [ebp - 0x63c], 8
jb 0x46a5bb
push dword [ebp - 0x650]
call fcn.0049500b
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x654], 8
mov dword [ebp - 0x63c], 7
mov dword [ebp - 0x640], 0
mov word [ebp - 0x650], ax
jb 0x46a5f6
push dword [ebp - 0x668]
call fcn.0049500b
add esp, 4
push 0
push 0
push 0
push 0
push 0
push 0
push 3
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.005ba731
add esp, 0x24
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x638]
mov dword [ebp - 0x638], 0
call fcn.0040ba80
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x638]
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x46a64e
push 0x80070057
call fcn.00407a60
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x46a671
push esi
lea ecx, [ebp - 0x638]
call fcn.004079b0
mov eax, dword [ebp - 0x638]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.005b92ef
mov eax, dword [ebp - 0x638]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x46a644
mov dword [eax - 0xc], esi
mov eax, dword [ebp - 0x638]
xor ecx, ecx
mov word [eax + esi*2], cx
mov eax, dword [ebp - 0x638]
cmp dword [eax - 4], 1
jle 0x46a6b8
push dword [eax - 0xc]
lea ecx, [ebp - 0x638]
call fcn.004078e0
mov eax, dword [ebp - 0x638]
xor ecx, ecx
mov dword [ebp - 0x654], 7
mov dword [ebp - 0x658], 0
mov word [ebp - 0x668], cx
cmp word [eax], cx
jne 0x46a6de
xor edx, edx
jmp 0x46a6f2
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x46a6e3
sub edx, esi
sar edx, 1
push edx
push eax
lea ecx, [ebp - 0x668]
call fcn.00406400
mov byte [ebp - 4], 3
push 0xb
xor eax, eax
push str.DRIVELETTER
lea ecx, [ebp - 0x650]
mov dword [ebp - 0x63c], 7
mov dword [ebp - 0x640], 0
mov word [ebp - 0x650], ax
call fcn.00406400
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x650]
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00409f70
cmp dword [ebp - 0x63c], 8
jb 0x46a762
push dword [ebp - 0x650]
call fcn.0049500b
add esp, 4
xor eax, eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x654], 8
mov dword [ebp - 0x63c], 7
mov dword [ebp - 0x640], 0
mov word [ebp - 0x650], ax
jb 0x46a79a
push dword [ebp - 0x668]
call fcn.0049500b
add esp, 4
xor eax, eax
mov dword [ebp - 0x66c], 7
mov dword [ebp - 0x670], 0
mov word [ebp - 0x680], ax
cmp word [ebp - 0x224], ax
jne 0x46a7c4
xor ecx, ecx
jmp 0x46a7df
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46a7d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x680]
call fcn.00406400
mov byte [ebp - 4], 5
push 0xb
xor eax, eax
push str.VOLUMELABEL
lea ecx, [ebp - 0x698]
mov dword [ebp - 0x684], 7
mov dword [ebp - 0x688], 0
mov word [ebp - 0x698], ax
call fcn.00406400
lea eax, [ebp - 0x680]
push eax
lea eax, [ebp - 0x698]
push eax
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.00409f70
cmp dword [ebp - 0x684], 8
jb 0x46a855
push dword [ebp - 0x698]
call fcn.0049500b
add esp, 4
xor eax, eax
cmp dword [ebp - 0x66c], 8
mov dword [ebp - 0x684], 7
mov dword [ebp - 0x688], 0
mov word [ebp - 0x698], ax
jb 0x46a889
push dword [ebp - 0x680]
call fcn.0049500b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x638]
xor eax, eax
add edx, 0xfffffff0
mov word [ebp - 0x680], ax
mov dword [ebp - 0x66c], 7
mov dword [ebp - 0x670], 0
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46a8cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret 4