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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d4b08
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x65a000]
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.004058d0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
mov ecx, dword [0x6fb010]
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ecx + 0xc]
call fcn.00406e30
mov edi, eax
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x45732b
cmp dword [ebp - 0x14], 8
jb 0x45730e
push dword [ebp - 0x28]
call fcn.0048166b
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.004053e0
cmp dword [ebp - 0x5c], 8
jb 0x45733c
push dword [ebp - 0x70]
call fcn.0048166b
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 0x457364
push dword [ebp - 0x58]
call fcn.0048166b
add esp, 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x457421
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 0x457427
push 0x5c
push ecx
lea ecx, [ebp - 0x28]
call fcn.004119a0
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 0x457421
cmp esi, 1
je 0x457421
cmp esi, 2
je 0x457421
cmp esi, 4
je 0x457421
cmp esi, 5
je 0x457421
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 0x457421
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.004051f0
mov byte [ebp - 4], 2
mov ecx, dword [0x6fb010]
push esi
lea eax, [ebp - 0x70]
push eax
lea ecx, [ecx + 0xc]
call fcn.00407610
lea ecx, [ebp - 0x70]
call fcn.00405300
jmp 0x4574ef
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 0x6fb428
call fcn.005a4e29
add esp, 0x18
push 0x6fb428
call fcn.00415fc0
push 1
xor eax, eax
push 0x60df14
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.004058d0
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.004058d0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
mov ecx, dword [0x6fb010]
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ecx + 0xc]
call fcn.00407490
cmp dword [ebp - 0x44], 8
jb 0x4574ca
push dword [ebp - 0x58]
call fcn.0048166b
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 0x4574ef
push dword [ebp - 0x70]
call fcn.0048166b
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x457500
push dword [ebp - 0x28]
call fcn.0048166b
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.005a4646
mov esp, ebp
pop ebp
ret