Function at 0x4132dc
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x118
push 0
push 0
dec ecx
jne 0x4132e4
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x413915
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00412e60
test al, al
jne 0x41331a
mov ecx, 0x413928
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00413278
jmp 0x4138ef
push 0x16
push 0
push 0
push 0x424570
call dword [0x424590]
mov dword [ebp - 8], eax
mov ecx, 0x413950
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00413278
mov eax, dword [ebp - 8]
cdq
cmp edx, 0
jne 0x41335f
cmp eax, 0xffffffff
jne 0x41335f
mov ecx, 0x413964
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00413278
jmp 0x4138ef
xor eax, eax
push ebp
push 0x4138e8
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x887], 0x1c
mov dword [ebp - 0x14], 0x7fe
mov dword [ebp - 0x18], 0x7fe
mov eax, pe_nt_image_headers32
call fcn.00402a38
mov dword [ebp - 0x34], eax
mov edx, pe_nt_image_headers32
mov eax, dword [ebp - 0x34]
call fcn.004067d4
mov dword [ebp - 0x6c], 0x1c
jmp 0x4138b6
inc dword [ebp - 0xc]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x86b]
push eax
lea eax, [ebp - 0x24]
push eax
push 0xc
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [0x424598]
test eax, eax
je 0x4138b6
mov ecx, 0x41397c
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00413278
lea eax, [ebp - 0x18]
push eax
push 0xff
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x1c
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [0x424598]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
push 0x413990
lea eax, [ebp - 0x8a0]
lea edx, [ebp - 0x86b]
mov ecx, 0x7ff
call fcn.0040464c
push dword [ebp - 0x8a0]
push 0x4139a0
lea eax, [ebp - 0x89c]
mov edx, 3
call fcn.0040475c
mov ecx, dword [ebp - 0x89c]
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00413278
mov byte [ebp - 0x45], 0
lea eax, [ebp - 0x887]
push eax
mov eax, dword [ebp - 0x28]
push eax
push 0x424570
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [0x42459c]
test eax, eax
jne 0x4134d4
lea eax, [ebp - 0x887]
push eax
mov eax, dword [ebp - 0x28]
push eax
push 0x424580
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [0x42459c]
test eax, eax
jne 0x4134d0
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x4e0
je 0x4138b6
cmp dword [ebp - 0x44], 0x103
je 0x4138b6
jmp 0x4134d4
mov byte [ebp - 0x45], 1
inc dword [ebp - 0x28]
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
lea eax, [ebp - 0x887]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [0x4245a0]
test eax, eax
jne 0x41351e
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x7a
jne 0x4138b6
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00405c8c
pop ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [eax], 5
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x887]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [0x4245a0]
test eax, eax
jne 0x41355d
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00405ca4
pop ecx
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x4138b6
mov ecx, 0x4139b0
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00413278
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x8a4]
mov edx, dword [ebp - 0x4c]
call fcn.004045d4
mov edx, dword [ebp - 0x8a4]
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.00413a78
xor eax, eax
push ebp
push 0x4138af
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x50], 0
je 0x41386b
push 0
push 0
push 3
push 0
push 3
push 0
mov eax, dword [ebp - 0x4c]
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x30], eax
mov ecx, 0x4139c8
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00413278
push 0
lea eax, [ebp - 0x20]
push eax
push 0xc
lea eax, [ebp - 0x894]
push eax
push 0
push 0
push 0x2d1080
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x41387a
push 0x413990
lea eax, [ebp - 0x8ac]
lea edx, [ebp - 0x86b]
mov ecx, 0x7ff
call fcn.0040464c
push dword [ebp - 0x8ac]
push 0x4139dc
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x8b0]
call fcn.0040a784
push dword [ebp - 0x8b0]
push 0x4139f0
mov eax, dword [ebp - 0x890]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x8b4]
call fcn.0040a784
push dword [ebp - 0x8b4]
lea eax, [ebp - 0x8a8]
mov edx, 6
call fcn.0040475c
mov ecx, dword [ebp - 0x8a8]
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00413278
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x41387a
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x10]
call fcn.00407b2c
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x890]
mov eax, dword [ebp - 4]
call fcn.00413c18
mov dword [ebp - 0x40], eax
cmp byte [ebp - 0x45], 0
je 0x413794
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 4], 5
jne 0x41385c
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x890]
jne 0x41385c
cmp dword [ebp - 0x40], 0
jne 0x413706
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x890]
mov eax, dword [ebp - 4]
call fcn.00413b64
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x10]
call fcn.00407df4
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x86b]
mov ecx, 0x7ff
call fcn.0040464c
mov eax, dword [ebp - 0x40]
add eax, 4
mov edx, dword [ebp - 0x4c]
call fcn.004045d4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x10]
call fcn.00407bd4
push 0x413a04
mov eax, dword [ebp - 0x3c]
push dword [eax]
push 0x413a18
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x8bc]
call fcn.0040a784
push dword [ebp - 0x8bc]
lea eax, [ebp - 0x8b8]
mov edx, 4
call fcn.0040475c
mov ecx, dword [ebp - 0x8b8]
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00413278
jmp 0x41385c
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 4], 2
jne 0x41385c
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x890]
jne 0x41385c
cmp dword [ebp - 0x40], 0
jne 0x4137d3
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x890]
mov eax, dword [ebp - 4]
call fcn.00413b64
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x14]
call fcn.00407df4
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x86b]
mov ecx, 0x7ff
call fcn.0040464c
mov eax, dword [ebp - 0x40]
add eax, 4
mov edx, dword [ebp - 0x4c]
call fcn.004045d4
push 0x413a2c
mov eax, dword [ebp - 0x3c]
push dword [eax]
push 0x413a40
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x8c4]
call fcn.0040a784
push dword [ebp - 0x8c4]
lea eax, [ebp - 0x8c0]
mov edx, 4
call fcn.0040475c
mov ecx, dword [ebp - 0x8c0]
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00413278
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x10]
call fcn.00407bd4
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0xffffffff
jne 0x413692
jmp 0x41387a
mov ecx, 0x413a54
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00413278
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413464
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00405ca4
pop ecx
xor eax, eax
mov dword [ebp - 0x2c], eax
mov ecx, 0x413a68
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00413278
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [0x424594]
test eax, eax
jne 0x4133b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4138ef
mov eax, dword [ebp - 8]
push eax
call dword [0x4245a4]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41391c
lea eax, [ebp - 0x8c4]
mov edx, 0xc
call fcn.004043f0
lea eax, [ebp - 0x50]
call fcn.004043cc
ret