Function at 0x403424
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x45b480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], esi
push edi
cmp edx, 5
jne 0x40346c
cmp eax, ebx
jne 0x40346c
mov edi, str.boot:
mov ecx, edi
call fcn.00401f04
push eax
push edi
mov ecx, esi
call fcn.00402120
xor eax, eax
jmp 0x403681
cmp edx, 6
jne 0x40367c
cmp eax, ebx
jne 0x40367c
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.00413dd9
call fcn.00402506
push eax
lea ecx, [ebp - 0x14]
call fcn.00402331
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
jmp 0x403501
mov ecx, dword [eax]
call fcn.00413f7e
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, 0xffffffff
je 0x4034f3
lea edx, [ebp - 0x14]
mov ecx, edi
call fcn.00413ffd
mov esi, dword [ebp - 0x14]
test eax, eax
jne 0x4034f3
cmp dword [esi - 4], 1
jle 0x4034da
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00402726
mov esi, dword [ebp - 0x14]
cmp dword [esi], ebx
jne 0x40350e
mov edx, dword [ebp + 8]
cmp dword [edx + 0x24], 1
jne 0x4034f3
mov eax, dword [esi + 8]
cmp eax, dword [edx + 0x28]
je 0x40359b
lea ecx, [ebp - 0x1c]
call fcn.00411dea
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x24]
jne 0x4034a4
jmp 0x403641
cmp dword [esi], 1
jne 0x4034f3
mov edx, dword [ebp + 8]
cmp dword [edx + 0x24], ebx
jne 0x4034f3
mov ecx, ebx
mov eax, dword [esi + ecx*4 + 8]
cmp eax, dword [edx + ecx*4 + 0x28]
jne 0x4034f3
inc ecx
cmp ecx, 4
jne 0x40351d
mov eax, dword [esi + 4]
mov ecx, ebx
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x403566
lea edi, [esi + 0x60]
mov eax, ebx
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x18]
mov eax, dword [edi + eax*4]
cmp eax, dword [edx + ecx*4 + 0x10]
mov ecx, dword [ebp - 0x14]
jne 0x4035f7
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 4
jne 0x403541
mov eax, dword [esi + 4]
mov edi, dword [ebp - 0x1c]
cmp ecx, eax
je 0x403639
push ebx
lea eax, [ebp - 0x2c]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x403611
call fcn.0041390d
mov ebx, eax
jmp 0x40362f
mov eax, dword [esi + 4]
mov ecx, ebx
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x403566
lea ecx, [esi + 0x38]
mov dword [ebp - 0x18], ecx
mov ecx, ebx
mov edx, dword [ebp - 0x18]
mov edx, dword [edx - 8]
cmp edx, 5
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp + 8]
je 0x4035e3
cmp dword [ebp - 0x2c], 0xf
je 0x4035e3
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp eax, dword [edx + 0x10]
jne 0x4035e0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
cmp eax, dword [edx + 0x14]
mov eax, dword [esi + 4]
je 0x403566
jmp 0x4035e3
mov eax, dword [esi + 4]
add dword [ebp - 0x18], 0x90
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, eax
jne 0x4035af
jmp 0x403566
mov eax, dword [esi + 4]
inc ecx
add edi, 0x90
mov dword [ebp - 0x14], ecx
cmp ecx, eax
jne 0x40353c
jmp 0x403563
imul eax, dword [ebp - 0x14], 0x90
push dword [eax + esi + 0x48]
push dword [ebp - 0xc]
push str._GLOBALROOTDeviceHarddisk_uPartition_u
push dword [ebp - 0x30]
call fcn.00401bf0
add esp, 0x10
lea ecx, [ebp - 0x1c]
call fcn.00411dea
jmp 0x403644
lea ecx, [ebp - 0x1c]
call fcn.00411dea
push 3
pop ebx
lea ecx, [esi - 0x10]
call fcn.004025d7
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x403678
mov esi, edi
jmp 0x403664
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.004025d7
add esi, 4
cmp esi, dword [ebp - 0x24]
jne 0x403657
mov edx, dword [ebp - 0x20]
mov ecx, edi
sub edx, edi
and edx, 0xfffffffc
call fcn.00401abc
mov eax, ebx
jmp 0x403681
mov eax, 0x80004002
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004488a4
leave
ret 8