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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d6bad
mov eax, dword fs:[0]
push eax
sub esp, 0x690
mov eax, dword [0x65a000]
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.005a7690
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x222]
push eax
call fcn.005a7690
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x42c], ax
lea eax, [ebp - 0x42a]
push eax
call fcn.005a7690
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x45ae3c
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.005a6a2f
add esp, 0x24
lea eax, [ebp - 0x1c]
push eax
push 0x624efc
push 0xffffffffffffffff
lea eax, [ebp - 0x634]
push 0x104
push eax
call fcn.005a4e29
add esp, 0x14
lea eax, [ebp - 0x634]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x45ae8c
cmp eax, 1
jne 0x45ae9c
xor eax, eax
push str.CInfoMgr::SetVolumeInfo_GetDriveType___Failed
mov word [ebp - 0x1c], ax
call fcn.00415fc0
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 0x45aecd
cmp word [ebp - 0x224], 0
jne 0x45aef2
push 0xffffffffffffffff
push str.VOL_UNKNOWN
lea eax, [ebp - 0x224]
push 0x104
push eax
call fcn.005a54f5
add esp, 0x10
push str.CInfoMgr::SetVolumeInfo_GetVolumeInformation___:_VOL_UNKNOWN
call fcn.00415fc0
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 0x45af00
sub ecx, esi
sar ecx, 1
test ecx, ecx
jle 0x45af53
mov ebx, 0x5f
jmp 0x45af20
cmp word [ebp + edx*2 - 0x224], 0x20
jne 0x45af33
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 0x45af40
sub ecx, esi
sar ecx, 1
cmp edx, ecx
jl 0x45af20
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 0x45af8f
xor ecx, ecx
jmp 0x45afaf
lea ecx, [ebp - 0x42c]
lea edx, [ecx + 2]
jmp 0x45afa0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45afa0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x668]
call fcn.004058d0
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.004058d0
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.00407490
cmp dword [ebp - 0x63c], 8
jb 0x45b02b
push dword [ebp - 0x650]
call fcn.0048166b
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 0x45b066
push dword [ebp - 0x668]
call fcn.0048166b
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.005a6a2f
add esp, 0x24
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x638]
mov dword [ebp - 0x638], 0
call fcn.00409390
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x638]
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x45b0be
push 0x80070057
call fcn.004091f0
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x45b0e1
push esi
lea ecx, [ebp - 0x638]
call fcn.00409140
mov eax, dword [ebp - 0x638]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.005a547d
mov eax, dword [ebp - 0x638]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x45b0b4
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 0x45b128
push dword [eax - 0xc]
lea ecx, [ebp - 0x638]
call fcn.00409070
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 0x45b14e
xor edx, edx
jmp 0x45b162
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x45b153
sub edx, esi
sar edx, 1
push edx
push eax
lea ecx, [ebp - 0x668]
call fcn.004058d0
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.004058d0
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x650]
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00407490
cmp dword [ebp - 0x63c], 8
jb 0x45b1d2
push dword [ebp - 0x650]
call fcn.0048166b
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 0x45b20a
push dword [ebp - 0x668]
call fcn.0048166b
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 0x45b234
xor ecx, ecx
jmp 0x45b24f
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45b240
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x680]
call fcn.004058d0
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.004058d0
lea eax, [ebp - 0x680]
push eax
lea eax, [ebp - 0x698]
push eax
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.00407490
cmp dword [ebp - 0x684], 8
jb 0x45b2c5
push dword [ebp - 0x698]
call fcn.0048166b
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 0x45b2f9
push dword [ebp - 0x680]
call fcn.0048166b
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 0x45b33d
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.005a4646
mov esp, ebp
pop ebp
ret 4