Function at 0x4028d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
mov eax, dword [0x422040]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [0x4236cc]
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
test eax, eax
je 0x402b95
xor ecx, ecx
mov edx, 0x188
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [0x425410], eax
test eax, eax
je 0x402b95
mov esi, dword [0x4236cc]
imul ecx, esi, 0x188
push ecx
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test esi, esi
je 0x402b75
xor esi, esi
nop word [eax + eax]
cmp ebx, 0x100
jae 0x402b75
mov eax, dword [0x425410]
mov dword [esp + 0xc], 0
push ebx
push str.PhysicalDrive_d
mov dword [esi + eax], 0x4544534b
mov dword [esi + eax + 4], 0x454e554c
mov byte [esi + eax + 0x11c], bl
mov dword [esi + eax + 0x114], 0
lea eax, [esp + 0x48]
push eax
call fcn.00401d30
mov eax, dword [0x425410]
add esp, 0xc
add eax, 8
add eax, esi
push 0x104
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x4029d5
mov eax, dword [0x425410]
push ebx
add eax, 8
add eax, esi
push str.DosDevicesPhysicalDrive_d
push eax
call fcn.00401d30
add esp, 0xc
mov ecx, dword [0x425410]
lea edx, [esp + 0xc]
add ecx, 8
inc ebx
push 0x80000000
add ecx, esi
call fcn.00402770
add esp, 4
test eax, eax
js 0x402b69
mov eax, dword [0x425410]
add eax, 0x120
add eax, esi
push 0x18
push eax
push 0x18
push eax
push 0x70000
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
push dword [esp + 0x30]
call dword [sym.imp.ntdll.dll_ZwDeviceIoControlFile]
test eax, eax
js 0x402a3c
mov eax, dword [0x425410]
mov dword [esi + eax + 0x110], 0
jmp 0x402a57
cmp eax, 0xc0000013
jne 0x402b36
mov eax, dword [0x425410]
mov dword [esi + eax + 0x110], 1
mov ecx, dword [esp + 0xc]
add eax, 0x138
add eax, esi
mov dword [esp + 0x10], 0
push 0x28
push eax
xorps xmm0, xmm0
mov dword [esp + 0x1c], 0
movups xmmword [eax], xmm0
push 0xc
movups xmmword [eax + 0x10], xmm0
movq qword [eax + 0x20], xmm0
lea eax, [esp + 0x1c]
push eax
push 0x2d1400
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ntdll.dll_ZwDeviceIoControlFile]
test eax, eax
js 0x402b36
mov eax, dword [0x425410]
xorps xmm0, xmm0
mov ecx, dword [esp + 0xc]
add eax, 0x160
push 0x20
add eax, esi
mov dword [esp + 0x20], 1
push eax
push 0xc
mov dword [esp + 0x2c], 0
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
lea eax, [esp + 0x28]
push eax
push 0x2d1400
lea eax, [esp + 0x4c]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ntdll.dll_ZwDeviceIoControlFile]
test eax, eax
js 0x402b36
mov eax, dword [0x425410]
cmp dword [esi + eax + 0x110], 0
jne 0x402b26
mov ecx, dword [esp + 0xc]
lea edx, [eax + 0x11d]
add edx, esi
call fcn.00401e20
mov ecx, dword [0x425410]
mov dword [esi + ecx + 0x180], eax
mov eax, dword [0x425410]
mov dword [esi + eax + 0x114], 1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402b62
cmp eax, 0xffffffff
je 0x402b62
push eax
call dword [sym.imp.ntdll.dll_ZwClose]
test eax, eax
jns 0x402b62
push 0
push str.Ext2Close
push str.Failed_to_close_handle
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
inc edi
add esi, 0x188
cmp edi, dword [0x4236cc]
jb 0x402950
mov dword [0x4236cc], edi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00416a63
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00416a63
mov esp, ebp
pop ebp
ret