Function at 0x40affa
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x45f774]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 0x6c
mov eax, 0x448380
call fcn.00434949
mov esi, ecx
call fcn.00419238
push eax
lea ecx, [ebp - 0x2c]
call fcn.004017d2
and dword [ebp - 4], 0
call fcn.00419238
push eax
lea ecx, [ebp - 0x38]
call fcn.004017d2
mov byte [ebp - 4], 1
call fcn.00419238
push eax
lea ecx, [ebp - 0x34]
call fcn.004017d2
mov byte [ebp - 4], 2
mov eax, 1
xor edx, edx
cpuid
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
mov edi, str._08X_08X
push dword [ebp - 0x1c]
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.00402b1b
add esp, 0x10
mov eax, 3
xor ecx, ecx
xor edx, edx
cpuid
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
push dword [ebp - 0x1c]
push edi
push eax
call fcn.00402b1b
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00402a19
add esp, 0x1c
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040191d
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017b8
mov eax, 0x80
push eax
lea ecx, [ebp + 0x80]
push ecx
xor ebx, ebx
push ebx
push ebx
lea ecx, [ebp - 0x20]
push ecx
push eax
lea eax, [ebp]
push eax
push 0x453380
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
call fcn.00419238
push eax
lea ecx, [ebp - 0x18]
call fcn.004017d2
mov byte [ebp - 4], 4
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push 0x453348
push eax
call fcn.00402b1b
add esp, 0xc
call fcn.00419238
push eax
lea ecx, [ebp - 0x28]
call fcn.004017d2
push 5
push 0xd
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.004015c1
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.0040191d
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004017b8
push 5
push 3
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.004015c1
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.0040868c
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004017b8
push 0x453384
lea ecx, [ebp - 0x78]
call fcn.00401b21
push 0x453388
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 8
call fcn.00401b21
push 0x45338c
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00401b21
push 0x453390
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xa
call fcn.00401b21
push 0x453394
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xb
call fcn.00401b21
push 0x453398
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xc
call fcn.00401b21
push 0x45339c
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xd
call fcn.00401b21
push 0x4533a0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xe
call fcn.00401b21
push 0x4533a4
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xf
call fcn.00401b21
push 0x4533a8
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x10
call fcn.00401b21
push 0x4533ac
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x11
call fcn.00401b21
push 0x4533b0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x12
call fcn.00401b21
push 0x4533b4
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x13
call fcn.00401b21
push 0x4533b8
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x14
call fcn.00401b21
push 0x4533bc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x15
call fcn.00401b21
push 0x4533c0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x16
call fcn.00401b21
mov byte [ebp - 4], 0x17
call fcn.00419238
push eax
lea ecx, [ebp - 0x14]
call fcn.004017d2
mov byte [ebp - 4], 0x18
call fcn.00419238
push eax
lea ecx, [ebp - 0x10]
call fcn.004017d2
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x19
call fcn.0040191d
lea edi, [ebp - 0x10]
call fcn.0040c462
mov ecx, ebx
lea eax, [ebp - 0x10]
call fcn.0040c48f
mov cl, al
sub cl, 0x61
cmp cl, 5
movsx eax, al
ja 0x40b2e7
sub eax, 0x57
jmp 0x40b2ea
sub eax, 0x30
lea eax, [ebp + eax*4 - 0x78]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401ca6
mov byte [ebp - 4], 0x1a
mov edi, dword [ebp - 0x30]
push dword [edi - 0xc]
lea ecx, [ebp - 0x14]
push edi
call fcn.00408a30
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0x19
call fcn.004017b8
inc ebx
cmp ebx, 0xa
jl 0x40b2cb
mov eax, dword [ebp - 0x14]
mov edi, dword [eax - 0xc]
push edi
lea ecx, [ebp - 0x14]
call fcn.004017f7
lea ecx, [edi + 1]
push ecx
push eax
call fcn.00432e71
push eax
call fcn.0040727b
add esp, 0xc
push edi
lea ecx, [ebp - 0x14]
call fcn.00401792
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0x124]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00402a19
add esp, 0xc
add esi, 0x11c
push eax
mov ecx, esi
mov byte [ebp - 4], 0x1b
call fcn.0040191d
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004017b8
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004017b8
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004017b8
push 0x405a1c
push 0x10
push 4
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 5
call fcn.00432ade
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004017b8
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017b8
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.004017b8
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.004017b8
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004017b8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.0042f15c
add ebp, 0x104
leave
ret