Function at 0x458950
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x7db1e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, ecx
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x18]
push ebx
mov dword [ebp - 0x224], eax
push esi
mov esi, dword [ebp + 0x14]
mov eax, esi
and eax, 0x10
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x244], eax
mov ebx, esi
mov eax, esi
mov dword [ebp - 0x240], ecx
and eax, 8
and ebx, 2
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x230], eax
mov eax, esi
and eax, 4
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x248], eax
mov dword [edi + 8], 0xffffffff
test ecx, ecx
jne 0x4589ee
lea eax, [ebp - 0x10c]
push eax
push 0x105
call fcn.0047b3c0
add esp, 8
test eax, eax
jne 0x458ca2
lea edx, [ebp - 0x10c]
mov dword [ebp - 0x240], edx
push edx
call fcn.00473030
mov edx, eax
add esp, 4
mov dword [ebp - 0x22c], edx
test edx, edx
jne 0x458a17
pop edi
pop esi
lea eax, [edx + 7]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006f4db8
mov esp, ebp
pop ebp
ret
test ebx, ebx
mov eax, 0xc0000000
mov ecx, connect
cmove eax, ecx
cmp dword [ebp - 0x244], 0
mov dword [ebp - 0x228], eax
je 0x458a3c
mov ebx, 1
jmp 0x458a4a
xor ebx, ebx
cmp dword [ebp - 0x248], ebx
setne bl
add ebx, 3
cmp dword [ebp - 0x230], 0
mov eax, 0x80
mov ecx, 0x4000102
cmove ecx, eax
mov eax, dword [0x7df1d4]
mov dword [ebp - 0x230], ecx
test eax, eax
jne 0x458aa2
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [ebp - 0x230]
xor eax, eax
cmp dword [ebp - 0x210], 2
mov edx, dword [ebp - 0x22c]
sete al
inc eax
mov dword [0x7df1d4], eax
push 0
push ecx
push ebx
push 0
push 3
push dword [ebp - 0x228]
push edx
cmp eax, 2
jne 0x458abe
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x458ac4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x458b54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x22c]
mov dword [edi + 0x10], eax
call fcn.006fa47e
add esp, 4
cmp dword [ebp - 0x234], 0
je 0x458b25
mov edx, dword [ebp - 0x224]
and esi, 0xfffffff9
mov eax, dword [ebp - 0x23c]
or esi, 1
mov ecx, dword [ebp - 0x238]
push edx
push esi
push edi
push eax
push ecx
call fcn.00458950
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006f4db8
mov esp, ebp
pop ebp
ret
push 0x735b6c
push 0x7b7e
push str.cannot_open_file_at_line__d_of___.10s_
push 0xe
call fcn.004c2340
add esp, 0x10
mov eax, 0xe
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006f4db8
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x224]
test edx, edx
je 0x458b6c
xor eax, eax
cmp dword [ebp - 0x234], eax
setne al
inc eax
mov dword [edx], eax
mov eax, dword [ebp - 0x23c]
mov dword [edi + 0xc], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0x214]
push eax
push 0x104
push dword [ebp - 0x240]
mov dword [edi + 8], ecx
mov ecx, dword [ebp - 0x238]
push ecx
mov dword [edi], 0x72e938
mov dword [edi + 0x10], 0
mov dword [edi + 4], ecx
mov dword [edi + 0x18], 0
mov dword [ebp - 0x228], 0x200
call fcn.00459420
add esp, 0x10
test eax, eax
jne 0x458c89
lea eax, [ebp - 0x214]
push eax
call fcn.00473030
mov esi, eax
add esp, 4
test esi, esi
je 0x458c82
call fcn.0047c510
mov ecx, esi
test eax, eax
je 0x458c3f
movzx eax, word [esi]
test ax, ax
je 0x458c20
mov edx, eax
cmp dx, 0x5c
je 0x458c1b
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x458c05
jmp 0x458c20
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x224]
push eax
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x458c73
mov al, byte [esi]
test al, al
je 0x458c56
cmp al, 0x5c
je 0x458c53
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x458c45
jmp 0x458c56
mov byte [ecx], 0
lea eax, [ebp - 0x224]
push eax
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov ebx, eax
call fcn.006fa47e
add esp, 4
test ebx, ebx
jne 0x458c89
mov eax, 0x200
jmp 0x458c8f
mov eax, dword [ebp - 0x228]
push dword [ebp - 0x22c]
mov dword [edi + 0x14], eax
call fcn.006fa47e
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006f4db8
mov esp, ebp
pop ebp
ret