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

Disassembly:
push 0xffffffffffffffff
push 0x4e6318
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
lea eax, [esp + 0x54]
push edi
push eax
mov dword [esp + 0x30], ecx
call fcn.0043f2e0
push 0xc
call fcn.00445f00
xor ebp, ebp
add esp, 8
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x45f881
mov word [eax], bp
push 0x2a
mov dword [esp + 0x54], ebp
call fcn.00445f00
add esp, 4
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x45f89a
mov word [eax], bp
mov ebx, 2
push ebx
call fcn.00445f00
add esp, 4
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x45f8b3
mov word [eax], bp
mov ecx, dword [esp + 0x58]
xor esi, esi
cmp word [ecx], 0x2a
mov byte [esp + 0x50], 2
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov edi, 1
jne 0x45f9c3
lea ecx, [ecx]
push 4
lea edx, [esp + 0x5c]
push edx
push str.vol
call fcn.0043f370
add esp, 0xc
test eax, eax
je 0x45f8ff
mov esi, edi
jmp 0x45f9b1
push 7
lea eax, [esp + 0x5c]
push eax
push str.setvol
call fcn.0043f370
add esp, 0xc
test eax, eax
je 0x45f91e
mov esi, ebx
jmp 0x45f9b1
push 5
lea ecx, [esp + 0x5c]
push ecx
push str.idle
call fcn.0043f370
add esp, 0xc
test eax, eax
je 0x45f93c
mov dword [esp + 0x28], edi
jmp 0x45f9b1
push 6
lea edx, [esp + 0x5c]
push edx
push str.idlec
call fcn.0043f370
add esp, 0xc
test eax, eax
je 0x45f95a
mov dword [esp + 0x28], ebx
jmp 0x45f9b1
push 6
lea eax, [esp + 0x5c]
push eax
push str.rsort
call fcn.0043f370
add esp, 0xc
test eax, eax
je 0x45f978
mov dword [esp + 0x40], edi
jmp 0x45f9b1
push 3
lea ecx, [esp + 0x5c]
push ecx
push 0x4f571c
call fcn.0043f370
add esp, 0xc
test eax, eax
je 0x45f99a
mov dword [esp + 0x44], 0x100
jmp 0x45f9b1
lea edx, [esp + 0x58]
push edx
call fcn.0041676d
lea eax, [esp + 0x5c]
push eax
call fcn.0043f2e0
add esp, 8
mov ecx, dword [esp + 0x58]
cmp word [ecx], 0x2a
je 0x45f8e0
mov dword [esp + 0x24], esi
push 0x3d
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x60]
push eax
call fcn.00449370
add esp, 0xc
push ebp
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.004152c8
mov eax, dword [esp + 0x58]
cmp word [eax], 0x3d
mov edi, eax
jne 0x45fa0c
lea edi, [eax + 2]
push ebp
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x64], edi
call fcn.00449370
add esp, 0xc
mov ebx, dword [esp + 0x18]
cmp word [ebx], bp
jne 0x45fa71
mov eax, dword [esp + 0x10]
cmp eax, ebp
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x45fa33
mov edx, dword [0x51927c]
mov ecx, eax
add ecx, 0xfffffff8
push ecx
push ebp
push edx
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x45fa49
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push ebp
push ecx
call esi
mov edx, dword [0x51927c]
add ebx, 0xfffffff8
push ebx
push ebp
push edx
call esi
pop edi
pop esi
pop ebp
mov eax, 0x80070057
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret 8
cmp esi, 2
jne 0x45fb08
push ebx
mov eax, 6
call fcn.00445f60
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x45fa92
mov word [esi + 4], bp
push edi
push esi
mov word [esi + 2], 0x3a
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
test eax, eax
je 0x45faa8
xor ebx, ebx
jmp 0x45fab0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esp + 0x10]
cmp eax, ebp
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x45facc
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push ebp
push ecx
call edi
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x45fae3
mov edx, eax
mov eax, dword [0x51927c]
add edx, 0xfffffff8
push edx
push ebp
push eax
call edi
mov ecx, dword [0x51927c]
add esi, 0xfffffff8
push esi
push ebp
push ecx
call edi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret 8
mov edx, dword [esp + 0x14]
push edx
call fcn.0042063d
call fcn.0044f0a0
push 0xa30
mov esi, eax
call fcn.00445f00
mov ebx, eax
add esp, 8
cmp ebx, ebp
mov dword [esp + 0x20], ebx
je 0x45fb33
mov word [ebx], bp
cmp dword [esp + 0x24], 1
mov byte [esp + 0x50], 3
lea ebp, [ebx + 0x412]
lea edi, [ebx + 0x61c]
jne 0x45fe4c
mov word [ebp], 0
mov word [ebx], 0
cmp word [esi], 0
je 0x45fb97
mov ax, word [esi + 2]
test ax, ax
je 0x45fb76
cmp ax, 0x3a
jne 0x45fb97
cmp word [esi + 4], 0
jne 0x45fb97
push 6
lea ecx, [esp + 0x18]
call fcn.004462b0
mov esi, dword [esp + 0x14]
mov word [esi + 2], 0x3a
mov word [esi + 4], 0x5c
mov word [esi + 6], 0
push 0x104
push ebp
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x48]
push edx
push 0x208
xor edi, edi
push ebx
push esi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp eax, edi
je 0x45fbd1
mov dword [esp + 0x44], edi
jmp 0x45fbdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
push 2
mov dword [esp + 0x5c], eax
call fcn.00445f00
add esp, 4
cmp eax, edi
mov dword [esp + 0x34], eax
je 0x45fbf8
mov word [eax], di
push 2
call fcn.00445f00
add esp, 4
cmp eax, edi
mov dword [esp + 0x28], eax
je 0x45fc0d
mov word [eax], di
push 2
call fcn.00445f00
add esp, 4
cmp eax, edi
mov dword [esp + 0x24], eax
je 0x45fc22
mov word [eax], di
mov esi, 2
push esi
call fcn.00445f00
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x1c], ebp
je 0x45fc40
mov word [ebp], 0
push esi
call fcn.00445f00
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x30], edi
je 0x45fc58
mov word [edi], 0
push 0x2c
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0x5c], 8
call fcn.00449370
mov eax, dword [esp + 0x64]
add esp, 0xc
cmp word [eax], 0
je 0x45fd15
mov ecx, eax
add ecx, esi
mov dword [esp + 0x58], ecx
push 0x2c
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.00449370
mov eax, dword [esp + 0x64]
add esp, 0xc
cmp word [eax], 0
je 0x45fd11
mov ecx, eax
add ecx, esi
mov dword [esp + 0x58], ecx
push 0x2c
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.00449370
mov eax, dword [esp + 0x64]
add esp, 0xc
cmp word [eax], 0
je 0x45fd11
mov ecx, eax
add ecx, esi
mov dword [esp + 0x58], ecx
push 0x2c
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.00449370
mov eax, dword [esp + 0x64]
add esp, 0xc
cmp word [eax], 0
je 0x45fd11
push 0x2c
lea ecx, [esp + 0x34]
mov edi, eax
push ecx
lea edx, [esp + 0x60]
add edi, esi
push edx
mov dword [esp + 0x64], edi
call fcn.00449370
mov edi, dword [esp + 0x3c]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
push eax
push ebx
mov ecx, esi
call fcn.00444550
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
push str._08lX
push ecx
push edx
push esi
call fcn.00448ae0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x4c]
push eax
push ecx
push esi
call fcn.00448b20
mov edx, dword [esp + 0x5c]
push str.0x_lX
push edi
push edx
push esi
call fcn.00448ae0
mov eax, dword [esp + 0x4c]
add esp, 0x2c
add eax, 0x412
push eax
push ebp
mov ecx, esi
call fcn.00444550
test edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x45fd8d
mov eax, dword [0x51927c]
add edi, 0xfffffff8
push edi
push 0
push eax
call esi
test ebp, ebp
je 0x45fda0
mov ecx, dword [0x51927c]
add ebp, 0xfffffff8
push ebp
push 0
push ecx
call esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x45fdb7
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x45fdcd
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push 0
push eax
call esi
test ebx, ebx
je 0x45fde0
mov ecx, dword [0x51927c]
add ebx, 0xfffffff8
push ebx
push 0
push ecx
call esi
mov edx, dword [esp + 0x20]
mov eax, dword [0x51927c]
add edx, 0xfffffff8
push edx
push 0
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45fe09
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push ecx
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45fe20
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
mov eax, dword [esp + 0x18]
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push ecx
call esi
mov eax, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret 8
xor ebp, ebp
cmp word [esi], bp
mov bl, 1
jne 0x45fe59
mov al, 0x7c
jmp 0x45fe81
push esi
push 0x4f5718
call fcn.00440490
add esp, 8
test al, al
jne 0x45fe7f
push esi
push 0x4ec53c
call fcn.00440490
add esp, 8
test al, al
je 0x45fead
xor bl, bl
mov al, 0x20
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x28]
or ecx, esi
push ecx
push edx
movsx dx, al
movsx ecx, bl
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.0044ef30
mov esi, dword [esp + 0x24]
add esp, 0x14
jmp 0x45fef9
mov ebx, 0x3a
cmp word [esi + 2], bx
jne 0x45fec4
mov eax, esi
mov word [esi + 4], bp
mov esi, dword [esp + 0x10]
jmp 0x45fef9
push edi
push 0x208
mov word [edi], bp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 5
lea ecx, [esp + 0x14]
call fcn.004462b0
mov esi, dword [esp + 0x10]
mov cx, word [edi]
mov word [esi], cx
mov word [esi + 2], bx
mov word [esi + 4], bp
mov eax, esi
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
push eax
push ebx
call fcn.00444550
mov eax, dword [esp + 0x20]
cmp eax, ebp
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x45ff24
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push ebp
push edx
call edi
cmp esi, ebp
je 0x45ff35
mov eax, dword [0x51927c]
add esi, 0xfffffff8
push esi
push ebp
push eax
call edi
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x45ff4b
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push ebp
push ecx
call edi
mov edx, dword [0x51927c]
add ebx, 0xfffffff8
push ebx
push ebp
push edx
call edi
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 8