Function at 0x45aec0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x522638]
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
mov dword [ebp - 0x28c], edi
xor eax, eax
mov word [ebp - 0x24c], ax
mov eax, esi
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 0x45af02
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x24c]
call fcn.00405fe0
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.00429130
add esp, 8
test al, al
jne 0x45af98
mov esi, 8
cmp dword [ebp - 0x21c], esi
jb 0x45af67
mov eax, dword [ebp - 0x230]
push eax
call fcn.00406ca9
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 0x45b358
mov edx, dword [ebp - 0x24c]
push edx
jmp 0x45b350
mov ecx, dword [ebp - 0x24c]
mov ebx, 8
cmp dword [ebp - 0x238], ebx
jae 0x45afb1
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x23c]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x45b016
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], 7
mov dword [ebp - 0x274], edi
call fcn.00406640
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00405f60
cmp dword [ebp - 0x270], ebx
jb 0x45b016
mov ecx, dword [ebp - 0x284]
push ecx
call fcn.00406ca9
add esp, 4
mov eax, esi
lea edx, [eax + 2]
jmp 0x45b020
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x45b020
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.00407190
test eax, eax
jne 0x45b0a2
cmp dword [ebp - 0x21c], ebx
jb 0x45b05f
mov eax, dword [ebp - 0x230]
push eax
call fcn.00406ca9
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], ebx
jb 0x45b08f
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00406ca9
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 - 0x28c]
push eax
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x28c], 0x3a
call fcn.0040a060
mov edi, eax
xor ebx, ebx
mov dword [ebp - 0x28c], edi
cmp edi, ebx
je 0x45b30c
cmp edi, 0xffffffff
je 0x45b30c
cmp edi, 1
jbe 0x45b0fa
lea ecx, [edi - 2]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.00439440
cmp word [eax], 0x5c
jne 0x45b1fe
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 0x45b11e
lea eax, [ebp - 0x24c]
push 4
lea eax, [eax + edi*2 - 2]
push eax
lea ecx, [ebp - 0xc]
push 8
push ecx
call fcn.00433d88
add esp, 0x10
test eax, eax
jne 0x45b1fe
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 0x45b1fe
cmp eax, 0x104
je 0x45b1fe
lea esi, [ebp - 0x214]
cmp eax, 4
jb 0x45b18c
push 4
mov ecx, esi
push 0x4eaee0
push ecx
call fcn.004b9bed
add esp, 0xc
test eax, eax
jne 0x45b18c
lea esi, [ebp - 0x20c]
push ebx
push 0x2000000
push 3
push ebx
push 7
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x288], ebx
call fcn.004136d0
mov eax, dword [ebp - 0x288]
cmp eax, ebx
je 0x45b1f3
lea ecx, [ebp - 0x268]
push ecx
xor edx, edx
push eax
mov dword [ebp - 0x254], 7
mov dword [ebp - 0x258], ebx
mov word [ebp - 0x268], dx
call fcn.00429130
add esp, 8
test al, al
jne 0x45b227
lea ecx, [ebp - 0x268]
call fcn.00409f90
lea ecx, [ebp - 0x288]
call fcn.00415190
lea ecx, [ebp - 0x230]
call fcn.00409f90
lea ecx, [ebp - 0x24c]
call fcn.00409f90
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, edi
lea ecx, [edx + eax - 1]
cmp ecx, dword [ebp - 0x220]
jne 0x45b1e8
mov eax, dword [ebp - 0x268]
mov edi, 8
cmp dword [ebp - 0x254], edi
jae 0x45b25c
lea eax, [ebp - 0x268]
push eax
push ebx
push 0
lea ecx, [ebp - 0x230]
call fcn.00421400
test eax, eax
jne 0x45b1e8
mov esi, dword [ebp - 0x220]
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x284]
push edx
lea ecx, [ebp - 0x230]
call fcn.00406600
cmp dword [eax + 0x14], edi
jb 0x45b297
mov edi, dword [eax]
jmp 0x45b299
mov edi, eax
mov eax, dword [ebp - 0x28c]
sub esi, ebx
push esi
inc eax
push eax
lea ecx, [ebp - 0x24c]
call fcn.00439440
push eax
push edi
call fcn.0041930b
add esp, 0xc
test eax, eax
lea ecx, [ebp - 0x284]
setne bl
call fcn.00409f90
lea ecx, [ebp - 0x268]
call fcn.00409f90
lea ecx, [ebp - 0x288]
call fcn.00415190
lea ecx, [ebp - 0x230]
call fcn.00409f90
lea ecx, [ebp - 0x24c]
call fcn.00409f90
test bl, bl
jne 0x45b358
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 0x45b328
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00406ca9
add esp, 4
xor edx, edx
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], dx
cmp dword [ebp - 0x238], esi
jb 0x45b358
mov eax, dword [ebp - 0x24c]
push eax
call fcn.00406ca9
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