Function at 0x1067214
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, dword [0x111124c]
mov ebx, 0x111124c
mov edi, 0x1006370
cmp esi, ebx
je 0x106725d
test byte [esi + 0x1c], 1
je 0x106725d
cmp byte [esi + 0x19], 4
jb 0x106725d
push edi
push 0x66
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.010189d0
mov esi, dword [0x111124c]
push 0x3c
lea eax, [ebp - 0x40]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x50], eax
cmp esi, ebx
je 0x106729f
test byte [esi + 0x1c], 1
je 0x106729f
cmp byte [esi + 0x19], 4
jb 0x106729f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push 0x67
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.010b50e3
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push 0x1006640
push 0x1e
push eax
call fcn.01025c69
xor esi, esi
add esp, 0x10
cmp eax, esi
mov dword [ebp - 0x44], eax
jge 0x10672f5
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10676d8
test byte [eax + 0x1c], 1
je 0x10676ba
cmp byte [eax + 0x19], 2
jb 0x10676ba
push dword [ebp - 0x44]
push edi
push 0x68
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x10676b5
push esi
push 0x2000000
push 3
push esi
push 3
push 0xc0000000
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x54], eax
cmp eax, 0xffffffff
jne 0x1067369
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x106732b
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x44], eax
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10676d8
test byte [eax + 0x1c], 1
je 0x10676ba
cmp byte [eax + 0x19], 2
jb 0x10676ba
push dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
push ecx
push edi
push 0x69
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x10676b5
mov dword [ebp - 0x4c], 0x4830
cmp dword [ebp - 0x48], esi
je 0x1067381
push dword [ebp - 0x48]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x48], esi
push dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
push 1
push eax
call fcn.0101aed5
cmp eax, esi
mov dword [ebp - 0x44], eax
jl 0x10673d4
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
push esi
push esi
push 0x70050
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1067400
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10673cb
cmp eax, 0xea
jne 0x1067661
add dword [ebp - 0x4c], 0x2400
jmp 0x1067370
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x1067698
test byte [eax + 0x1c], 1
je 0x1067698
cmp byte [eax + 0x19], 2
jb 0x1067698
push dword [ebp - 0x44]
push edi
push 0x6a
jmp 0x106768d
lea eax, [ebp - 0x50]
push eax
push 0x30
push dword [ebp - 0x4c]
call fcn.01065b9b
cmp eax, esi
mov dword [ebp - 0x44], eax
jge 0x106744c
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x1067440
test byte [eax + 0x1c], 1
je 0x1067440
cmp byte [eax + 0x19], 2
jb 0x1067440
push dword [ebp - 0x44]
push 0x30
push dword [ebp - 0x4c]
push edi
push 0x6c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0109bb0b
mov dword [ebp - 0x44], 0x80070216
jmp 0x1067698
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0x50]
xor edx, edx
mov esi, 0x90
div esi
cmp ecx, eax
jbe 0x1067491
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x1067485
test byte [eax + 0x1c], 1
je 0x1067485
cmp byte [eax + 0x19], 2
jb 0x1067485
push edi
push 0x6d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov dword [ebp - 0x44], 0x8000ffff
jmp 0x1067698
and dword [ebp - 0x50], 0
test ecx, ecx
jbe 0x1067609
mov ebx, dword [ebp - 0x48]
add ebx, 0x38
mov eax, dword [ebx - 8]
xor edx, edx
sub eax, edx
mov ecx, 0x111124c
je 0x1067578
dec eax
je 0x10674d1
push 0x1002394
push 0x765
push 0x10063ec
call fcn.0107b4be
jmp 0x10675ec
mov eax, dword [ebx]
cmp eax, dword [ebp + 0xc]
jne 0x1067521
mov eax, dword [ebx + 4]
cmp eax, dword [ebp + 0x10]
jne 0x1067521
mov byte [ebx + 0x14], 1
mov eax, dword [0x111124c]
cmp eax, ecx
je 0x1067510
test byte [eax + 0x1c], 1
je 0x1067510
cmp byte [eax + 0x19], 4
jb 0x1067510
push edx
push 1
push dword [ebx + 0x10]
push dword [ebp + 8]
push edi
push 0x70
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010b5115
lea edi, [ebx + 0x18]
mov esi, 0x1007134
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x10675ec
push 4
pop ecx
mov edi, 0x1007134
lea esi, [ebx + 0x18]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x10675ec
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10675ec
test byte [eax + 0x1c], 1
je 0x10675ec
cmp byte [eax + 0x19], 4
jb 0x10675ec
push 0
push 0
push dword [ebx + 0x10]
push dword [ebp + 8]
push 0x1006370
push 0x71
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010b5115
jmp 0x10675ec
mov eax, dword [ebx]
mov byte [ebx + 0x14], 1
cmp eax, dword [ebp + 0xc]
jne 0x10675bd
mov eax, dword [ebx + 4]
cmp eax, dword [ebp + 0x10]
jne 0x10675bd
mov eax, dword [0x111124c]
cmp eax, ecx
je 0x10675b7
test byte [eax + 0x1c], 1
je 0x10675b7
cmp byte [eax + 0x19], 4
jb 0x10675b7
push edx
push 1
push dword [ebx + 0x10]
push dword [ebp + 8]
push edi
push 0x6e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010b5115
mov byte [ebx + 0x19], 1
jmp 0x10675ec
mov eax, dword [0x111124c]
cmp eax, ecx
je 0x10675e8
test byte [eax + 0x1c], 1
je 0x10675e8
cmp byte [eax + 0x19], 4
jb 0x10675e8
push edx
push edx
push dword [ebx + 0x10]
push dword [ebp + 8]
push edi
push 0x6f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010b5115
mov byte [ebx + 0x19], 0
inc dword [ebp - 0x50]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x50]
add ebx, 0x90
mov edi, 0x1006370
cmp ecx, dword [eax + 4]
jb 0x10674a3
xor esi, esi
push esi
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
push 0x7c054
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1067698
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x106763e
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x44], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1067698
test byte [eax + 0x1c], 1
je 0x1067698
cmp byte [eax + 0x19], 2
jb 0x1067698
push dword [ebp - 0x44]
push edi
push 0x72
jmp 0x106768d
cmp eax, esi
jle 0x106766f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x44], eax
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x1067698
test byte [eax + 0x1c], 1
je 0x1067698
cmp byte [eax + 0x19], 2
jb 0x1067698
push dword [ebp - 0x44]
push edi
push 0x6b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
cmp dword [ebp - 0x48], 0
je 0x10676a7
push dword [ebp - 0x48]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x111124c
mov eax, dword [0x111124c]
cmp eax, ebx
je 0x10676d8
test byte [eax + 0x1c], 1
je 0x10676d8
cmp byte [eax + 0x19], 4
jb 0x10676d8
push edi
push 0x73
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x44]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 0xc