Function at 0x4520b8
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 0x45283e
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 0x45211b
mov eax, dword [ebp - 8]
call fcn.00449f30
call fcn.00408bc4
call fcn.004090f8
mov eax, dword [ebp - 4]
fstp qword [eax + 0xe8]
wait
jmp 0x45212a
call fcn.00409ebc
mov eax, dword [ebp - 4]
fstp qword [eax + 0xe8]
wait
mov eax, dword [ebp - 4]
call fcn.00452930
test eax, eax
jle 0x452175
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
test eax, eax
je 0x45215c
mov edx, dword [ebp - 4]
cmp byte [edx + 0x2c], 7
je 0x45215c
call fcn.004030f8
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.004030f8
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.0044b1c0
mov ebx, eax
test bl, bl
jne 0x452227
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd8], 0
jne 0x452227
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00451148
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov edx, 0x452854
call fcn.00408e4c
mov eax, dword [ebp - 0x2c]
call fcn.00408bb4
test al, al
je 0x452227
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
push 0
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00451148
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov edx, 0x452854
call fcn.00408e4c
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x40f394]
call fcn.004125c0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
mov edx, dword [ebp - 8]
call fcn.0044b1c0
mov ebx, eax
test bl, bl
je 0x452219
mov byte [ebp - 0x21], 1
jmp 0x452227
mov eax, dword [ebp - 8]
call fcn.004030f8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
test bl, bl
jne 0x4522e9
mov eax, dword [ebp - 4]
cmp byte [eax + 0x184], 0
jne 0x45229e
mov eax, dword [ebp - 4]
cmp word [eax + 0x8e], 0
je 0x452260
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 0x45227f
mov ecx, 0x452864
mov dl, 1
mov eax, dword [0x44b7f0]
call fcn.0040bbf0
call fcn.00403790
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3c], 0
jne 0x45229e
mov ecx, 0x452884
mov dl, 1
mov eax, dword [0x44b794]
call fcn.0040bbf0
call fcn.00403790
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3c], 1
je 0x4522b7
mov eax, dword [ebp - 4]
cmp byte [eax + 0x184], 0
je 0x452405
push ebp
call fcn.00451cd0
pop ecx
test al, al
jne 0x452405
mov eax, dword [ebp - 4]
call fcn.00451b90
mov ecx, 0x452864
mov dl, 1
mov eax, dword [0x44b73c]
call fcn.0040bbf0
call fcn.00403790
jmp 0x452405
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 0x452310
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 0x45237e
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov edx, 3
call fcn.0044a0fc
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x1c]
call fcn.004086c0
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 1], 0x3a
je 0x452353
mov dl, 2
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x452388
lea eax, [ebp - 0x1c]
call fcn.0044a414
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x452372
mov dl, 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x452388
mov dl, 2
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x452388
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 0x452405
cmp byte [ebp - 0x21], 0
jne 0x4523db
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x4523db
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 0x4523db
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
movzx edx, word [eax + 0xa]
inc edx
mov eax, dword [ebp - 4]
call fcn.00451a18
mov dword [ebp - 8], eax
cmp byte [ebp - 0x21], 0
je 0x4523ef
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
jmp 0x452405
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.00452930
test eax, eax
jne 0x452437
mov cl, 2
mov dl, 1
mov eax, dword [0x44a610]
call fcn.0044b38c
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 0x4526ea
mov dl, 1
mov eax, dword [0x44a458]
call fcn.0044a6dc
mov dword [ebp - 0xc], eax
xor esi, esi
mov eax, dword [ebp - 4]
cmp byte [eax + 0xf0], 0
jne 0x452470
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x452483
push 0
push 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0044abe4
mov ebx, eax
jmp 0x452499
mov eax, dword [ebp - 4]
push eax
push 0x451b6c
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0044abe4
mov ebx, eax
inc esi
test bl, bl
jne 0x4524d0
cmp esi, 1
jne 0x4524d0
cmp word [ebp - 0x24], 0
jbe 0x4524d0
cmp dword [ebp - 0x10], 0
je 0x4524b9
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 0x4524e4
cmp esi, 2
je 0x4524e4
cmp word [ebp - 0x24], 0
jne 0x452458
mov word [ebp - 0x24], 0
test bl, bl
jne 0x45255a
mov eax, dword [ebp - 4]
cmp byte [eax + 0xf0], 0
je 0x45250c
mov eax, dword [ebp - 0xc]
call fcn.004030f8
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x452700
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x452523
push ebp
call fcn.00451cd0
pop ecx
test al, al
jne 0x452550
mov eax, dword [ebp - 0xc]
call fcn.004030f8
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.00451b90
mov ecx, 0x452864
mov dl, 1
mov eax, dword [0x44b73c]
call fcn.0040bbf0
call fcn.00403790
jmp 0x45255a
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4526ea
mov eax, dword [ebp - 4]
cmp byte [eax + 0xf0], 0
je 0x4525f6
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 0x4525e1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
mov edx, dword [ebp - 0x18]
call fcn.00448b54
mov edx, dword [0x44a458]
call fcn.00403288
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.004030f8
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4525f6
mov eax, dword [ebp - 0xc]
call fcn.004030f8
xor eax, eax
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x14]
jmp 0x4526ea
mov eax, dword [ebp - 4]
cmp byte [eax + 0xf0], 0
jne 0x45267a
xor eax, eax
push ebp
push 0x45262b
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 0x45267a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
cmp word [eax + 8], 0
jbe 0x4526a4
mov eax, dword [ebp - 0xc]
call fcn.0044ae4c
test al, al
je 0x4526a4
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00451340
cmp dword [ebp - 0xc], 0
je 0x4526e1
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 0x4526e7
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x4526e7
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 0x452447
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x14c]
cmp word [ebx + 8], 0
jbe 0x4527bc
mov eax, ebx
call fcn.0044b31c
test al, al
je 0x4527bc
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 0x452750
cmp byte [ebp - 0x21], 0
jne 0x452750
movzx edx, ax
inc edx
mov eax, dword [ebp - 4]
call fcn.00451a18
cmp byte [ebp - 0x21], 0
jne 0x452763
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004514d4
jmp 0x4527bc
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.004042c8
lea eax, [ebp - 0x28]
call fcn.00404168
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.004515a0
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 0x4527ee
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 0x4527f9
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.00452898
cmp byte [ebp - 0x21], 0
je 0x45281b
mov eax, dword [ebp - 8]
call fcn.004030f8
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 0x452845
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00403d40
lea eax, [ebp - 0x1c]
call fcn.00403d1c
ret