Function at 0x4af610
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 0x5050e8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd0
mov eax, dword [0x53e008]
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.004aeee0
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 0x4af952
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
or edx, 0xffffffff
mov ecx, 0x7ffffffe
cmp dword [esi + 0x14], 8
mov edi, dword [esi + 0x10]
jb 0x4af745
mov esi, dword [esi]
cmp edi, 8
jae 0x4af75d
movups xmm0, xmmword [esi]
mov dword [ebp - 0x24], 7
movups xmmword [ebp - 0x38], xmm0
jmp 0x4af7dd
mov eax, edi
or eax, 7
cmp eax, 0x7ffffffe
cmova eax, ecx
mov dword [ebp - 0xd4], eax
inc eax
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x4af780
or ecx, 0xffffffff
jmp 0x4af788
cmp ecx, 0x1000
jb 0x4af7ac
lea eax, [ecx + 0x23]
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004ec162
add esp, 4
test eax, eax
je 0x4af98e
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x4af7bf
test ecx, ecx
je 0x4af7bd
push ecx
call fcn.004ec162
add esp, 4
mov ecx, eax
jmp 0x4af7bf
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 0x4af90c
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.004af0a0
test al, al
jne 0x4af89d
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x88]
call fcn.00403780
mov byte [ebp - 4], 8
jmp 0x4af8f2
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp - 0xc4]
jb 0x4af8df
mov eax, dword [ebp - 0x60]
ja 0x4af8b5
cmp eax, dword [ebp - 0xc0]
jbe 0x4af8df
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc4], ecx
mov ecx, dword [ebp - 0xcc]
cmp ecx, eax
je 0x4af8df
cmp dword [ebp - 0x24], 8
push dword [ebp - 0x28]
cmovae eax, dword [ebp - 0x38]
push eax
call fcn.004037f0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x88]
call fcn.00403780
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xa0]
call fcn.00403780
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb8]
call fcn.00403780
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.00403780
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 0x4af722
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00403700
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00403780
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.004ec151
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