Function at 0x1004a530
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x100dbc1c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x154], eax
push dword [esi + 0x2c]
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x1004a5c3
mov ecx, dword [0x100da058]
mov eax, dword [0x100da060]
mov edx, dword [0x100da054]
sub eax, ecx
push 0
push dword [0x100e1720]
push 0
push dword [esi - 0x20]
push eax
mov eax, dword [0x100da05c]
sub eax, edx
push eax
push ecx
push edx
push 3
push 0
push str.tooltips_class32
push 8
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x12c
push 0
push 0x418
push eax
mov dword [esi + 0x2c], eax
call ebx
push 0
push 1
push 0x401
push dword [esi + 0x2c]
call ebx
push dword [esi + 0x2c]
call edi
test eax, eax
je 0x1004a843
cmp dword [ebp + 0xc], 0
je 0x1004a7a6
mov ebx, dword [ebp - 0x154]
mov ebx, dword [ebx]
mov dword [ebp - 0x150], ebx
test ebx, ebx
je 0x1004a856
mov eax, dword [esi + 0x30]
mov ecx, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1004a61b
test dx, dx
je 0x1004a617
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1004a61b
add eax, 4
add ecx, 4
test dx, dx
jne 0x1004a5f5
xor eax, eax
jmp 0x1004a620
sbb eax, eax
or eax, 1
test eax, eax
je 0x1004a843
lea edi, [ebx - 0x10]
mov ebx, dword [esi + 0x30]
add ebx, 0xfffffff0
cmp edi, ebx
je 0x1004a6cd
cmp dword [ebx + 0xc], 0
jl 0x1004a6bb
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x1004a6bb
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
jl 0x1004a65e
cmp ecx, dword [edi]
jne 0x1004a65e
lock inc dword [eax]
jmp 0x1004a69c
mov eax, dword [ecx]
lea edx, [edi + 4]
push 2
push dword [edx]
mov dword [ebp - 0x14c], edx
call dword [eax]
mov edi, eax
test edi, edi
je 0x1004a860
mov ecx, dword [ebp - 0x14c]
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x150]
inc eax
push eax
push ecx
push eax
lea eax, [edi + 0x10]
push eax
call fcn.1000a710
add esp, 0x10
or eax, 0xffffffff
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1004a6b3
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [edi + 0x10]
mov dword [esi + 0x30], eax
jmp 0x1004a6cd
mov ecx, dword [ebp - 0x150]
push dword [ecx - 0xc]
push ecx
lea ecx, [esi + 0x30]
call fcn.10009e80
mov edi, dword [esi - 0x20]
lea eax, [ebp - 0x34]
push 0x30
push 0
push eax
call fcn.100837f0
push 0x110
lea eax, [ebp - 0x144]
mov dword [ebp - 0x148], 0x114
push 0
push eax
call fcn.100837f0
add esp, 0x18
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1004a71c
cmp dword [ebp - 0x144], 6
mov eax, 0x30
jae 0x1004a721
mov eax, 0x2c
push edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
call dword [sym.imp.USER32.dll_GetParent]
or dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], eax
mov eax, dword [0x100e1724]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x433
push dword [esi + 0x2c]
mov dword [ebp - 0x28], edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call edi
mov eax, dword [ebp - 0x154]
lea ecx, [ebp - 0x34]
push 0
push dword [eax]
push 0
push 0
push dword [esi - 0x20]
push 0
call fcn.10049660
lea eax, [ebp - 0x34]
push eax
push 0
push 0x432
push dword [esi + 0x2c]
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100763b4
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [esi - 0x20]
lea eax, [ebp - 0x34]
push 0x30
push 0
push eax
call fcn.100837f0
push 0x110
lea eax, [ebp - 0x144]
mov dword [ebp - 0x148], 0x114
push 0
push eax
call fcn.100837f0
add esp, 0x18
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1004a7f5
cmp dword [ebp - 0x144], 6
mov eax, 0x30
jae 0x1004a7fa
mov eax, 0x2c
push edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
call dword [sym.imp.USER32.dll_GetParent]
or dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], eax
mov eax, dword [0x100e1724]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x433
push dword [esi + 0x2c]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call ebx
lea ecx, [esi + 0x30]
call fcn.1000a6b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100763b4
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.1000a7c0
call fcn.1000a7a0
int3