Function at 0x40eefc
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x24
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
xor ebx, ebx
push esi
cmp ecx, 5
jne 0x40ef35
cmp eax, ebx
jne 0x40ef35
mov esi, str.boot:
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov ecx, dword [ebp + 0xc]
push eax
push esi
call fcn.0043b835
xor eax, eax
jmp 0x40f106
cmp ecx, 6
jne 0x40f101
cmp eax, ebx
jne 0x40f101
push edi
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0044b7c5
call fcn.0043c5cd
push eax
lea ecx, [ebp - 4]
call fcn.0043ac50
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 4]
jmp 0x40f042
mov ecx, dword [eax]
call fcn.0044b5a0
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x40f034
lea edx, [ebp - 4]
mov ecx, edi
call fcn.0044b617
mov esi, dword [ebp - 4]
test eax, eax
jne 0x40f034
cmp dword [esi - 4], 1
jle 0x40efaf
push dword [esi - 0xc]
lea ecx, [ebp - 4]
call fcn.0043abd1
mov esi, dword [ebp - 4]
cmp dword [esi], ebx
jne 0x40f010
mov edx, dword [ebp + 8]
cmp dword [edx + 0x24], 1
jne 0x40f034
mov eax, dword [esi + 8]
cmp eax, dword [edx + 0x28]
jne 0x40f034
mov ecx, ebx
mov dword [ebp - 4], ecx
cmp ecx, dword [esi + 4]
je 0x40f0e1
lea eax, [esi + 0x38]
mov dword [ebp + 8], eax
cmp dword [eax - 8], 5
je 0x40effd
cmp dword [eax - 8], 0xf
je 0x40effd
mov eax, dword [eax]
cmp eax, dword [edx + 0x10]
mov eax, dword [ebp + 8]
jne 0x40effd
mov eax, dword [eax + 4]
cmp eax, dword [edx + 0x14]
je 0x40f08e
mov eax, dword [ebp + 8]
inc ecx
add eax, 0x90
mov dword [ebp - 4], ecx
mov dword [ebp + 8], eax
cmp ecx, dword [esi + 4]
jne 0x40efd8
jmp 0x40f08e
cmp dword [esi], 1
jne 0x40f034
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], ebx
jne 0x40f034
add eax, 0x28
push 0x10
push eax
lea eax, [esi + 8]
push eax
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
je 0x40f053
lea ecx, [ebp - 8]
call fcn.0043ab9a
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp - 0x14]
jne 0x40ef71
jmp 0x40f0e9
mov ecx, ebx
mov dword [ebp - 4], ecx
cmp dword [esi + 4], ebx
je 0x40f08e
mov edi, dword [ebp + 8]
lea ebx, [esi + 0x60]
add edi, 0x10
push 0x10
push edi
push ebx
call dword [sym.imp.msvcrt.dll_memcmp]
mov ecx, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x40f089
inc ecx
add ebx, 0x90
mov dword [ebp - 4], ecx
cmp ecx, dword [esi + 4]
jne 0x40f066
mov edi, dword [ebp - 8]
xor ebx, ebx
cmp ecx, dword [esi + 4]
je 0x40f0e1
push ebx
lea eax, [ebp + 8]
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40f0b9
call fcn.0044bc4b
mov ebx, eax
jmp 0x40f0d7
imul eax, dword [ebp - 4], 0x90
push dword [eax + esi + 0x48]
push dword [ebp - 0x20]
push str._GLOBALROOTDeviceHarddisk_uPartition_u
push dword [ebp + 0xc]
call fcn.0043b543
add esp, 0x10
lea ecx, [ebp - 8]
call fcn.0043ab9a
jmp 0x40f0ec
lea ecx, [ebp - 8]
call fcn.0043ab9a
push 3
pop ebx
lea ecx, [esi - 0x10]
call fcn.0043c924
lea ecx, [ebp - 0x18]
call fcn.00430989
mov eax, ebx
pop edi
jmp 0x40f106
mov eax, 0x80004002
pop esi
pop ebx
leave
ret 8