Function at 0x465ba0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5eabb8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x677000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
push 6
xor esi, esi
push str.SYSTEM
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], esi
mov word [ebp - 0x58], ax
call fcn.00406400
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
mov ecx, dword [0x74e2f4]
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ecx + 0xc]
call fcn.00409910
mov edi, eax
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x465c7b
cmp dword [ebp - 0x14], 8
jb 0x465c5e
push dword [ebp - 0x28]
call fcn.0049500b
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00405f10
cmp dword [ebp - 0x5c], 8
jb 0x465c8c
push dword [ebp - 0x70]
call fcn.0049500b
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
jb 0x465cb4
push dword [ebp - 0x58]
call fcn.0049500b
add esp, 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x465d71
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, edi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x465d77
push 0x5c
push ecx
lea ecx, [ebp - 0x28]
call fcn.00414110
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
test esi, esi
je 0x465d71
cmp esi, 1
je 0x465d71
cmp esi, 2
je 0x465d71
cmp esi, 4
je 0x465d71
cmp esi, 5
je 0x465d71
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x465d71
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
shrd esi, eax, 0x14
push str.DISKSPACE
lea ecx, [ebp - 0x70]
shr eax, 0x14
call fcn.00405d00
mov byte [ebp - 4], 2
mov ecx, dword [0x74e2f4]
push esi
lea eax, [ebp - 0x70]
push eax
lea ecx, [ecx + 0xc]
call fcn.0040a0f0
lea ecx, [ebp - 0x70]
call fcn.00405e10
jmp 0x465e3f
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
push esi
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, edi
push eax
push str.CFuncMgr::DoDiskSpace_GetDriveType___Drive:_s___Type:_d
push 0xffffffffffffffff
push 0x1000
push 0x74e818
call fcn.005b8769
add esp, 0x18
push 0x74e818
call fcn.00418730
push 1
xor eax, eax
push 0x6240a4
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.00406400
mov byte [ebp - 4], 3
push 9
xor eax, eax
push str.DISKSPACE
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00406400
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
mov ecx, dword [0x74e2f4]
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ecx + 0xc]
call fcn.00409f70
cmp dword [ebp - 0x44], 8
jb 0x465e1a
push dword [ebp - 0x58]
call fcn.0049500b
add esp, 4
xor eax, eax
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jb 0x465e3f
push dword [ebp - 0x70]
call fcn.0049500b
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x465e50
push dword [ebp - 0x28]
call fcn.0049500b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret