Function at 0x4adb38
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], ecx
mov esi, eax
lea edi, [ebp - 8]
movzx ecx, byte [esi]
cmp cl, 2
jb 0x4adb6a
mov cl, 2
mov byte [edi], cl
inc esi
inc edi
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0xc], edx
xor eax, eax
push ebp
push 0x4ae063
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
mov cl, 2
call fcn.00403574
mov dword [ebp - 0x34], 0xff
mov eax, dword [ebp - 0x34]
call fcn.0040b4d0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x34]
call fcn.0040b4d0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x34]
call fcn.0040b4d0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
lea edx, [ebp - 8]
call fcn.00405094
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.0040f6dc
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
call fcn.0040b33c
xor eax, eax
push ebp
push 0x4ae039
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
movzx edx, word [0x4ae074]
mov word [eax + 4], dx
mov eax, dword [ebp - 0x24]
push eax
call fcn.004077dc
cmp eax, 6
ja case.default.0x4adc01
jmp dword [eax*4 + 0x4adc08]
mov eax, dword [ebp - 0xc]
mov byte [eax + 3], 0
jmp case.default.0x4adc01
mov eax, dword [ebp - 0xc]
mov byte [eax + 3], 1
jmp case.default.0x4adc01
mov eax, dword [ebp - 0xc]
mov byte [eax + 3], 2
jmp case.default.0x4adc01
mov eax, dword [ebp - 0xc]
mov byte [eax + 3], 3
jmp case.default.0x4adc01
mov eax, dword [ebp - 0xc]
mov byte [eax + 3], 4
jmp case.default.0x4adc01
mov eax, dword [ebp - 0xc]
mov byte [eax + 3], 5
jmp case.default.0x4adc01
mov eax, dword [ebp - 0xc]
mov byte [eax + 3], 6
lea eax, [ebp - 8]
call fcn.004ada14
test al, al
je 0x4adfae
mov eax, dword [ebp - 0xc]
add eax, 0x14
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x10
push eax
mov eax, dword [ebp - 0xc]
add eax, 0xc
push eax
mov eax, dword [ebp - 0xc]
add eax, 8
push eax
mov eax, dword [ebp - 0x24]
push eax
call fcn.004077cc
xor eax, eax
push ebp
push 0x4adcfa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 8
call fcn.00402f28
mov ebx, eax
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [0x5cf3b4]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x28], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x2c], edx
mov edx, 8
mov eax, ebx
call fcn.00402f44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4add40
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x18
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
call fcn.004078d4
test eax, eax
je 0x4ae013
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x28]
call fcn.00405028
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0xc]
add eax, 0x30
mov ecx, 0xff
call fcn.004050e8
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x2c]
call fcn.00405028
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0xc]
add eax, 0x230
mov ecx, 0xff
call fcn.004050e8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
xor edx, edx
push edx
push eax
lea edx, [ebp - 4]
mov eax, 8
call fcn.0040a570
lea eax, [ebp - 0x50]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405344
push dword [ebp - 0x50]
push 0x4ae080
lea eax, [ebp - 0x54]
push eax
mov ecx, 4
mov edx, 5
mov eax, dword [ebp - 4]
call fcn.00405344
push dword [ebp - 0x54]
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.004051e0
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0xc]
add eax, 0x130
mov ecx, 0xff
call fcn.004050e8
mov eax, dword [ebp - 0x38]
and eax, 1
cmp eax, 1
jne 0x4ade3e
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 4]
or ax, word [0x4ae084]
mov edx, dword [ebp - 0xc]
mov word [edx + 4], ax
mov eax, dword [ebp - 0x38]
and eax, 2
cmp eax, 2
jne 0x4ade5e
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 4]
or ax, word [0x4ae088]
mov edx, dword [ebp - 0xc]
mov word [edx + 4], ax
mov eax, dword [ebp - 0x38]
and eax, 4
cmp eax, 4
jne 0x4ade7e
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 4]
or ax, word [0x4ae08c]
mov edx, dword [ebp - 0xc]
mov word [edx + 4], ax
mov eax, dword [ebp - 0x38]
and eax, 8
cmp eax, 8
jne 0x4ade9e
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 4]
or ax, word [0x4ae090]
mov edx, dword [ebp - 0xc]
mov word [edx + 4], ax
mov eax, dword [ebp - 0x38]
and eax, 0x8000
cmp eax, 0x8000
jne 0x4adec2
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 4]
or ax, word [0x4ae094]
mov edx, dword [ebp - 0xc]
mov word [edx + 4], ax
mov eax, dword [ebp - 0x38]
and eax, 0x10
cmp eax, 0x10
jne 0x4adee2
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 4]
or ax, word [0x4ae098]
mov edx, dword [ebp - 0xc]
mov word [edx + 4], ax
cmp dword [ebp - 0x30], 0xff
jne 0x4adf00
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 4]
or ax, word [0x4ae09c]
mov edx, dword [ebp - 0xc]
mov word [edx + 4], ax
mov eax, dword [ebp - 0x38]
and eax, 0x20
cmp eax, 0x20
jne 0x4adf20
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 4]
or ax, word [0x4ae0a0]
mov edx, dword [ebp - 0xc]
mov word [edx + 4], ax
mov eax, dword [ebp - 0x38]
and eax, 0x40
cmp eax, 0x40
jne 0x4adf40
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 4]
or ax, word [0x4ae0a4]
mov edx, dword [ebp - 0xc]
mov word [edx + 4], ax
mov eax, dword [ebp - 0x38]
and eax, 0x80
cmp eax, 0x80
jne 0x4adf64
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 4]
or ax, word [0x4ae0a8]
mov edx, dword [ebp - 0xc]
mov word [edx + 4], ax
mov eax, dword [ebp - 0x38]
and eax, 0x100
cmp eax, 0x100
jne 0x4adf88
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 4]
or ax, word [0x4ae0ac]
mov edx, dword [ebp - 0xc]
mov word [edx + 4], ax
mov eax, dword [ebp - 0x38]
and eax, 0x200
cmp eax, 0x200
jne 0x4ae013
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 4]
or ax, word [0x4ae0b0]
mov edx, dword [ebp - 0xc]
mov word [edx + 4], ax
jmp 0x4ae013
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x30], 0
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x130], 0
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x230], 0
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x18], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae040
mov eax, dword [ebp - 0x28]
call fcn.0040b51c
mov eax, dword [ebp - 0x2c]
call fcn.0040b51c
mov eax, dword [ebp - 0x24]
call fcn.0040b51c
ret