Function at 0x45bf70
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x5246a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
xor eax, eax
mov word [ebp - 0x24c], ax
mov eax, esi
mov dword [ebp - 0x28c], edi
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x45bfb2
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x24c]
call fcn.00406040
lea edx, [ebp - 0x230]
push edx
xor ecx, ecx
push ebx
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], cx
call fcn.004227b0
add esp, 8
test al, al
jne 0x45c048
mov esi, 8
cmp dword [ebp - 0x21c], esi
jb 0x45c017
mov eax, dword [ebp - 0x230]
push eax
call fcn.00406d09
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], cx
cmp dword [ebp - 0x238], esi
jb 0x45c3f9
mov edx, dword [ebp - 0x24c]
push edx
jmp 0x45c3f1
cmp dword [ebp - 0x238], 8
mov ecx, dword [ebp - 0x24c]
jae 0x45c05d
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x23c]
cmp word [ecx + eax*2 - 2], 0x5c
mov ebx, 7
jne 0x45c0c4
dec eax
push eax
xor ecx, ecx
push edi
lea edx, [ebp - 0x24c]
mov word [ebp - 0x284], cx
push edx
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x274], edi
call fcn.004066a0
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00405fc0
cmp dword [ebp - 0x270], 8
jb 0x45c0c4
mov ecx, dword [ebp - 0x284]
push ecx
call fcn.00406d09
add esp, 4
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x45c0d0
sub eax, edx
mov edx, dword [ebp - 0x220]
sar eax, 1
push eax
push esi
push edx
push edi
lea ecx, [ebp - 0x230]
call fcn.004071f0
test eax, eax
jne 0x45c153
mov esi, 8
cmp dword [ebp - 0x21c], esi
jb 0x45c114
mov eax, dword [ebp - 0x230]
push eax
call fcn.00406d09
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], cx
cmp dword [ebp - 0x238], esi
jb 0x45c140
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00406d09
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
push 1
push edi
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x288], 0x3a
call fcn.0040a0c0
mov esi, eax
mov dword [ebp - 0x28c], esi
cmp esi, edi
je 0x45c3b1
cmp esi, 0xffffffff
je 0x45c3b1
cmp esi, 1
jbe 0x45c1a9
lea ecx, [esi - 2]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.00432b40
cmp word [eax], 0x5c
jne 0x45c2a7
xor eax, eax
xor edx, edx
cmp dword [ebp - 0x238], 8
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov eax, dword [ebp - 0x24c]
mov word [ebp - 0xc], dx
jae 0x45c1cd
lea eax, [ebp - 0x24c]
push 4
lea eax, [eax + esi*2 - 2]
push eax
lea ecx, [ebp - 0xc]
push 8
push ecx
call fcn.0042da68
add esp, 0x10
test eax, eax
jne 0x45c2a7
push 0x104
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x45c2a7
cmp eax, 0x104
je 0x45c2a7
lea ebx, [ebp - 0x214]
cmp eax, 4
jb 0x45c23b
push 4
mov ecx, ebx
push 0x4ecf50
push ecx
call fcn.004b9133
add esp, 0xc
test eax, eax
jne 0x45c23b
lea ebx, [ebp - 0x20c]
push edi
push 0x2000000
push 3
push edi
push 7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x288]
call fcn.00416180
mov eax, dword [ebp - 0x288]
cmp eax, edi
je 0x45c29c
lea ecx, [ebp - 0x268]
push ecx
xor edx, edx
push eax
mov dword [ebp - 0x254], 7
mov dword [ebp - 0x258], edi
mov word [ebp - 0x268], dx
call fcn.004227b0
add esp, 8
test al, al
jne 0x45c2d0
lea ecx, [ebp - 0x268]
call fcn.00409ff0
lea ecx, [ebp - 0x288]
call fcn.004168b0
lea ecx, [ebp - 0x230]
call fcn.00409ff0
lea ecx, [ebp - 0x24c]
call fcn.00409ff0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x23c]
mov edx, ebx
sub edx, esi
lea ecx, [edx + eax - 1]
cmp ecx, dword [ebp - 0x220]
jne 0x45c291
cmp dword [ebp - 0x254], 8
mov eax, dword [ebp - 0x268]
jae 0x45c301
lea eax, [ebp - 0x268]
push eax
push ebx
push edi
lea ecx, [ebp - 0x230]
call fcn.00418fa0
test eax, eax
jne 0x45c291
mov esi, dword [ebp - 0x220]
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x284]
push edx
lea ecx, [ebp - 0x230]
call fcn.00406660
cmp dword [eax + 0x14], 8
jb 0x45c33c
mov edi, dword [eax]
jmp 0x45c33e
mov edi, eax
mov eax, dword [ebp - 0x28c]
sub esi, ebx
push esi
inc eax
push eax
lea ecx, [ebp - 0x24c]
call fcn.00432b40
push eax
push edi
call fcn.00418ef4
add esp, 0xc
test eax, eax
lea ecx, [ebp - 0x284]
setne bl
call fcn.00409ff0
lea ecx, [ebp - 0x268]
call fcn.00409ff0
lea ecx, [ebp - 0x288]
call fcn.004168b0
lea ecx, [ebp - 0x230]
call fcn.00409ff0
lea ecx, [ebp - 0x24c]
call fcn.00409ff0
test bl, bl
jne 0x45c3f9
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov esi, 8
cmp dword [ebp - 0x21c], esi
jb 0x45c3cd
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00406d09
add esp, 4
xor edx, edx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], dx
cmp dword [ebp - 0x238], esi
jb 0x45c3f9
mov eax, dword [ebp - 0x24c]
push eax
call fcn.00406d09
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret