Function at 0x4c2d20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5148c6
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x572bb0]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x572bb0]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x1c]
push 0
push eax
push 0
xorps xmm0, xmm0
push 0x30
movdqu xmmword [esp + 0x2c], xmm0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov edi, eax
call esi
push 0x110
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x44]
push 0
push eax
call fcn.004ef3a0
add esp, 0xc
mov dword [esp + 0x3c], 0x114
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x40], 6
jne 0x4c2e0d
cmp dword [esp + 0x44], 2
jne 0x4c2e0d
push 0
push str.ImmersiveGutter
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x4c2e0d
lea ecx, [esp + 0x2c]
xorps xmm0, xmm0
push ecx
push eax
movdqu xmmword [esp + 0x34], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jle 0x4c2e00
mov edi, ecx
jmp 0x4c2e0d
xor ecx, ecx
cmp dword [esp + 0x34], eax
cmove eax, ecx
mov dword [esp + 0x1c], eax
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4c2e29
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x168], 0
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
test ecx, ecx
je 0x4c2e64
test esi, esi
jne 0x4c2e64
push 1
push 0x5536f0
lea ecx, [esp + 0x1c]
call fcn.004725a0
jmp 0x4c2eb7
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
sub edx, ecx
cmp edx, edi
jne 0x4c2e8a
cmp eax, dword [esp + 0x18]
jae 0x4c2e8a
push 1
push 0x54adc8
lea ecx, [esp + 0x1c]
call fcn.004725a0
jmp 0x4c2eb7
sub eax, esi
cmp edx, edi
je 0x4c2ea1
cmp eax, dword [esp + 0x18]
jne 0x4c2ea1
test ecx, ecx
jne 0x4c2eb7
push 0x54ce3c
jmp 0x4c2eae
test ecx, ecx
jne 0x4c2eb7
test esi, esi
je 0x4c2eb7
push 0x5536f4
lea ecx, [esp + 0x18]
call fcn.00471e60
call fcn.00460220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4c2ed3
push 0x80004005
call fcn.004712d0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x168], 1
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push edx
push esi
push ecx
push eax
push dword [esp + 0x24]
sub edx, eax
sub esi, ecx
push edx
push esi
lea eax, [esp + 0x34]
push str.__width__:__d____height__:__d____taskbarLocation__:___s_____top__:__d____left__:__d____right__:__d____bottom__:__d
push eax
call fcn.00472d30
mov esi, dword [esp + 0x3c]
add esp, 0x24
test ebx, ebx
je 0x4c2f3f
mov eax, 8
mov word [ebx], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x4c2f3c
call fcn.004722b0
mov dword [ebx + 8], eax
lea edx, [esi - 0x10]
mov byte [esp + 0x168], 0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4c2f63
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x168], 0xffffffff
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4c2f89
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.004e94b7
mov esp, ebp
pop ebp
ret 4