Function at 0x451d3c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4524c2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x21], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd8], 0
jne 0x451d9f
mov eax, dword [ebp - 8]
call fcn.00449bb4
call fcn.004087f4
call fcn.00408d8c
mov eax, dword [ebp - 4]
fstp qword [eax + 0xe8]
wait
jmp 0x451dae
call fcn.00409b50
mov eax, dword [ebp - 4]
fstp qword [eax + 0xe8]
wait
mov eax, dword [ebp - 4]
call fcn.004525b4
test eax, eax
jle 0x451df9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
test eax, eax
je 0x451de0
mov edx, dword [ebp - 4]
cmp byte [edx + 0x2c], 7
je 0x451de0
call fcn.0040312c
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xe4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
call fcn.0040312c
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xe0], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
mov edx, dword [ebp - 8]
call fcn.0044ae44
mov ebx, eax
test bl, bl
jne 0x451eab
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd8], 0
jne 0x451eab
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00450dcc
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov edx, 0x4524d8
call fcn.00408a7c
mov eax, dword [ebp - 0x2c]
call fcn.004087e4
test al, al
je 0x451eab
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
push 0
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00450dcc
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov edx, 0x4524d8
call fcn.00408a7c
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x40f018]
call fcn.00412244
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
mov edx, dword [ebp - 8]
call fcn.0044ae44
mov ebx, eax
test bl, bl
je 0x451e9d
mov byte [ebp - 0x21], 1
jmp 0x451eab
mov eax, dword [ebp - 8]
call fcn.0040312c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
test bl, bl
jne 0x451f6d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x184], 0
jne 0x451f22
mov eax, dword [ebp - 4]
cmp word [eax + 0x8e], 0
je 0x451ee4
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x3c]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x90]
call dword [ebx + 0x8c]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3c], 2
jne 0x451f03
mov ecx, 0x4524e8
mov dl, 1
mov eax, dword [0x44b474]
call fcn.0040b884
call fcn.004037c4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3c], 0
jne 0x451f22
mov ecx, 0x452508
mov dl, 1
mov eax, dword [0x44b418]
call fcn.0040b884
call fcn.004037c4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3c], 1
je 0x451f3b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x184], 0
je 0x452089
push ebp
call fcn.00451954
pop ecx
test al, al
jne 0x452089
mov eax, dword [ebp - 4]
call fcn.00451814
mov ecx, 0x4524e8
mov dl, 1
mov eax, dword [0x44b3c0]
call fcn.0040b884
call fcn.004037c4
jmp 0x452089
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
movzx eax, word [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0xf4], eax
cmp byte [ebp - 0x21], 0
je 0x451f94
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xf4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
cmp word [eax + 8], 0
jbe 0x452002
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov edx, 3
call fcn.00449d80
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x1c]
call fcn.004082f0
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 1], 0x3a
je 0x451fd7
mov dl, 2
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x45200c
lea eax, [ebp - 0x1c]
call fcn.0044a098
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x451ff6
mov dl, 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x45200c
mov dl, 2
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x45200c
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
cmp word [eax + 0xe], 0
jbe 0x452089
cmp byte [ebp - 0x21], 0
jne 0x45205f
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x45205f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
movzx eax, word [eax + 0xa]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0xf4]
je 0x45205f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
movzx edx, word [eax + 0xa]
inc edx
mov eax, dword [ebp - 4]
call fcn.0045169c
mov dword [ebp - 8], eax
cmp byte [ebp - 0x21], 0
je 0x452073
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
jmp 0x452089
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
mov edx, dword [eax + 0x14]
xor ecx, ecx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 4]
call fcn.004525b4
test eax, eax
jne 0x4520bb
mov cl, 2
mov dl, 1
mov eax, dword [0x44a294]
call fcn.0044b010
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0xe0], ebx
mov byte [ebx + 0x18], 7
mov eax, dword [ebp - 4]
mov dword [eax + 0xe4], ebx
mov word [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x45236e
mov dl, 1
mov eax, dword [0x44a0dc]
call fcn.0044a360
mov dword [ebp - 0xc], eax
xor esi, esi
mov eax, dword [ebp - 4]
cmp byte [eax + 0xf0], 0
jne 0x4520f4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x452107
push 0
push 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0044a868
mov ebx, eax
jmp 0x45211d
mov eax, dword [ebp - 4]
push eax
push 0x4517f0
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0044a868
mov ebx, eax
inc esi
test bl, bl
jne 0x452154
cmp esi, 1
jne 0x452154
cmp word [ebp - 0x24], 0
jbe 0x452154
cmp dword [ebp - 0x10], 0
je 0x45213d
mov eax, dword [ebp - 0x10]
mov word [eax + 0x1e], 0
movzx edx, word [ebp - 0x24]
neg edx
mov cx, 1
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
xor eax, eax
mov dword [ebp - 0x10], eax
test bl, bl
jne 0x452168
cmp esi, 2
je 0x452168
cmp word [ebp - 0x24], 0
jne 0x4520dc
mov word [ebp - 0x24], 0
test bl, bl
jne 0x4521de
mov eax, dword [ebp - 4]
cmp byte [eax + 0xf0], 0
je 0x452190
mov eax, dword [ebp - 0xc]
call fcn.0040312c
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x452384
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x4521a7
push ebp
call fcn.00451954
pop ecx
test al, al
jne 0x4521d4
mov eax, dword [ebp - 0xc]
call fcn.0040312c
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.00451814
mov ecx, 0x4524e8
mov dl, 1
mov eax, dword [0x44b3c0]
call fcn.0040b884
call fcn.004037c4
jmp 0x4521de
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x45236e
mov eax, dword [ebp - 4]
cmp byte [eax + 0xf0], 0
je 0x45227a
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x48]
test al, al
je 0x452265
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
mov edx, dword [ebp - 0x18]
call fcn.004487d8
mov edx, dword [0x44a0dc]
call fcn.004032bc
mov ebx, eax
mov esi, dword [ebx + 0x2c]
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebx + 0x2c], esi
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0xc]
movzx edx, word [eax + 0x1e]
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x13e]
add edx, eax
mov cx, 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0xc]
call fcn.0040312c
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x45227a
mov eax, dword [ebp - 0xc]
call fcn.0040312c
xor eax, eax
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x14]
jmp 0x45236e
mov eax, dword [ebp - 4]
cmp byte [eax + 0xf0], 0
jne 0x4522fe
xor eax, eax
push ebp
push 0x4522af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4522fe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
cmp word [eax + 8], 0
jbe 0x452328
mov eax, dword [ebp - 0xc]
call fcn.0044aad0
test al, al
je 0x452328
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00450fc4
cmp dword [ebp - 0xc], 0
je 0x452365
mov eax, dword [ebp - 0xc]
movzx edx, word [eax + 0x1e]
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x13e]
add edx, eax
mov cx, 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0xc]
mov ax, word [eax + 0x1e]
test ax, ax
jbe 0x45236b
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x45236b
mov word [ebp - 0x24], 0
inc dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
movzx eax, word [eax + 0xe]
cmp eax, dword [ebp - 0x14]
jg 0x4520cb
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x14c]
cmp word [ebx + 8], 0
jbe 0x452440
mov eax, ebx
call fcn.0044afa0
test al, al
je 0x452440
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
mov ax, word [eax + 8]
movzx edx, ax
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 0xf4]
je 0x4523d4
cmp byte [ebp - 0x21], 0
jne 0x4523d4
movzx edx, ax
inc edx
mov eax, dword [ebp - 4]
call fcn.0045169c
cmp byte [ebp - 0x21], 0
jne 0x4523e7
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00451158
jmp 0x452440
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
mov edx, dword [eax + 0x20]
xor ecx, ecx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
movzx ebx, word [eax + 0x18]
lea eax, [ebp - 0x28]
mov edx, ebx
call fcn.004042fc
lea eax, [ebp - 0x28]
call fcn.0040419c
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 4]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00451224
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
mov byte [eax + 0x24], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
movzx eax, word [eax + 8]
inc eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
cmp byte [ebp - 0x21], 0
jne 0x452472
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
movzx eax, word [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0xf4], eax
jmp 0x45247d
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xf4], edx
mov eax, dword [ebp - 4]
mov dl, byte [eax + 0x2c]
mov eax, dword [ebp - 4]
call fcn.0045251c
cmp byte [ebp - 0x21], 0
je 0x45249f
mov eax, dword [ebp - 8]
call fcn.0040312c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4524c9
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00403d74
lea eax, [ebp - 0x1c]
call fcn.00403d50
ret