Function at 0x451cd0
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 0x452456
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 0x451d33
mov eax, dword [ebp - 8]
call fcn.00449b48
call fcn.004087ec
call fcn.00408d20
mov eax, dword [ebp - 4]
fstp qword [eax + 0xe8]
wait
jmp 0x451d42
call fcn.00409ae4
mov eax, dword [ebp - 4]
fstp qword [eax + 0xe8]
wait
mov eax, dword [ebp - 4]
call fcn.00452548
test eax, eax
jle 0x451d8d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
test eax, eax
je 0x451d74
mov edx, dword [ebp - 4]
cmp byte [edx + 0x2c], 7
je 0x451d74
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.0044add8
mov ebx, eax
test bl, bl
jne 0x451e3f
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd8], 0
jne 0x451e3f
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00450d60
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov edx, 0x45246c
call fcn.00408a74
mov eax, dword [ebp - 0x2c]
call fcn.004087dc
test al, al
je 0x451e3f
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
push 0
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00450d60
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov edx, 0x45246c
call fcn.00408a74
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x40efac]
call fcn.004121d8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
mov edx, dword [ebp - 8]
call fcn.0044add8
mov ebx, eax
test bl, bl
je 0x451e31
mov byte [ebp - 0x21], 1
jmp 0x451e3f
mov eax, dword [ebp - 8]
call fcn.0040312c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
test bl, bl
jne 0x451f01
mov eax, dword [ebp - 4]
cmp byte [eax + 0x184], 0
jne 0x451eb6
mov eax, dword [ebp - 4]
cmp word [eax + 0x8e], 0
je 0x451e78
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 0x451e97
mov ecx, 0x45247c
mov dl, 1
mov eax, dword [0x44b408]
call fcn.0040b818
call fcn.004037c4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3c], 0
jne 0x451eb6
mov ecx, 0x45249c
mov dl, 1
mov eax, dword [0x44b3ac]
call fcn.0040b818
call fcn.004037c4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3c], 1
je 0x451ecf
mov eax, dword [ebp - 4]
cmp byte [eax + 0x184], 0
je 0x45201d
push ebp
call fcn.004518e8
pop ecx
test al, al
jne 0x45201d
mov eax, dword [ebp - 4]
call fcn.004517a8
mov ecx, 0x45247c
mov dl, 1
mov eax, dword [0x44b354]
call fcn.0040b818
call fcn.004037c4
jmp 0x45201d
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 0x451f28
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 0x451f96
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov edx, 3
call fcn.00449d14
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x1c]
call fcn.004082e8
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 1], 0x3a
je 0x451f6b
mov dl, 2
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x451fa0
lea eax, [ebp - 0x1c]
call fcn.0044a02c
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x451f8a
mov dl, 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x451fa0
mov dl, 2
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x451fa0
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 0x45201d
cmp byte [ebp - 0x21], 0
jne 0x451ff3
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x451ff3
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 0x451ff3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
movzx edx, word [eax + 0xa]
inc edx
mov eax, dword [ebp - 4]
call fcn.00451630
mov dword [ebp - 8], eax
cmp byte [ebp - 0x21], 0
je 0x452007
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
jmp 0x45201d
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.00452548
test eax, eax
jne 0x45204f
mov cl, 2
mov dl, 1
mov eax, dword [0x44a228]
call fcn.0044afa4
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 0x452302
mov dl, 1
mov eax, dword [0x44a070]
call fcn.0044a2f4
mov dword [ebp - 0xc], eax
xor esi, esi
mov eax, dword [ebp - 4]
cmp byte [eax + 0xf0], 0
jne 0x452088
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x45209b
push 0
push 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0044a7fc
mov ebx, eax
jmp 0x4520b1
mov eax, dword [ebp - 4]
push eax
push 0x451784
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0044a7fc
mov ebx, eax
inc esi
test bl, bl
jne 0x4520e8
cmp esi, 1
jne 0x4520e8
cmp word [ebp - 0x24], 0
jbe 0x4520e8
cmp dword [ebp - 0x10], 0
je 0x4520d1
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 0x4520fc
cmp esi, 2
je 0x4520fc
cmp word [ebp - 0x24], 0
jne 0x452070
mov word [ebp - 0x24], 0
test bl, bl
jne 0x452172
mov eax, dword [ebp - 4]
cmp byte [eax + 0xf0], 0
je 0x452124
mov eax, dword [ebp - 0xc]
call fcn.0040312c
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x452318
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x45213b
push ebp
call fcn.004518e8
pop ecx
test al, al
jne 0x452168
mov eax, dword [ebp - 0xc]
call fcn.0040312c
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.004517a8
mov ecx, 0x45247c
mov dl, 1
mov eax, dword [0x44b354]
call fcn.0040b818
call fcn.004037c4
jmp 0x452172
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x452302
mov eax, dword [ebp - 4]
cmp byte [eax + 0xf0], 0
je 0x45220e
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 0x4521f9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
mov edx, dword [ebp - 0x18]
call fcn.0044876c
mov edx, dword [0x44a070]
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 0x45220e
mov eax, dword [ebp - 0xc]
call fcn.0040312c
xor eax, eax
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x14]
jmp 0x452302
mov eax, dword [ebp - 4]
cmp byte [eax + 0xf0], 0
jne 0x452292
xor eax, eax
push ebp
push 0x452243
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 0x452292
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
cmp word [eax + 8], 0
jbe 0x4522bc
mov eax, dword [ebp - 0xc]
call fcn.0044aa64
test al, al
je 0x4522bc
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00450f58
cmp dword [ebp - 0xc], 0
je 0x4522f9
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 0x4522ff
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x4522ff
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 0x45205f
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x14c]
cmp word [ebx + 8], 0
jbe 0x4523d4
mov eax, ebx
call fcn.0044af34
test al, al
je 0x4523d4
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 0x452368
cmp byte [ebp - 0x21], 0
jne 0x452368
movzx edx, ax
inc edx
mov eax, dword [ebp - 4]
call fcn.00451630
cmp byte [ebp - 0x21], 0
jne 0x45237b
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004510ec
jmp 0x4523d4
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.004511b8
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 0x452406
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 0x452411
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.004524b0
cmp byte [ebp - 0x21], 0
je 0x452433
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 0x45245d
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00403d74
lea eax, [ebp - 0x1c]
call fcn.00403d50
ret