Function at 0x4ade90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4277
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x62cf50]
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 0x4adee5
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x238]
call fcn.00409db0
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], 1
push eax
push esi
call fcn.00433a80
add esp, 8
test al, al
je 0x4ae2dc
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 0x4ae01a
lea eax, [esi - 1]
push eax
push 0
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x238]
call fcn.00410b80
mov esi, eax
lea eax, [ebp - 0x238]
cmp eax, esi
je 0x4adfee
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x4adfad
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.0040a5e0
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], 5
cmp eax, 8
jb 0x4ae010
inc eax
lea ecx, [ebp - 0x250]
push eax
push dword [ebp - 0x250]
call fcn.0040a5e0
mov esi, dword [ebp - 0x228]
mov byte [ebp - 4], 1
push edi
lea ecx, [ebp - 0x268]
call fcn.0045e90a
test eax, eax
jne 0x4ae036
mov byte [ebp - 0x269], 1
jmp 0x4ae2e3
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
test esi, esi
je 0x4ae2dc
mov edi, eax
cmp word [edi], 0x3a
je 0x4ae067
add edi, 2
sub esi, 1
jne 0x4ae054
jmp 0x4ae2dc
sub edi, eax
sar edi, 1
je 0x4ae2dc
cmp edi, 0xffffffff
je 0x4ae2dc
cmp edi, 1
jbe 0x4ae09f
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
cmp word [eax + edi*2 - 4], 0x5c
jne 0x4ae2dc
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 0x4ae2cc
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 0x4ae2dc
cmp eax, 0x104
je 0x4ae2dc
lea esi, [ebp - 0x220]
cmp eax, 4
jb 0x4ae128
push 4
mov eax, esi
push 0x5c45d0
push eax
call fcn.00575543
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 0x4ae180
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x274]
cmp eax, 0xffffffff
je 0x4ae174
mov esi, eax
mov dword [ebp - 0x278], esi
call fcn.00413e80
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x4ae190
mov byte [ebp - 0x269], 0
jmp 0x4ae2af
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], 0x14
push eax
push esi
call fcn.00433a80
add esp, 8
test al, al
je 0x4ae286
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 0x4ae286
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.0042ef80
test eax, eax
jne 0x4ae286
mov edi, dword [ebp - 0x270]
lea eax, [ebp - 0x294]
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x268]
call fcn.00410b80
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], 0x21
cmp dword [edx + 0x14], 8
jb 0x4ae25b
mov edx, dword [edx]
mov eax, dword [ebp - 0x258]
sub eax, edi
push eax
push ecx
push edx
call fcn.0042228c
add esp, 0xc
lea ecx, [ebp - 0x294]
mov edi, eax
call fcn.0040a580
mov byte [ebp - 0x269], 1
test edi, edi
je 0x4ae28d
mov byte [ebp - 0x269], 0
mov eax, dword [ebp - 0x23c]
mov byte [ebp - 4], 0x26
cmp eax, 8
jb 0x4ae2af
inc eax
lea ecx, [ebp - 0x250]
push eax
push dword [ebp - 0x250]
call fcn.0040a5e0
mov byte [ebp - 4], 0x27
test esi, esi
je 0x4ae2e3
cmp esi, 0xffffffff
je 0x4ae2e3
call fcn.00413e80
push esi
call fcn.00415030
add esp, 4
jmp 0x4ae2e3
call fcn.00413006
mov dword [eax], 0x16
call fcn.0056e2cb
mov byte [ebp - 0x269], 0
mov eax, dword [ebp - 0x254]
mov byte [ebp - 4], 0x28
cmp eax, 8
jb 0x4ae305
inc eax
lea ecx, [ebp - 0x268]
push eax
push dword [ebp - 0x268]
call fcn.0040a5e0
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 4], 0x29
cmp ecx, 8
jb 0x4ae32a
inc ecx
push ecx
push dword [ebp - 0x238]
lea ecx, [ebp - 0x238]
call fcn.0040a5e0
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 int.004016cd
mov esp, ebp
pop ebp
ret