Function at 0x408202
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10094
call fcn.004238d0
mov eax, dword [0x43b028]
xor eax, esp
mov dword [esp + 0x10090], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x31e500
xor ebx, ebx
mov esi, ecx
push ebx
push esi
mov dword [esp + 0x34], eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x20
mov eax, esi
pop edi
or dword [eax], 0xffffffff
lea ecx, [eax + 0xb28]
mov edx, 0x100
or dword [ecx], 0xffffffff
add ecx, 0x184
dec edx
jne 0x408250
add eax, 0x18f28
dec edi
jne 0x408242
add esi, 8
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], esi
movzx edi, byte [esp + 0xc]
push edi
push str..PhysicalDrive_d
lea eax, [esp + 0x6c]
push 0x1a
push eax
call dword [sym.imp.MSVCR90.dll_swprintf_s]
add esp, 0x10
push ebx
push 0x8000000
push 3
push ebx
push 3
push 0xc0000000
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x408455
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0x18
lea ecx, [esp + 0x54]
push ecx
push ebx
push ebx
push 0x70000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4082da
push dword [esp + 0x14]
jmp 0x40844f
lea eax, [esi - 8]
mov dword [eax], edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
mov dword [esi - 4], eax
mov eax, dword [esp + 0x58]
mov dword [esi], eax
mov eax, dword [esp + 0x54]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [esi + 0xc], eax
push ebx
xor eax, eax
mov dword [esp + 0x24], ebx
lea edi, [esp + 0x28]
stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
push 8
lea eax, [esp + 0x2c]
push eax
push ebx
push ebx
push 0x7405c
push dword [esp + 0x30]
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x340], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [esp + 0x20]
push dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
push dword [esp + 0x18]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x2c], eax
call fcn.00407f41
pop ecx
pop ecx
push 6
pop ecx
push ebx
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
push 0x18
lea eax, [esp + 0x38]
push eax
push ebx
push ebx
push 0x74080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
jne 0x4083a3
mov ecx, dword [esp + 0x10]
push edi
xor edx, edx
mov dword [esi + 0x444], ebx
call fcn.00407136
pop ecx
push ebx
push ebx
jmp 0x408443
mov ecx, dword [esp + 0x30]
or ecx, 4
neg ecx
sbb ecx, ecx
neg ecx
mov dword [esi + 0x444], ecx
cmp ecx, 1
jne 0x40841b
mov dl, byte [esp + 0xc]
mov ebx, edi
call fcn.0040886f
test eax, eax
je 0x40848a
mov dl, byte [esp + 0xc]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x9c]
push eax
push edi
lea esi, [esp + 0x38]
call fcn.004088f2
add esp, 0xc
test eax, eax
je 0x408486
mov eax, dword [esp + 0x18]
push dword [esp + 0xc]
mov dword [eax + 0x444], 1
add eax, 0xb20
push eax
mov ecx, edi
call fcn.00407b5a
mov esi, dword [esp + 0x20]
pop ecx
pop ecx
xor ebx, ebx
cmp eax, ebx
je 0x40848c
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xa8]
call fcn.00406d16
push edi
call fcn.00407136
pop ecx
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, dword [esp + 0x18]
call fcn.00407814
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esp + 0xc]
add esi, 0x18f28
cmp dword [esp + 0xc], 0x20
mov dword [esp + 0x18], esi
jb 0x40826f
mov ecx, dword [esp + 0x1009c]
pop edi
pop esi
xor eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.00423038
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x18]
xor ebx, ebx
lea eax, [esp + 0xa8]
push eax
push edi
call fcn.004084d9
pop ecx
pop ecx
cmp eax, ebx
je 0x4084c6
push dword [esp + 0xc]
lea eax, [esi + 0xb20]
push eax
mov ecx, edi
mov dword [esi + 0x444], 1
call fcn.00407b5a
pop ecx
pop ecx
cmp eax, ebx
jne 0x40841f
mov ecx, dword [esp + 0x10]
push edi
xor edx, edx
call fcn.00407136
pop ecx
push ebx
jmp 0x40843e