Function at 0x46df68
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd0
mov byte [esp], dl
mov ebx, eax
mov edi, 0x669908
imul ebp, ebx, 0x299
mov eax, dword [edi]
cmp byte [eax + ebp*8 + 0x1415], 0
je 0x46df95
cmp byte [esp], 0
je 0x46e244
mov eax, ebx
call fcn.0046de80
cmp eax, 5
jne 0x46dfb0
mov eax, dword [edi]
mov byte [eax + ebp*8 + 0x1415], 0
jmp 0x46e244
mov eax, ebx
call fcn.0046dc2c
mov esi, eax
cmp esi, 0xffffffff
je 0x46e244
mov eax, dword [edi]
lea eax, [eax + ebp*8 + 0x1416]
xor ecx, ecx
mov edx, 0x90
call fcn.004032f4
lea eax, [esp + 0x10]
xor ecx, ecx
mov edx, 0x20
call fcn.004032f4
mov eax, dword [0x66d7e4]
cmp dword [eax + 4], 5
jb 0x46e036
push 0
lea eax, [esp + 8]
push eax
push 0x90
imul eax, ebx, 0x299
mov edx, dword [edi]
lea eax, [edx + eax*8 + 0x1416]
push eax
push 0
push 0
push 0x70048
push esi
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x46e036
imul eax, ebx, 0x299
mov edx, dword [edi]
mov byte [edx + eax*8 + 0x1415], 1
jmp 0x46e23d
push 0
lea eax, [esp + 8]
push eax
push 0x20
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x74004
push esi
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x46e0fd
imul eax, ebx, 0x299
mov edx, dword [edi]
xor ecx, ecx
mov dword [edx + eax*8 + 0x1416], ecx
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov dword [edx + eax*8 + 0x141e], ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + eax*8 + 0x1422], ecx
mov edx, dword [edi]
mov ecx, dword [esp + 0x18]
mov dword [edx + eax*8 + 0x1426], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edx + eax*8 + 0x142a], ecx
mov edx, dword [edi]
mov ecx, dword [esp + 0x24]
mov dword [edx + eax*8 + 0x142e], ecx
mov edx, dword [edi]
movzx ecx, byte [esp + 0x2b]
mov dword [edx + eax*8 + 0x1432], ecx
mov edx, dword [edi]
movzx ecx, byte [esp + 0x28]
mov byte [edx + eax*8 + 0x1436], cl
mov edx, dword [edi]
movzx ecx, byte [esp + 0x29]
mov byte [edx + eax*8 + 0x1437], cl
mov edx, dword [edi]
movzx ecx, byte [esp + 0x2a]
mov byte [edx + eax*8 + 0x1438], cl
mov edx, dword [edi]
mov ecx, dword [esp + 0x20]
mov dword [edx + eax*8 + 0x143a], ecx
mov edx, dword [edi]
mov byte [edx + eax*8 + 0x1415], 1
jmp 0x46e23d
push 0
lea eax, [esp + 8]
push eax
push 8
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x7405c
push esi
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x46e1b3
imul eax, ebx, 0x299
mov edx, dword [edi]
mov dword [edx + eax*8 + 0x1416], 2
mov edx, dword [edi]
xor ecx, ecx
mov dword [edx + eax*8 + 0x141e], ecx
mov edx, dword [edi]
xor ecx, ecx
mov dword [edx + eax*8 + 0x1422], ecx
mov edx, dword [edi]
mov ecx, dword [esp + 8]
mov dword [edx + eax*8 + 0x1426], ecx
mov ecx, dword [esp + 0xc]
mov dword [edx + eax*8 + 0x142a], ecx
mov edx, dword [edi]
mov dword [edx + eax*8 + 0x142e], 0xffffffff
mov edx, dword [edi]
xor ecx, ecx
mov dword [edx + eax*8 + 0x1432], ecx
mov edx, dword [edi]
mov byte [edx + eax*8 + 0x1436], 0
mov edx, dword [edi]
mov byte [edx + eax*8 + 0x1437], 0
mov edx, dword [edi]
mov byte [edx + eax*8 + 0x1438], 0
mov edx, dword [edi]
xor ecx, ecx
mov dword [edx + eax*8 + 0x143a], ecx
mov edx, dword [edi]
mov byte [edx + eax*8 + 0x1415], 1
jmp 0x46e23d
imul eax, ebx, 0x299
mov edx, dword [edi]
mov dword [edx + eax*8 + 0x1416], 2
mov edx, dword [edi]
xor ecx, ecx
mov dword [edx + eax*8 + 0x141e], ecx
mov edx, dword [edi]
xor ecx, ecx
mov dword [edx + eax*8 + 0x1422], ecx
mov edx, dword [edi]
xor ecx, ecx
mov dword [edx + eax*8 + 0x1426], ecx
mov edx, dword [edi]
xor ecx, ecx
mov dword [edx + eax*8 + 0x142a], ecx
mov edx, dword [edi]
mov dword [edx + eax*8 + 0x142e], 0xffffffff
mov edx, dword [edi]
xor ecx, ecx
mov dword [edx + eax*8 + 0x1432], ecx
mov edx, dword [edi]
mov byte [edx + eax*8 + 0x1436], 0
mov edx, dword [edi]
mov byte [edx + eax*8 + 0x1437], 0
mov edx, dword [edi]
mov byte [edx + eax*8 + 0x1438], 0
mov edx, dword [edi]
xor ecx, ecx
mov dword [edx + eax*8 + 0x143a], ecx
mov edx, dword [edi]
mov byte [edx + eax*8 + 0x1415], 1
mov eax, ebx
call fcn.0046da64
add esp, 0x30
pop ebp
pop edi
pop esi
pop ebx
ret