Function at 0x4a2900
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5761c7
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
xor eax, eax
mov esi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2955
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x238]
call fcn.00408f30
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 2
push eax
push esi
call fcn.004304a0
add esp, 8
test al, al
je 0x4a2d53
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
mov esi, dword [ebp - 0x228]
cmovae eax, dword [ebp - 0x238]
cmp word [eax + esi*2 - 2], 0x5c
jne 0x4a2a8a
lea eax, [esi - 1]
push eax
push 0
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x238]
call fcn.00409610
mov esi, eax
lea eax, [ebp - 0x238]
cmp eax, esi
je 0x4a2a5e
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 5
cmp eax, 8
jb 0x4a2a1d
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.0040a2e0
mov dword [ebp - 0x228], 0
xor eax, eax
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x238], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x228], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, dword [ebp - 0x23c]
mov byte [ebp - 4], 6
cmp eax, 8
jb 0x4a2a80
inc eax
lea ecx, [ebp - 0x250]
push eax
push dword [ebp - 0x250]
call fcn.0040a2e0
mov esi, dword [ebp - 0x228]
mov byte [ebp - 4], 2
push edi
lea ecx, [ebp - 0x268]
call fcn.0045628a
test eax, eax
jne 0x4a2aa6
mov byte [ebp - 0x269], 1
jmp 0x4a2d5a
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
test esi, esi
je 0x4a2d53
mov edi, eax
cmp word [edi], 0x3a
je 0x4a2ad7
add edi, 2
sub esi, 1
jne 0x4a2ac4
jmp 0x4a2d53
sub edi, eax
sar edi, 1
je 0x4a2d53
cmp edi, 0xffffffff
je 0x4a2d53
cmp edi, 1
jbe 0x4a2b0f
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
cmp word [eax + edi*2 - 4], 0x5c
jne 0x4a2d53
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
lea ecx, [edi + edi]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x238]
add eax, 0xfffffffe
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x27c], ecx
add eax, ecx
je 0x4a2d43
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x220]
push 0x104
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x4a2d53
cmp eax, 0x104
je 0x4a2d53
lea esi, [ebp - 0x220]
cmp eax, 4
jb 0x4a2b98
push 4
mov eax, esi
push 0x591fe0
push eax
call fcn.00549727
add esp, 0xc
lea ecx, [ebp - 0x218]
test eax, eax
cmovne ecx, esi
mov esi, ecx
push 0
push 0x2000000
push 3
push 0
push 7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor esi, esi
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x278], esi
test eax, eax
je 0x4a2bf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x274]
cmp eax, 0xffffffff
je 0x4a2be4
mov esi, eax
mov dword [ebp - 0x278], esi
call fcn.00412510
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x4a2c00
mov byte [ebp - 0x269], 0
jmp 0x4a2d1f
xor eax, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 0x15
push eax
push esi
call fcn.004304a0
add esp, 8
test al, al
je 0x4a2cf6
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x240]
sub eax, edi
dec eax
mov dword [ebp - 0x270], ecx
add eax, ecx
cmp eax, dword [ebp - 0x258]
jne 0x4a2cf6
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
cmovae eax, dword [ebp - 0x250]
push eax
push ecx
push 0
lea ecx, [ebp - 0x268]
call fcn.0042a8a0
test eax, eax
jne 0x4a2cf6
mov edi, dword [ebp - 0x270]
lea eax, [ebp - 0x294]
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x268]
call fcn.00409610
mov edx, eax
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
mov eax, dword [ebp - 0x27c]
cmovae ecx, dword [ebp - 0x238]
add eax, 2
add ecx, eax
mov byte [ebp - 4], 0x22
cmp dword [edx + 0x14], 8
jb 0x4a2ccb
mov edx, dword [edx]
mov eax, dword [ebp - 0x258]
sub eax, edi
push eax
push ecx
push edx
call fcn.00420fc8
add esp, 0xc
lea ecx, [ebp - 0x294]
mov edi, eax
call fcn.0040a280
mov byte [ebp - 0x269], 1
test edi, edi
je 0x4a2cfd
mov byte [ebp - 0x269], 0
mov eax, dword [ebp - 0x23c]
mov byte [ebp - 4], 0x27
cmp eax, 8
jb 0x4a2d1f
inc eax
lea ecx, [ebp - 0x250]
push eax
push dword [ebp - 0x250]
call fcn.0040a2e0
mov byte [ebp - 4], 0x28
test esi, esi
je 0x4a2d5a
cmp esi, 0xffffffff
je 0x4a2d5a
call fcn.00412510
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4a2d5a
call fcn.004014a0
jmp 0x4a2d5a
call fcn.004116f6
mov dword [eax], 0x16
call fcn.0054222b
mov byte [ebp - 0x269], 0
mov eax, dword [ebp - 0x254]
mov byte [ebp - 4], 0x29
cmp eax, 8
jb 0x4a2d7c
inc eax
lea ecx, [ebp - 0x268]
push eax
push dword [ebp - 0x268]
call fcn.0040a2e0
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 4], 0x2a
cmp ecx, 8
jb 0x4a2da1
inc ecx
push ecx
push dword [ebp - 0x238]
lea ecx, [ebp - 0x238]
call fcn.0040a2e0
mov al, byte [ebp - 0x269]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret