Function at 0x10004bf0
Capabilities:
Check os version

Disassembly:
sub esp, 0x134
mov eax, dword [0x1003c360]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
mov ebx, dword [esp + 0x144]
cmp ebx, 0x113
push ebp
mov ebp, dword [esp + 0x144]
push esi
mov esi, dword [esp + 0x154]
push edi
mov edi, dword [esp + 0x148]
mov dword [esp + 0x10], ebp
jg 0x100050ef
je 0x100050b9
lea eax, [ebx - 0xf]
cmp eax, 0x75
ja case.0x1000510c.515
movzx eax, byte [eax + 0x10005194]
jmp dword [eax*4 + 0x10005178]
push 0x11c
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.10013e10
add esp, 0xc
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x34], 2
jne 0x10004c85
cmp dword [esp + 0x28], 5
je case.0x1000510c.515
cmp byte [edi + 0x8c], 0
je case.0x1000510c.515
mov ecx, edi
call fcn.10003af0
mov eax, dword [esp + 0x154]
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x3c]
push esi
push eax
push ebx
push ecx
push edx
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100131c3
add esp, 0x134
ret 0x14
mov eax, dword [esi]
sub eax, 0
je 0x10004d36
sub eax, 1
je 0x10004d0a
sub eax, 1
jne 0x10004de3
cmp dword [esi + 4], 3
jne case.0x1000510c.513
mov esi, dword [esi + 8]
mov al, byte [esi]
mov byte [edi + 0x1cc], al
mov cl, byte [esi + 1]
mov byte [edi + 0x1d4], cl
mov dl, byte [esi + 2]
mov byte [edi + 0x1d5], dl
jmp 0x10004de3
cmp dword [esi + 4], 0xc
jne case.0x1000510c.513
mov esi, dword [esi + 8]
mov eax, dword [esi]
mov dword [edi + 0x1c8], eax
mov ecx, dword [esi + 4]
mov dword [edi + 0x1d0], ecx
mov edx, dword [esi + 8]
mov dword [edi + 0x1d8], edx
jmp 0x10004de3
cmp dword [esi + 4], 0x20c
jne case.0x1000510c.513
mov esi, dword [esi + 8]
lea edx, [esi + 4]
mov eax, edx
mov dword [esp + 0x10], edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004d52
sub eax, ebx
sar eax, 1
je 0x10004dc5
mov eax, edx
xor ebp, ebp
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004d70
sub eax, edx
sar eax, 1
je 0x10004db9
mov edx, dword [esp + 0x10]
lea esi, [edi + 0x240]
jmp 0x10004d90
mov ax, word [edx]
mov word [esi], ax
mov eax, dword [esp + 0x10]
add ebp, 1
add edx, 2
add esi, 2
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004da6
sub eax, ebx
sar eax, 1
cmp ebp, eax
jb 0x10004d90
mov word [edi + ebp*2 + 0x240], 0
jmp 0x10004de3
mov ecx, dword [esi]
mov edx, dword [ecx*4 + 0x1003b6bc]
push edx
lea eax, [edi + 0x240]
push 0x1002fff0
push eax
call fcn.10013bcc
add esp, 0xc
mov byte [edi + 0x224], 1
mov byte [edi + 0x225], 1
mov eax, 1
jmp 0x10004cae
cmp byte [edi + 0x88], 0
je 0x10004e64
cmp dword [esp + 0x154], 0x2f
jne case.0x1000510c.515
mov eax, dword [edi + 0x1bc]
cmp eax, 1
jne 0x10004e56
mov edx, dword [edi + 0xc]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
sub eax, dword [esp + 0x18]
sub ecx, dword [esp + 0x14]
mov dword [edi + 0x1bc], 0
cmp ecx, eax
setle dl
mov byte [edi + 0x8b], dl
jmp case.0x1000510c.515
add eax, 1
mov dword [edi + 0x1bc], eax
jmp case.0x1000510c.515
mov eax, dword [esp + 0x154]
cmp eax, 0x18
je 0x10004e79
cmp eax, 0xd
jne case.0x1000510c.515
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub edx, dword [esp + 0x18]
sub eax, dword [esp + 0x14]
mov byte [edi + 0x8c], 1
cmp eax, edx
setle cl
mov byte [edi + 0x8b], cl
jmp case.0x1000510c.515
shr esi, 0x10
cmp si, 0x201
jne 0x10004ed9
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.100034f0
xor eax, eax
jmp 0x10004cae
cmp si, 0x204
jne 0x10004ef9
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.100039e0
xor eax, eax
jmp 0x10004cae
cmp byte [edi + 0x8d], 0
je case.0x1000510c.515
mov eax, dword [edi + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0x11c
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.10013e10
add esp, 0xc
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x34], 2
jne 0x10004f55
cmp dword [esp + 0x28], 5
je case.0x1000510c.515
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov eax, edx
sub eax, dword [esp + 0x18]
mov ebp, ecx
sub ebp, dword [esp + 0x14]
cmp ebp, eax
jle 0x10005015
cmp byte [edi + 0x8b], 0
jne case.0x1000510c.515
mov eax, dword [edi + 0xb0]
sub eax, dword [edi + 0x230]
sub eax, dword [edi + 0x22c]
sub eax, dword [edi + 0x228]
sub eax, dword [edi + 0x90]
cmp dword [esi + 8], eax
je 0x10004fa8
mov dword [esi + 8], eax
mov edx, dword [esp + 0x20]
mov eax, dword [edi + 0x190]
add eax, dword [edi + 0xb8]
sub eax, dword [edi + 0xb0]
cmp dword [esi + 0x10], eax
je 0x10004fc6
mov dword [esi + 0x10], eax
mov edx, dword [esp + 0x20]
mov ecx, 2
cmp dword [esp + 0x34], ecx
jne 0x10004fe7
cmp dword [esp + 0x28], 5
jne 0x10004fe7
sub edx, dword [esp + 0x18]
lea eax, [edx - 4]
cmp dword [esi + 0x14], eax
je 0x10004fe7
mov dword [esi + 0x14], eax
cmp dword [esp + 0x18], 0
jne 0x10005004
cmp dword [esi + 0xc], 0
je case.0x1000510c.515
mov dword [esi + 0xc], 0
jmp case.0x1000510c.515
cmp dword [esi + 0xc], ecx
je case.0x1000510c.515
mov dword [esi + 0xc], ecx
jmp case.0x1000510c.515
cmp byte [edi + 0x8b], 0
je case.0x1000510c.515
mov eax, dword [edi + 0x134]
sub eax, dword [edi + 0x23c]
sub eax, dword [edi + 0x238]
sub eax, dword [edi + 0x234]
sub eax, dword [edi + 0x114]
cmp dword [esi + 0xc], eax
je 0x1000504c
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi + 0x1dc]
add eax, dword [edi + 0x13c]
sub eax, dword [edi + 0x134]
cmp dword [esi + 0x14], eax
je 0x1000506a
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x1c]
mov edx, 2
cmp dword [esp + 0x34], edx
jne 0x1000508b
cmp dword [esp + 0x28], 5
jne 0x1000508b
sub ecx, dword [esp + 0x14]
lea eax, [ecx - 4]
cmp dword [esi + 0x10], eax
je 0x1000508b
mov dword [esi + 0x10], eax
cmp dword [esp + 0x14], 0
jne 0x100050a8
cmp dword [esi + 8], 0
je case.0x1000510c.515
mov dword [esi + 8], 0
jmp case.0x1000510c.515
cmp dword [esi + 8], edx
je case.0x1000510c.515
mov dword [esi + 8], edx
jmp case.0x1000510c.515
cmp dword [esp + 0x154], 0
je case.0x1000510c.515
mov ecx, dword [edi + 8]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esp + 0x154]
push esi
push edx
push 0x113
push ebp
call dword [sym.imp.USER32.dll_DefWindowProcW]
jmp 0x10004cae
cmp ebx, 0x13aa
jg case.0x1000510c.515
je 0x10005169
lea eax, [ebx - 0x200]
cmp eax, 5
ja case.0x1000510c.515
jmp dword [eax*4 + 0x1000520c]
xor eax, eax
jmp 0x10004cae
lea edx, [esp + 0x14]
movzx ecx, si
mov eax, esi
push edx
shr eax, 0x10
push ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 0xc]
shl eax, 0x10
add eax, dword [esp + 0x14]
push eax
push 2
push 0xa0
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [esp + 0x154]
push esi
push edx
push ebx
push ebp
call dword [sym.imp.USER32.dll_DefWindowProcW]
jmp 0x10004cae
mov ecx, edi
call fcn.10003550
xor eax, eax
jmp 0x10004cae