Function at 0x1a2740
Capabilities:
Check os version

Disassembly:
sub esp, 0x30c
mov eax, dword [0x1d6750]
xor eax, esp
mov dword [esp + 0x308], eax
push ebx
push ebp
push esi
xor eax, eax
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov eax, 0x258
push 0x9b
mov dword [esp + 0x2b0], eax
mov dword [esp + 0x2d0], eax
mov edx, 0x500
mov ecx, 0x320
lea eax, [esp + 0x201]
mov esi, 0x400
mov ebx, 0x300
push 0
mov ebp, 0x690
mov edi, 0x41a
push eax
mov dword [esp + 0x2a4], edx
mov dword [esp + 0x2a8], esi
mov dword [esp + 0x2ac], 0x280
mov dword [esp + 0x2b0], 0x1e0
mov dword [esp + 0x2b4], ecx
mov dword [esp + 0x2bc], esi
mov dword [esp + 0x2c0], ebx
mov dword [esp + 0x2c4], ebp
mov dword [esp + 0x2c8], edi
mov dword [esp + 0x2cc], ebx
mov dword [esp + 0x2d0], 0x1e0
mov dword [esp + 0x2d4], 0x3c0
mov dword [esp + 0x2dc], edx
mov dword [esp + 0x2e0], ecx
mov byte [esp + 0x208], 0
call fcn.001a76a0
mov edx, 0x780
add esp, 0xc
mov dword [esp + 0x2d8], edx
mov dword [esp + 0x20], edx
lea edx, [esp + 0x1fc]
mov ecx, 0x438
push edx
mov dword [esp + 0x2e0], ecx
mov eax, 0x640
mov dword [esp + 0x28], ecx
push 0xffffffffffffffff
mov ecx, 0x9c
mov dword [esp + 0x2e8], ebp
mov ebp, dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
push 0
mov dword [esp + 0x2f0], edi
mov dword [esp + 0x2f4], eax
mov dword [esp + 0x2f8], 0x4b0
mov dword [esp + 0x2fc], eax
mov dword [esp + 0x300], esi
mov word [esp + 0x22c], cx
call ebp
cmp dword [esp + 0x230], 0
jne 0x1a28b2
mov eax, dword [esp + 0x26c]
cmp eax, dword [esp + 0x268]
jbe 0x1a2910
push 0x8c
lea ecx, [esp + 0xd0]
push 0
push ecx
mov dword [esp + 0xd0], 0x94
mov dword [esp + 0xd4], 0
call fcn.001a76a0
add esp, 0xc
lea edx, [esp + 0xc4]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0xc8]
cmp eax, 4
je 0x1a2da7
cmp eax, 5
jne 0x1a2910
cmp dword [esp + 0xcc], 0
je 0x1a2da7
push 0
push 1
push 0x1d5c44
call fcn.001a1240
add esp, 0xc
test eax, eax
jne 0x1a2946
mov ecx, dword [0x1d5c60]
mov edx, dword [ecx]
lea eax, [esp + 0x28]
push eax
push edx
call fcn.001a2470
mov eax, dword [esp + 0x9c]
add esp, 8
mov dword [esp + 0x14], eax
push 0x1d5e20
push 0x80000001
call fcn.001a5730
add esp, 8
lea edx, [esp + 0x160]
push edx
push 0xfffffffffffffffe
mov ecx, 0x9c
push 0
mov word [esp + 0x190], cx
call ebp
lea eax, [esp + 0x160]
push eax
push 0xfffffffffffffffe
call fcn.001a23c0
mov esi, dword [esp + 0x19c]
add esp, 8
and esi, 1
je 0x1a29bb
mov ecx, dword [esp + 0x1d0]
fild dword [esp + 0x1d0]
test ecx, ecx
jns 0x1a29a9
fadd qword [0x1ca3f8]
mov edx, dword [esp + 0x1cc]
fild dword [esp + 0x1cc]
test edx, edx
jmp 0x1a29e3
mov eax, dword [esp + 0x1cc]
fild dword [esp + 0x1cc]
test eax, eax
jns 0x1a29d3
fadd qword [0x1ca3f8]
mov ecx, dword [esp + 0x1d0]
fild dword [esp + 0x1d0]
test ecx, ecx
jns 0x1a29eb
fadd qword [0x1ca3f8]
fdivp st(1)
fmul qword [0x1ca3f0]
fmul qword [0x1ca3e8]
fld1
fsubrp st(1)
fld qword [0x1ca3d8]
call fcn.001a7e10
fcomp qword [0x1ca3d0]
fnstsw ax
test ah, 5
jp 0x1a2a26
mov eax, 1
lea edx, [esp + 0x298]
jmp 0x1a2ab2
push 0x9b
lea edx, [esp + 0xc9]
push 0
push edx
mov byte [esp + 0xd0], 0
call fcn.001a76a0
add esp, 0xc
lea ecx, [esp + 0xc4]
push ecx
push 0xffffffffffffffff
mov eax, 0x9c
push 0
mov word [esp + 0xf4], ax
call ebp
test esi, esi
je 0x1a2a78
mov dword [esp + 0x130], 0x1e0
mov dword [esp + 0x134], ebx
jmp 0x1a2a8a
mov dword [esp + 0x130], ebx
mov dword [esp + 0x134], 0x1e0
push 2
lea edx, [esp + 0xc8]
push edx
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
neg eax
sbb eax, eax
neg eax
je 0x1a2aab
lea edx, [esp + 0x298]
jmp 0x1a2ab2
lea edx, [esp + 0x2b8]
test esi, esi
je 0x1a2abb
mov ecx, dword [edx + 4]
jmp 0x1a2abd
mov ecx, dword [edx]
mov dword [esp + 0x2f8], ecx
test esi, esi
je 0x1a2acc
mov ecx, dword [edx]
jmp 0x1a2acf
mov ecx, dword [edx + 4]
mov dword [esp + 0x2fc], ecx
lea edx, [esp + 0x298]
test eax, eax
jne 0x1a2ae8
lea edx, [esp + 0x2b8]
test esi, esi
je 0x1a2af1
mov ecx, dword [edx + 0xc]
jmp 0x1a2af4
mov ecx, dword [edx + 8]
mov dword [esp + 0x300], ecx
test esi, esi
je 0x1a2b04
mov ecx, dword [edx + 8]
jmp 0x1a2b07
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x304], ecx
lea edx, [esp + 0x298]
test eax, eax
jne 0x1a2b20
lea edx, [esp + 0x2b8]
test esi, esi
je 0x1a2b29
mov ecx, dword [edx + 0x14]
jmp 0x1a2b2c
mov ecx, dword [edx + 0x10]
mov ebx, ecx
test esi, esi
je 0x1a2b37
mov ecx, dword [edx + 0x10]
jmp 0x1a2b3a
mov ecx, dword [edx + 0x14]
test eax, eax
mov dword [esp + 0x30c], ecx
lea eax, [esp + 0x298]
jne 0x1a2b53
lea eax, [esp + 0x2b8]
test esi, esi
je 0x1a2b60
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x18], ecx
jmp 0x1a2b67
mov edx, dword [eax + 0x18]
mov dword [esp + 0x18], edx
test esi, esi
je 0x1a2b74
mov eax, dword [eax + 0x18]
mov dword [esp + 0x10], eax
jmp 0x1a2b7b
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x10], ecx
mov edx, dword [0x1d5c60]
push 0
push 1
push 0x1d5c44
mov dword [edx], 0xfffffffe
call fcn.001a10e0
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
xor edi, edi
push edi
mov eax, 0x9c
push edi
mov word [esp + 0x58], ax
call ebp
test eax, eax
je 0x1a2d40
jmp 0x1a2bc0
mov edx, dword [esp + 0x90]
cmp edx, dword [esp + 0x1c8]
jne 0x1a2d23
mov edx, dword [esp + 0x94]
cmp edx, dword [esp + 0x1cc]
jae 0x1a2d23
mov eax, dword [esp + 0x5c]
cmp eax, dword [esp + 0x194]
jne 0x1a2d23
cmp edx, dword [esp + 0x2f8]
jne 0x1a2c22
mov esi, dword [esp + 0x98]
cmp esi, dword [esp + 0x2fc]
jne 0x1a2c22
mov eax, dword [esp + 0xa0]
cmp eax, dword [esp + 0x1d8]
jmp 0x1a2c7b
call fcn.001a5030
cmp eax, 2
mov eax, dword [esp + 0xa0]
jne 0x1a2c40
cmp eax, dword [esp + 0x1d8]
jne 0x1a2d23
mov edx, dword [esp + 0x94]
mov esi, dword [esp + 0x98]
cmp edx, dword [esp + 0x300]
jne 0x1a2c60
cmp esi, dword [esp + 0x304]
je 0x1a2c81
cmp edx, ebx
jne 0x1a2c6d
cmp esi, dword [esp + 0x30c]
je 0x1a2c81
cmp edx, dword [esp + 0x18]
jne 0x1a2d23
cmp esi, dword [esp + 0x10]
jne 0x1a2d23
cmp dword [0x1d7a6c], 0
je 0x1a2ceb
cmp eax, 0x3c
jne 0x1a2cbf
xor eax, eax
mov ecx, dword [esp + eax*8 + 0x2d8]
cmp edx, ecx
jne 0x1a2ca5
cmp esi, dword [esp + eax*8 + 0x2dc]
je 0x1a2cba
cmp edx, dword [esp + eax*8 + 0x2dc]
jne 0x1a2cb2
cmp esi, ecx
je 0x1a2cba
inc eax
cmp eax, 4
jb 0x1a2c91
jmp 0x1a2ceb
cmp eax, 4
jmp 0x1a2ce9
cmp eax, 0x32
jne 0x1a2ceb
xor eax, eax
mov ecx, dword [esp + eax*8 + 0x20]
cmp edx, ecx
jne 0x1a2cd4
cmp esi, dword [esp + eax*8 + 0x24]
je 0x1a2ce6
cmp edx, dword [esp + eax*8 + 0x24]
jne 0x1a2cde
cmp esi, ecx
je 0x1a2ce6
inc eax
cmp eax, 1
jb 0x1a2cc6
jmp 0x1a2ceb
cmp eax, 1
jb 0x1a2d23
lea ecx, [esp + 0x28]
push ecx
push edi
call fcn.001a23c0
add esp, 8
mov dword [esp + 0x1c], 1
cmp dword [esp + 0x94], ebx
ja 0x1a2d23
mov edx, dword [0x1d5c60]
push 0
push 1
push 0x1d5c44
mov dword [edx], edi
call fcn.001a10e0
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
inc edi
push edi
mov eax, 0x9c
push 0
mov word [esp + 0x58], ax
call ebp
test eax, eax
jne 0x1a2bc0
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x1a2d8e
xor esi, esi
test edi, edi
jle 0x1a2d8e
mov edi, edi
lea edx, [esp + 0x28]
push edx
push esi
call fcn.001a2470
add esp, 8
test eax, eax
jne 0x1a2d6b
cmp dword [esp + 0x94], ebp
je 0x1a2d72
inc esi
cmp esi, edi
jl 0x1a2d50
jmp 0x1a2d8e
cmp esi, edi
jge 0x1a2d8e
mov eax, dword [0x1d5c60]
push 0
push 1
push 0x1d5c44
mov dword [eax], esi
call fcn.001a10e0
add esp, 0xc
cmp dword [esp + 0x1c], 0
jne 0x1a2dc3
push str.SOFTWAREIBMTPHOTKEYUltraZoomModes
push 0x80000001
call fcn.001a5730
add esp, 8
or eax, 0xffffffff
mov ecx, dword [esp + 0x318]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.001a771a
add esp, 0x30c
ret
mov eax, edi
jmp 0x1a2daa