Function at 0x4222f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fad0
mov eax, dword fs:[0]
push eax
sub esp, 0xb7c
mov eax, dword [0x4c9890]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
call fcn.00413810
push edi
call fcn.00411330
add esp, 4
push 0x4a809c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
lea eax, [ebp - 0xb58]
push eax
mov dword [ebp - 0xb58], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test esi, esi
je 0x42252b
mov eax, dword [ebp - 0xb54]
cmp eax, 5
jb 0x42252b
jne 0x422389
cmp dword [ebp - 0xb50], 1
jne 0x422389
cmp word [ebp - 0xa44], 2
jb 0x42252b
push 0
lea eax, [ebp - 0xb6c]
push eax
lea eax, [ebp - 0xb5c]
push eax
mov dword [ebp - 0xb6c], 1
mov dword [ebp - 0xb68], 0
mov dword [ebp - 0xb64], 0
mov dword [ebp - 0xb60], 0
call sub.gdiplus.dll_GdiplusStartup
mov eax, dword [0x4cb270]
test al, 1
jne 0x4223d7
or eax, 1
mov dword [0x4cb270], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.CUnoGlobalOutput::Instance____m_gdwProcessID___d
mov dword [0x4cab90], eax
call fcn.00413860
push str.AP_Launch
call fcn.004010d0
add esp, 0xc
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.00405270
push edi
call fcn.0041cd60
add esp, 4
push edi
call fcn.00419e30
add esp, 4
mov dword [0x4cb280], eax
test eax, eax
je 0x4225ca
push dword [ebp + 0x14]
mov ecx, eax
push ebx
call fcn.0041a660
test eax, eax
jne 0x422476
mov ecx, 0x24
mov esi, str._ERROR__pDownloader__InitInstance____return_false._Exit_current_process_
lea edi, [ebp - 0x424]
rep movsd dword es:[edi], dword [esi]
push 0x176
push eax
lea eax, [ebp - 0x392]
push eax
movsw word es:[edi], word [esi]
call fcn.004866f0
lea eax, [ebp - 0x424]
push eax
call fcn.004010d0
add esp, 0x10
jmp 0x4225ca
push str.__tWinMain__Start_main_MessageLoop
call fcn.00413860
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
add esp, 4
lea eax, [ebp - 0xb88]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x4224d5
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4224b0
lea eax, [ebp - 0xb88]
push eax
call edi
lea eax, [ebp - 0xb88]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0xb88]
push eax
call esi
test eax, eax
jne 0x4224b0
push str.__tWinMain__Leave_main_MessageLoop
call fcn.00413860
add esp, 4
mov dword [ebp - 4], 0xffffffff
call fcn.0041ce30
push dword [ebp - 0xb5c]
call sub.gdiplus.dll_GdiplusShutdown
push 0
call fcn.00413da0
add esp, 4
call fcn.004119e0
call fcn.00414020
mov eax, dword [ebp - 0xb80]
jmp 0x4225cc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.004866f0
push 0x400
push 0x104
lea eax, [ebp - 0x834]
push eax
push 0x190
push edi
call fcn.00412610
push 0x104
lea eax, [ebp - 0x21c]
push eax
push edi
call fcn.004135d0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0xa3c]
push 0x103
push eax
call fcn.00401690
push 0x400
push 0x104
lea eax, [ebp - 0x62c]
push eax
push 0xd5
push edi
call fcn.00412610
add esp, 0x50
lea eax, [ebp - 0xa3c]
push 0
push eax
lea eax, [ebp - 0x62c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret 0x10