Function at 0x420b30
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0x50]
sub esp, 0x50
push 0xffffffffffffffff
push 0x4a66ab
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x553d70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp + 0x48], esi
mov eax, dword [ebp + 0x5c]
xor edi, edi
cmp dword [ebp + 0x70], 8
mov dword [ebp - 4], edi
jae 0x420b76
lea eax, [ebp + 0x5c]
push edi
push edi
push 3
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esi + 0x30]
mov dword [ecx], eax
mov eax, dword [esi + 0x30]
cmp dword [eax], 0xffffffff
jne 0x420be7
lea edx, [ebp + 0x58]
push edx
lea eax, [ebp + 0x20]
push str.Cant_open_disk:
push eax
call fcn.0046dd30
add esp, 0xc
push 0xffffffffffffffff
xor ecx, ecx
push edi
mov word [ebp + 8], cx
push eax
lea ecx, [ebp + 4]
mov byte [ebp - 4], 1
mov dword [ebp], vtable.TMFS_Exception.0
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], edi
call fcn.00469120
push 0x4d9024
lea edx, [ebp]
push edx
mov dword [ebp], vtable.TMFS_Exception_Media.0
call fcn.004951ab
push edi
lea ecx, [ebp + 0x44]
push ecx
push 0x18
lea edx, [ebp + 0x24]
push edx
push edi
push edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov eax, dword [eax]
push 0x70000
push eax
mov dword [ebp + 0x4c], 0x200
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x420c7c
lea ecx, [ebp + 0x58]
push ecx
lea edx, [ebp - 0x4c]
push 0x4b1480
push edx
call fcn.0046dd30
add esp, 0xc
push 0xffffffffffffffff
xor ecx, ecx
push edi
mov word [ebp - 0x28], cx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
mov dword [ebp - 0x30], vtable.TMFS_Exception.0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
call fcn.00469120
push 0x4d9024
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], vtable.TMFS_Exception_Media.0
call fcn.004951ab
mov dword [ebp - 4], 0
mov eax, 0x420c75
ret
mov ebx, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x30]
mov eax, ebx
mul dword [ebp + 0x34]
push edi
push ecx
push edx
push eax
call fcn.00494a10
mov ecx, dword [ebp + 0x28]
push ecx
mov ecx, dword [ebp + 0x24]
push ecx
push edx
push eax
call fcn.00494a10
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
mov dword [ebp + 0x4c], ebx
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x30]
push edi
lea edx, [ebp + 0x44]
push edx
mov edx, dword [ecx]
push 8
lea eax, [ebp + 0x3c]
push eax
push edi
push edi
push 0x7405c
push edx
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x420d13
lea eax, [ebp + 0x58]
push eax
lea ecx, [ebp - 0x4c]
push str.Cant_get_disk_size:
push ecx
call fcn.0046dd30
add esp, 0xc
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 6
call fcn.0046c760
push 0x4d9024
lea edx, [ebp - 0x6c]
push edx
call fcn.004951ab
mov dword [ebp - 4], 0
mov eax, 0x420d0e
ret
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x40]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ecx
mov dword [ebp - 4], edi
mov edx, dword [ebp + 0x4c]
push edx
mov ecx, esi
call fcn.0041f280
lea ecx, [ebp + 0x58]
call fcn.00466e70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x50
mov esp, ebp
pop ebp
ret 0x1c