Function at 0x4a7080
Capabilities:
Get disk information

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5015e8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd0
mov eax, dword [0x53b008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0xe0], eax
xor ecx, ecx
mov dword [ebp - 0xdc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movlpd qword [ebp - 0xd8], xmm0
mov word [eax], cx
mov dword [ebp - 4], ecx
xor eax, eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0xdc], 1
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov dword [ebp - 4], 1
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.004a6950
mov esi, dword [ebp - 0x20]
xor ecx, ecx
mov dword [ebp - 0xbc], ecx
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x1c]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4a73d0
mov eax, dword [ebp - 0xd4]
xor edi, edi
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0xc0], eax
add esi, edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov ecx, 0x7ffffffe
cmp dword [esi + 0x14], 8
mov edi, dword [esi + 0x10]
jb 0x4a71b2
mov esi, dword [esi]
cmp edi, 8
jae 0x4a71ca
movups xmm0, xmmword [esi]
mov dword [ebp - 0x24], 7
movups xmmword [ebp - 0x38], xmm0
jmp 0x4a725b
mov eax, edi
or eax, 7
cmp eax, 0x7ffffffe
cmova eax, ecx
xor ecx, ecx
mov dword [ebp - 0xd4], eax
add eax, 1
setb cl
neg ecx
or ecx, eax
lea edx, [ecx + ecx]
cmp ecx, 0x7fffffff
jbe 0x4a71f9
or edx, 0xffffffff
jmp 0x4a7201
cmp edx, 0x1000
jb 0x4a722a
lea eax, [edx + 0x23]
mov ecx, 0xffffffff
cmp eax, edx
cmovbe eax, ecx
push eax
call fcn.004e9692
add esp, 4
test eax, eax
je 0x4a740c
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x4a723d
test edx, edx
je 0x4a723b
push edx
call fcn.004e9692
add esp, 4
mov ecx, eax
jmp 0x4a723d
xor ecx, ecx
lea eax, [edi*2 + 2]
mov dword [ebp - 0x38], ecx
push eax
push esi
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0xd4]
add esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x24], 8
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4a738a
xor eax, eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
mov byte [ebp - 4], 4
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov byte [ebp - 4], 5
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov byte [ebp - 4], 7
lea edx, [ebp - 0xb8]
lea ecx, [ebp - 0x38]
call fcn.004a6b10
test al, al
jne 0x4a731b
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x88]
call fcn.0040b220
mov byte [ebp - 4], 8
jmp 0x4a7370
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp - 0xc4]
jb 0x4a735d
mov eax, dword [ebp - 0x60]
ja 0x4a7333
cmp eax, dword [ebp - 0xc0]
jbe 0x4a735d
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc4], ecx
mov ecx, dword [ebp - 0xcc]
cmp ecx, eax
je 0x4a735d
cmp dword [ebp - 0x24], 8
push dword [ebp - 0x28]
cmovae eax, dword [ebp - 0x38]
push eax
call fcn.0040b290
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x88]
call fcn.0040b220
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xa0]
call fcn.0040b220
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb8]
call fcn.0040b220
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.0040b220
mov ecx, dword [ebp - 0x1c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x20]
sub ecx, esi
mov edi, dword [ebp - 0xc8]
inc dword [ebp - 0xbc]
add edi, 0x18
imul ecx
mov dword [ebp - 0xc8], edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0xbc], eax
jb 0x4a7192
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0040b1a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0040b220
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e9681
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3