Function at 0x498d10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e5a7
mov eax, dword fs:[0]
push eax
sub esp, 0x33c
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
xor eax, eax
mov esi, dword [ebp + 8]
mov ecx, edx
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x270], edx
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x228], eax
lea edi, [ecx + 2]
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x498d73
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x238]
call fcn.00408740
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.0043eae0
add esp, 8
test al, al
je 0x498eee
mov edx, dword [ebp - 0x224]
lea eax, [ebp - 0x238]
mov edi, dword [ebp - 0x238]
cmp edx, 8
mov esi, dword [ebp - 0x228]
cmovae eax, edi
cmp word [eax + esi*2 - 2], 0x5c
jne 0x498ea0
xor eax, eax
mov dword [ebp - 0x240], 0
lea ecx, [esi - 1]
mov word [ebp - 0x250], ax
cmp esi, ecx
mov dword [ebp - 0x23c], 7
lea eax, [ebp - 0x238]
cmovb ecx, esi
cmp edx, 8
push ecx
cmovae eax, edi
lea ecx, [ebp - 0x250]
push eax
call fcn.00408740
mov dword [ebp - 0x278], 2
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 3
call fcn.00408df0
movups xmm0, xmmword [ebp - 0x250]
xor eax, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
mov word [ebp - 0x250], ax
movups xmmword [ebp - 0x238], xmm0
movq xmm0, qword [ebp - 0x240]
movq qword [ebp - 0x228], xmm0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
call fcn.00408e50
mov esi, dword [ebp - 0x228]
push dword [ebp - 0x270]
lea ecx, [ebp - 0x268]
call fcn.00451eca
test eax, eax
jne 0x498ebe
mov byte [ebp - 0x269], 1
jmp 0x498ef5
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x238]
mov edx, dword [ebp - 0x238]
cmp ecx, 8
cmovae eax, edx
test esi, esi
je 0x498eee
mov edi, eax
nop dword [eax]
cmp word [edi], 0x3a
je 0x498f2c
add edi, 2
sub esi, 1
jne 0x498ee0
mov byte [ebp - 0x269], 0
lea ecx, [ebp - 0x268]
call fcn.00408e50
lea ecx, [ebp - 0x238]
call fcn.00408e50
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.0040154f
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x498eee
sub edi, eax
sar edi, 1
je 0x498eee
cmp edi, 0xffffffff
je 0x498eee
cmp edi, 1
jbe 0x498f54
cmp ecx, 8
lea eax, [ebp - 0x238]
cmovae eax, edx
cmp word [eax + edi*2 - 4], 0x5c
jne 0x498eee
cmp ecx, 8
lea eax, [ebp - 0x238]
lea ecx, [edi + edi]
xorps xmm0, xmm0
cmovae eax, edx
movq qword [ebp - 0x18], xmm0
add eax, 0xfffffffe
mov dword [ebp - 0x27c], ecx
push 4
add eax, ecx
push eax
lea eax, [ebp - 0x18]
push 8
push eax
call fcn.0042a5a0
add esp, 0x10
test eax, eax
jne 0x498eee
push 0x104
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x498eee
cmp eax, 0x104
je 0x498eee
lea esi, [ebp - 0x220]
cmp eax, 4
jb 0x498fe3
push 4
mov eax, esi
push 0x57352c
push eax
call fcn.00534240
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 - 0x270], eax
xor ecx, ecx
mov dword [ebp - 0x280], esi
test eax, eax
je 0x499057
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x270]
cmp eax, 0xffffffff
jne 0x49902c
mov dword [ebp - 0x270], esi
jmp 0x499045
mov esi, eax
mov dword [ebp - 0x280], esi
call fcn.00411f30
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x270], eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x270]
test ecx, ecx
jne 0x499066
mov byte [ebp - 0x269], cl
jmp 0x49916e
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], 6
push eax
push esi
call fcn.0043eae0
add esp, 8
test al, al
je 0x49915c
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x240]
sub eax, edi
dec eax
mov dword [ebp - 0x274], ecx
add eax, ecx
cmp eax, dword [ebp - 0x258]
jne 0x49915c
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.00429d50
test eax, eax
jne 0x49915c
mov edi, dword [ebp - 0x274]
lea eax, [ebp - 0x298]
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x268]
call fcn.00408d90
mov ecx, eax
cmp dword [ebp - 0x224], 8
lea edx, [ebp - 0x238]
mov byte [ebp - 4], 0xa
cmovae edx, dword [ebp - 0x238]
cmp dword [ecx + 0x14], 8
jb 0x499126
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x258]
sub eax, edi
push eax
mov eax, dword [ebp - 0x27c]
add eax, 2
add eax, edx
push eax
push ecx
call fcn.004263eb
add esp, 0xc
lea ecx, [ebp - 0x298]
mov edi, eax
call fcn.00408e50
mov byte [ebp - 0x269], 1
test edi, edi
je 0x499163
mov byte [ebp - 0x269], 0
lea ecx, [ebp - 0x250]
call fcn.00408e50
mov byte [ebp - 4], 0xc
test esi, esi
je 0x498ef5
cmp esi, 0xffffffff
je 0x498ef5
call fcn.00411f30
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x498ef5
call fcn.004013a0
test dword [ebp - 0x278], 0x100
je 0x498ef5
lea ecx, [ebp - 0x348]
call fcn.0048d350
jmp 0x498ef5