Function at 0x4636ad
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
xor eax, eax
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov byte [ebp - 1], 0
setge al
mov byte [ebp - 2], 0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x463705
xor ecx, ecx
mov cx, word [eax]
cmp cx, di
je 0x463705
cmp word [eax + 2], 0x3a
mov byte [ebp - 1], 1
jne 0x4636ef
mov dword [ebp - 0x20], ecx
jmp 0x463705
push 1
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.00453fac
add esp, 0xc
mov byte [ebp - 2], 2
push 0x20c84c
lea ecx, [ebp - 0x14]
call fcn.00444e15
mov eax, dword [ebp - 0x14]
add eax, 0x200010
lea esi, [eax + 0xc000]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x30], edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
push str..PhysicalDrive_d
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
push 0x22000000
push 3
push edi
push 3
push 0x80000000
push esi
lea ecx, [ebp - 8]
call fcn.00405c00
mov ebx, dword [ebp - 8]
cmp ebx, edi
je 0x4639db
push edi
lea eax, [ebp - 0x30]
push eax
push 0xc
add esi, 0x820
push esi
push edi
push edi
push 0x2d1080
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x463787
mov dword [esi], edi
push 0x200
push ebx
call fcn.00442116
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0xc], edi
push ebx
call fcn.00442513
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x4639db
cmp dword [esi], 1
sete byte [ebp + 0x13]
cmp byte [ebp + 0x13], 0
je 0x4637df
mov eax, dword [ebp - 0x14]
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x10]
add eax, 0x200010
push dword [esi + 0x28]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00449ca0
add esp, 0x24
add esi, 0x30
xor ebx, ebx
cmp dword [ebp - 0xc], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x18], edi
jle 0x4639db
add esi, 0x20
mov al, byte [ebp + 0x13]
test al, al
jne 0x463814
cmp byte [esi], 0x42
je 0x4638ae
jmp 0x463881
push 0x10
push 0x4c898c
push esi
call fcn.0043e88e
add esp, 0xc
test eax, eax
jne 0x463848
mov eax, dword [ebp - 0x10]
mov edi, dword [esi - 0x18]
mov ebx, dword [esi - 0x14]
mov ecx, dword [esi - 0x10]
cdq
add edi, eax
adc ebx, edx
sub ecx, eax
mov eax, dword [esi - 0xc]
sbb eax, edx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
jmp 0x463873
push 0x10
push 0x4c899c
push esi
call fcn.0043e88e
add esp, 0xc
test eax, eax
jne 0x463873
mov eax, dword [ebp - 0x10]
cdq
push edx
push eax
push dword [esi - 0x14]
push dword [esi - 0x18]
call fcn.004ae880
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
mov eax, edi
or eax, ebx
je 0x463881
mov eax, dword [ebp - 0x3c]
or eax, dword [ebp - 0x38]
jne 0x46389b
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
add esi, 0x90
cmp eax, dword [ebp - 0xc]
jl 0x463802
jmp 0x4639d9
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x44]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x40]
mov dword [eax + 4], ecx
xor eax, eax
mov al, byte [ebp + 0x13]
push 0
push dword [ebp - 0x38]
and eax, 1
push dword [ebp - 0x3c]
or eax, dword [ebp - 0x10]
push ebx
push edi
push eax
push dword [ebp - 0x1c]
push dword [ebp - 8]
call fcn.0044a08d
mov edi, eax
add esp, 0x20
test edi, edi
mov dword [ebp - 0xc], edi
jle 0x4639d9
mov esi, dword [ebp - 0x24]
imul eax, eax, 0xb4
mov ebx, dword [ebp + 0xc]
lea eax, [eax + esi + 0x80]
push eax
mov ecx, ebx
call fcn.00444e3a
mov ebx, dword [ebx]
and dword [ebp + 0x10], 0
add ebx, esi
test edi, edi
mov dword [ebp - 0x18], ebx
mov esi, ebx
jle 0x4639d4
mov edi, dword [ebp - 0x1c]
add edi, 0x40
cmp byte [ebp - 1], 0
je 0x463943
mov eax, dword [ebp - 0x20]
test ax, ax
je 0x463923
cmp ax, word [edi]
je 0x463943
cmp byte [ebp - 2], 0
je 0x4639bf
push 0x10
lea eax, [edi - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0043e88e
add esp, 0xc
test eax, eax
jne 0x4639bf
movzx eax, byte [edi - 0x20]
mov dword [ebp - 0x1c], eax
mov ax, word [edi]
test ax, ax
je 0x463957
movzx eax, ax
jmp 0x46395a
push 0x2a
pop eax
push 4
pop ebx
mov dword [esi], eax
push 0x10
lea eax, [edi - 0x10]
push eax
add esi, ebx
push esi
call fcn.004145c5
mov eax, dword [ebp + 8]
add esi, 0x10
mov dword [esi], eax
mov eax, dword [edi - 0x28]
add esi, ebx
mov dword [esi], eax
mov eax, dword [ebp - 0x2c]
add eax, 0x820
mov eax, dword [eax]
add esi, ebx
mov dword [esi], eax
mov eax, dword [ebp - 0x1c]
add esi, ebx
mov dword [esi], eax
mov eax, dword [edi - 0x38]
add esi, ebx
mov dword [esi], eax
mov eax, dword [edi - 0x34]
mov dword [esi + 4], eax
mov eax, dword [edi - 0x30]
add esi, 8
mov dword [esi], eax
mov eax, dword [edi - 0x2c]
add esp, 0xc
mov dword [esi + 4], eax
add esi, 8
inc dword [ebp - 0x28]
cmp word [ebp - 0x20], 0
jne 0x4639fc
mov ebx, dword [ebp - 0x18]
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
add edi, 0x90
cmp eax, dword [ebp - 0xc]
jl 0x463910
sub esi, ebx
add dword [ebp - 0x24], esi
xor edi, edi
cmp dword [ebp - 0x34], edi
lea ecx, [ebp - 8]
jne 0x463a09
inc dword [ebp + 8]
call fcn.00402cc5
cmp dword [ebp + 8], 0x3e80
jge 0x463a0e
mov esi, dword [ebp - 0x2c]
jmp 0x46372c
lea ecx, [ebp - 8]
call fcn.00402cc5
xor esi, esi
inc esi
jmp 0x463a11
call fcn.00402cc5
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
call fcn.0043e825
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret