Function at 0x45a0a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x258
mov eax, dword [0x52efc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x531f40]
test al, 1
je 0x45a54e
mov esi, dword [0x531f3c]
cmp dword [esi + 8], 0
jne 0x45a1c6
mov esi, 0xfffffff8
lea ebx, [ebp - 0x21c]
jmp 0x45a0e7
inc esi
je 0x45a1c0
push 0x20a
push 0
push ebx
call fcn.004b81d0
add esp, 0xc
lea edi, [ebp - 0x228]
lea eax, [esi + 0x69]
mov dword [ebp - 0x220], 0x1000000
mov dword [ebp - 0x224], 0
mov word [ebp - 0x228], ax
mov word [ebp - 0x226], 0
mov ecx, edi
push 0x4ee1ce
call fcn.004288d4
cmp byte [ebp - 0x21d], 0
jns 0x45a13f
mov edi, dword [ebp - 0x228]
push 0x104
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x45a1a0
mov eax, ebx
mov ebx, dword [0x531f3c]
lea ecx, [ebp - 0x23c]
mov edi, eax
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x228]
push eax
call fcn.004281c4
lea eax, [ebp - 0x240]
mov ecx, ebx
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0045ca80
cmp byte [ebp - 0x231], 0
jns 0x45a19e
push dword [ebp - 0x23c]
call fcn.004aeac6
add esp, 4
mov ebx, edi
cmp byte [ebp - 0x21d], 0
jns 0x45a0e0
push dword [ebp - 0x228]
call fcn.004aeac6
add esp, 4
jmp 0x45a0e0
mov esi, dword [0x531f3c]
mov edi, dword [esi]
add esi, 4
cmp esi, edi
je 0x45a531
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x244], esi
add ecx, 0xc
add eax, 4
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x25c], eax
jmp 0x45a20a
cmp esi, eax
mov edi, eax
je 0x45a531
mov ebx, esi
lea esi, [ebp - 0x21c]
lea eax, [edi + 0x10]
mov ecx, esi
push eax
call fcn.004281c4
lea eax, [edi + 0x1c]
lea ecx, [ebp - 0x210]
push eax
call fcn.004281c4
movzx ecx, byte [ebp - 0x211]
mov dword [ebp - 0x248], esi
test cl, cl
jns 0x45a24f
mov ecx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 0xb]
test dl, dl
jns 0x45a25f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test ecx, ecx
je 0x45a370
mov esi, ebx
test dl, dl
mov dword [ebp - 0x250], eax
jns 0x45a279
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
lea eax, [edx + edx]
lea ebx, [ecx + ecx]
sar ebx, 1
sar eax, 1
cmp eax, ebx
jge 0x45a2a0
xor ebx, ebx
cmp byte [ebp - 0x205], 0
jns 0x45a415
jmp 0x45a4bf
mov esi, dword [ebp - 0x250]
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], ebx
lea ecx, [esi + edx*2]
mov edx, esi
mov dword [ebp - 0x24c], ecx
mov ecx, dword [ebp - 0x248]
movzx esi, word [ecx]
lea ecx, [ebx - 1]
mov dword [ebp - 0x264], ecx
mov ecx, eax
sub ecx, ebx
inc ecx
je 0x45a400
mov ecx, dword [ebp - 0x264]
sub ecx, eax
nop word cs:[eax + eax]
nop dword [eax]
cmp word [edx], si
je 0x45a300
add edx, 2
inc ecx
jne 0x45a2f0
jmp 0x45a400
test edx, edx
je 0x45a400
mov eax, 1
nop dword [eax]
cmp dword [ebp - 0x254], eax
je 0x45a347
movzx ecx, word [edx + eax*2]
mov ebx, dword [ebp - 0x248]
cmp cx, word [ebx + eax*2]
lea eax, [eax + 1]
je 0x45a310
mov eax, dword [ebp - 0x24c]
mov ebx, dword [ebp - 0x254]
add edx, 2
sub eax, edx
sar eax, 1
cmp eax, ebx
jge 0x45a2cf
jmp 0x45a400
cmp dword [ebp - 0x24c], edx
je 0x45a400
cmp dword [ebp - 0x250], edx
mov esi, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x258]
mov ebx, 0
jne 0x45a408
mov eax, ecx
lea ecx, [ebp - 0x240]
push dword [ebp - 0x260]
push 0xffffffffffffffff
push eax
push dword [ebp + 8]
call fcn.004282dc
movzx eax, byte [ebp - 0x205]
lea edx, [ebp - 0x210]
test al, al
jns 0x45a3a6
mov eax, dword [ebp - 0x20c]
mov edx, dword [ebp - 0x210]
lea ecx, [ebp - 0x240]
push eax
push edx
push 0
call fcn.00428a72
mov edx, dword [eax + 7]
mov ecx, dword [eax + 4]
mov esi, dword [eax]
mov dword [ebp - 0x225], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x228], ecx
mov bl, byte [eax + 0xb]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
cmp byte [edx + 0xb], 0
js 0x45a42f
mov word [edx], 0
mov byte [edx + 0xb], 0
jmp 0x45a460
mov esi, dword [ebp - 0x244]
xor ebx, ebx
cmp byte [ebp - 0x205], 0
js 0x45a4bf
cmp byte [ebp - 0x211], 0
js 0x45a4da
test ebx, ebx
je 0x45a4ec
jmp 0x45a535
mov eax, dword [edx]
mov word [eax], 0
mov dword [edx + 4], 0
cmp byte [edx + 0xb], 0
jns 0x45a460
push dword [edx]
call fcn.004aeac6
mov edx, dword [ebp + 0xc]
add esp, 4
mov dword [edx + 8], 0
nop word [eax + eax]
mov dword [edx], esi
mov esi, dword [ebp - 0x25c]
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x225]
mov dword [esi + 3], ecx
mov dword [esi], eax
mov byte [edx + 0xb], bl
mov dword [ebp - 0x225], 0
mov dword [ebp - 0x228], 0
cmp byte [ebp - 0x235], 0
jns 0x45a4a7
push dword [ebp - 0x240]
call fcn.004aeac6
add esp, 4
mov esi, dword [ebp - 0x244]
mov ebx, 1
cmp byte [ebp - 0x205], 0
jns 0x45a415
push dword [ebp - 0x210]
call fcn.004aeac6
add esp, 4
cmp byte [ebp - 0x211], 0
jns 0x45a422
push dword [ebp - 0x21c]
call fcn.004aeac6
add esp, 4
test ebx, ebx
jne 0x45a535
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x45a510
nop word cs:[eax + eax]
nop dword [eax]
mov eax, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x45a500
jmp 0x45a200
mov eax, dword [edi + 8]
cmp dword [eax], edi
je 0x45a200
add edi, 8
nop
mov ecx, dword [edi]
mov eax, dword [ecx + 8]
lea edi, [ecx + 8]
cmp dword [eax], ecx
jne 0x45a520
jmp 0x45a200
xor ebx, ebx
jmp 0x45a537
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004aeb01
mov eax, ebx
add esp, 0x258
pop esi
pop edi
pop ebx
pop ebp
ret
or eax, 1
mov dword [0x531f40], eax
push 0xc
call fcn.004aea96
add esp, 4
mov esi, eax
add eax, 4
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi], eax
mov dword [0x531f3c], esi
cmp dword [esi + 8], 0
jne 0x45a1c6
jmp 0x45a0d3