Function at 0x10029350
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20b4
call fcn.10010620
mov eax, dword [0x10048024]
xor eax, ebp
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20a8], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xffffffff
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0xffffffff
mov dword [ecx + 4], 0xffffffff
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 1
call sym.Comn.dll_GetObjectSyl
mov dword [ebp - 0x24], eax
jmp 0x100293a7
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0x20
jge 0x1002947d
mov dword [ebp - 0x28], 0
jmp 0x100293c3
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x80
jg 0x10029470
mov word [ebp - 0x2030], 0
push 0xffe
push 0
lea ecx, [ebp - 0x202e]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov word [ebp - 0x1030], 0
push 0xffe
push 0
lea edx, [ebp - 0x102e]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push str.DeviceHarddisk_dPartition_d
lea edx, [ebp - 0x2030]
push edx
call dword [sym.imp.MSVCR80.dll__swprintf]
add esp, 0x10
lea eax, [ebp - 0x2030]
push eax
push 0x800
lea ecx, [ebp - 0x1030]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24]
mov edx, dword [eax]
call edx
lea eax, [ebp - 0x1030]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntdll.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x1002946b
mov dword [ebp - 0x28], 1
jmp 0x10029470
jmp 0x100293ba
cmp dword [ebp - 0x28], 0
je 0x10029478
jmp 0x1002947d
jmp 0x1002939e
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10028f50
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x10029540
mov word [ebp - 0x2070], 0
push 0x3e
push 0
lea edx, [ebp - 0x206e]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
push 0x1003daf8
lea ecx, [ebp - 0x2070]
push ecx
call dword [sym.imp.MSVCR80.dll__swprintf]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea edx, [ebp - 0x2070]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x10029540
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x20ac], eax
mov eax, dword [ebp - 0x14]
push eax
push 0x665
push 0x1003db20
call fcn.10026ad0
add esp, 8
push eax
push str._s:_Failed_to_open_disk:__d
mov ecx, dword [ebp - 0x20ac]
push ecx
mov edx, dword [ebp - 0x20ac]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
add esp, 0x10
xor eax, eax
jmp 0x10029870
mov dword [ebp - 0x18], 0x4028
mov edx, dword [ebp - 0x18]
push edx
call fcn.1000f66d
add esp, 4
mov dword [ebp - 0x208c], eax
mov eax, dword [ebp - 0x208c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0
push 0
push 0x7400c
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10029771
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x2090], ecx
mov edx, dword [ebp - 0x2090]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 0x18], 0x40c0
mov eax, dword [ebp - 0x18]
push eax
call fcn.1000f66d
add esp, 4
mov dword [ebp - 0x2094], eax
mov ecx, dword [ebp - 0x2094]
mov dword [ebp - 0x2078], ecx
mov edx, dword [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 0x2078]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x2078]
push eax
push 0
push 0
push 0x70050
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
jne 0x1002968e
mov eax, dword [ebp - 0x2078]
mov dword [ebp - 0x2098], eax
mov ecx, dword [ebp - 0x2098]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x20b0], eax
push 0x68d
push 0x1003db48
call fcn.10026ad0
add esp, 8
push eax
push str._s:_Failed_to_IOCTL_DISK_GET_DRIVE_LAYOUTEX.
mov edx, dword [ebp - 0x20b0]
push edx
mov eax, dword [ebp - 0x20b0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
add esp, 0xc
xor eax, eax
jmp 0x10029870
mov eax, dword [ebp - 0x2078]
mov dword [ebp - 0x2074], eax
mov dword [ebp - 0x207c], 0
jmp 0x100296b5
mov ecx, dword [ebp - 0x207c]
add ecx, 1
mov dword [ebp - 0x207c], ecx
mov edx, dword [ebp - 0x2074]
mov eax, dword [ebp - 0x207c]
cmp eax, dword [edx + 4]
jae 0x1002974c
mov ecx, dword [ebp - 0x207c]
imul ecx, ecx, 0x90
mov edx, dword [ebp - 0x2074]
lea eax, [edx + ecx + 0x30]
mov dword [ebp - 0x2080], eax
mov ecx, dword [ebp - 0x2080]
mov edx, dword [ecx + 0x18]
cmp edx, dword [ebp - 0x1c]
jne 0x10029747
mov eax, dword [ebp - 0x2080]
push 0
push 0x200
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [eax + 8]
push edx
call sub.ntdll.dll__alldiv
xor ecx, ecx
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x2074]
cmp dword [eax], 1
jne 0x10029745
mov ecx, dword [ebp - 0x2080]
push 0
push 0x200
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ecx + 8]
push eax
call sub.ntdll.dll__alldiv
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x1002974c
jmp 0x100296a6
mov edx, dword [ebp - 0x2078]
mov dword [ebp - 0x209c], edx
mov eax, dword [ebp - 0x209c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, 1
jmp 0x10029870
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
jne 0x100297da
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20a0], edx
mov eax, dword [ebp - 0x20a0]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x20b4], eax
push 0x6aa
push 0x1003db84
call fcn.10026ad0
add esp, 8
push eax
push str._s:_Failed_to_IOCTL_DISK_GET_DRIVE_LAYOUT.
mov ecx, dword [ebp - 0x20b4]
push ecx
mov edx, dword [ebp - 0x20b4]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
add esp, 0xc
xor eax, eax
jmp 0x10029870
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov dword [ebp - 0x2084], 0
jmp 0x100297fb
mov eax, dword [ebp - 0x2084]
add eax, 1
mov dword [ebp - 0x2084], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x2084]
cmp edx, dword [ecx]
jae 0x10029853
mov eax, dword [ebp - 0x2084]
shl eax, 5
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 8]
mov dword [ebp - 0x2088], edx
mov eax, dword [ebp - 0x2088]
mov ecx, dword [eax + 0x14]
cmp ecx, dword [ebp - 0x1c]
jne 0x10029851
mov edx, dword [ebp - 0x2088]
push 0
push 0x200
mov eax, dword [edx + 4]
push eax
mov ecx, dword [edx]
push ecx
call sub.ntdll.dll__alldiv
xor edx, edx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x10029853
jmp 0x100297ec
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20a4], edx
mov eax, dword [ebp - 0x20a4]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.1000f672
mov esp, ebp
pop ebp
ret 0xc