Function at 0x430070
Capabilities:
Check os version

Disassembly:
sub esp, 0x1cc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1dc]
test esi, esi
push edi
je 0x4302b3
mov eax, dword [esp + 0x1e4]
test eax, eax
je 0x4302b3
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0x94
call ebx
test eax, eax
je 0x4300bc
cmp dword [esp + 0x24], 6
jb 0x4301b5
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.user32.dll
xor edi, edi
call ebp
mov esi, eax
test esi, esi
je 0x43010d
push str.SetProcessDpiAwarenessContext
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x4300f8
push 0xfffffffffffffffc
call ebx
test eax, eax
jne 0x4300f3
push 0xfffffffffffffffd
call ebx
test eax, eax
je 0x4300f8
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x4301ae
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 0xb4]
mov dword [esp + 0xb4], 0x94
push ecx
call ebx
test eax, eax
je 0x430130
cmp dword [esp + 0xb8], 6
jb 0x4301ae
push str.shcore.dll
xor esi, esi
call ebp
mov edi, eax
test edi, edi
je 0x430165
push str.SetProcessDpiAwareness
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43015a
push 2
call eax
mov esi, eax
neg esi
sbb esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
jne 0x4301ae
lea edx, [esp + 0x148]
mov dword [esp + 0x148], 0x94
push edx
call ebx
test eax, eax
je 0x430188
cmp dword [esp + 0x14c], 6
jb 0x4301ae
push str.user32.dll
call ebp
mov esi, eax
test esi, esi
je 0x4301ae
push str.SetProcessDPIAware
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4301a7
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [esp + 0x1e0]
mov eax, dword [esp + 0x1e4]
cmp dword [eax], 1
jne 0x4302a3
sub esp, 0x10
mov ecx, esi
mov edx, esp
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
call fcn.00444060
add esp, 0x10
test eax, eax
jne 0x4302a3
sub esp, 0x10
mov edx, esi
mov eax, esp
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x20]
push eax
call fcn.00443c70
mov ecx, eax
mov edx, esi
add esp, 4
mov edi, dword [ecx]
mov dword [edx], edi
mov edi, dword [ecx + 4]
mov dword [edx + 4], edi
mov edi, dword [ecx + 8]
mov dword [edx + 8], edi
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, dword [eax]
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
call fcn.00444060
add esp, 0x10
test eax, eax
jne 0x4302a3
lea ecx, [esp + 0x10]
push ecx
call fcn.00443bb0
mov edx, eax
sub esp, 0xc
mov ecx, dword [edx]
mov dword [esi], ecx
mov ecx, dword [edx + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edx + 8]
mov dword [esi + 8], ecx
mov ecx, esp
mov edx, dword [edx + 0xc]
mov dword [esi + 0xc], edx
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.00444060
add esp, 0x10
test eax, eax
je 0x4302b3
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1cc
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1cc
ret