Function at 0x1046cee
Capabilities:
Check os version

Disassembly:
push 0x414
push 0x1015008
call fcn.0106bf63
mov eax, dword [0x1099a38]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c4], eax
mov byte [ebp - 0x120], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x11f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edx, edx
mov dword [ebp - 0x2b8], edx
push 0x28
pop esi
mov dword [ebp - 0x2b0], edx
push 0x54
pop ecx
xor eax, eax
lea edi, [ebp - 0x2ac]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x2bc], edx
mov dword [ebp - 0x424], edx
push 0x40
pop ecx
lea edi, [ebp - 0x420]
rep stosd dword es:[edi], eax
mov dword [0x10bd1e0], 0x94
mov edi, 0x10bd1e0
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
call ebx
cmp dword [0x10bd1e4], 4
jbe 0x1046d8a
mov dword [0x10bd1e0], 0x9c
push edi
call ebx
jmp 0x1046d94
call fcn.0103499d
mov byte [0x10bd27a], al
cmp dword [0x10bd1e4], 5
jae 0x1046df8
push 0x1014ff8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x1046e0b
push 0x1014fe8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x1046dfd
xor eax, eax
lea edi, [ebp - 0x314]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x314], 0x14
lea eax, [ebp - 0x314]
push eax
call ecx
movzx eax, word [ebp - 0x310]
shl eax, 0x10
movzx ecx, word [ebp - 0x30c]
or eax, ecx
cmp eax, 0x50050
jl 0x1046e1e
push 0x34
pop esi
jmp 0x1046e1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1014fb4
jmp 0x1046e17
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1014f84
call fcn.01071ac0
pop ecx
pop ecx
push 0x104
lea eax, [ebp - 0x120]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x109a6d4], eax
cmp byte [0x10bf446], 0
je 0x1046e5f
push 0x10bf446
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2f8], esi
xor eax, eax
cmp esi, 0x34
setne al
dec eax
and eax, 0x1197fe0
add eax, 0x120
mov dword [ebp - 0x2f4], eax
mov eax, dword [ebp - 0x2c4]
mov dword [ebp - 0x2f0], eax
mov dword [ebp - 0x2e0], 5
cmp dword [0x109a6e8], edi
je 0x1046ea8
mov dword [ebp - 0x2dc], 4
jmp 0x1046ec5
cmp dword [0x109ab70], edi
jne 0x1046ebb
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0x2dc], edi
je 0x1046ed4
mov dword [ebp - 0x2dc], 3
cmp dword [ebp + 0xc], edi
je 0x1046ed4
mov dword [0x109a6e0], 1
cmp dword [ebp - 0x2b8], edi
je 0x1046ef1
mov eax, dword [0x10bf550]
cmp eax, edi
je 0x1046ef1
movzx eax, ax
push eax
push dword [ebp - 0x2b8]
jmp 0x1046efc
push 0x44f
push dword [0x109a6d4]
mov esi, dword [sym.imp.USER32.dll_LoadBitmapA]
call esi
mov dword [ebp - 0x2d0], eax
cmp dword [ebp - 0x2b8], 0
je 0x1046f28
mov eax, dword [0x10bf554]
test eax, eax
je 0x1046f28
movzx eax, ax
push eax
push dword [ebp - 0x2b8]
jmp 0x1046f80
mov dword [0x10bd1e0], 0x94
mov edi, 0x10bd1e0
push edi
call ebx
cmp dword [0x10bd1e4], 4
jbe 0x1046f52
mov dword [0x10bd1e0], 0x9c
push edi
call ebx
jmp 0x1046f5c
call fcn.0103499d
mov byte [0x10bd27a], al
cmp dword [0x10bd1e4], 5
jb 0x1046f75
cmp dword [0x10bd1e8], 1
jb 0x1046f75
push 0x2b0d
jmp 0x1046f7a
push 0x44e
push dword [0x109a6d4]
call esi
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebp - 0x2e0]
shl eax, 2
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov esi, eax
mov dword [ebp - 0x2b4], esi
test esi, esi
jne 0x1046fbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1014f38
call fcn.01071ac0
pop ecx
xor eax, eax
jmp 0x104738d
mov ecx, dword [ebp - 0x2e0]
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [ebp - 0x2d8], esi
mov dword [ebp - 0x2d4], 0x104501c
mov dword [ebp - 0x424], 0x34
mov dword [ebp - 0x420], 0x800
mov dword [ebp - 0x418], 0x453
mov dword [ebp - 0x40c], 0x104589b
mov ebx, 0x10c6800
mov eax, ebx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x104700c
sub eax, edi
mov dword [ebp - 0x300], eax
je 0x1047027
mov dword [ebp - 0x420], 0x820
lea eax, [ebp - 0x424]
push eax
mov edi, dword [sym.imp.COMCTL32.dll_CreatePropertySheetPageW]
call edi
mov dword [esi], eax
mov dword [ebp - 0x3f0], 0x34
mov dword [ebp - 0x3ec], 0x3000
mov dword [ebp - 0x3e4], 0x454
push 0x2000
mov esi, 0x10c3b80
push esi
push 0xf08b
push 0
call fcn.01031fb1
push esi
call dword [sym.imp.msvcrt.dll__wcsdup]
pop ecx
mov dword [ebp - 0x3c8], eax
mov dword [ebp - 0x3d8], 0x1045a7f
mov eax, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x104708a
sub eax, ecx
mov dword [ebp - 0x318], eax
je 0x10470a2
or dword [ebp - 0x3ec], 0x20
lea eax, [ebp - 0x3f0]
push eax
call edi
mov ecx, dword [ebp - 0x2b4]
mov dword [ecx + 4], eax
mov dword [ebp - 0x3bc], 0x34
mov dword [ebp - 0x3b8], 0x3000
mov dword [ebp - 0x3b0], 0x455
push 0x2000
push esi
push 0xf08c
push 0
call fcn.01031fb1
push esi
call dword [sym.imp.msvcrt.dll__wcsdup]
pop ecx
mov dword [ebp - 0x394], eax
mov dword [ebp - 0x3a4], 0x1045f60
mov eax, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1047101
sub eax, ecx
mov dword [ebp - 0x2fc], eax
je 0x1047119
or dword [ebp - 0x3b8], 0x20
lea eax, [ebp - 0x3bc]
push eax
call edi
mov ecx, dword [ebp - 0x2b4]
mov dword [ecx + 8], eax
mov dword [ebp - 0x388], 0x34
mov dword [ebp - 0x384], 0x3000
mov dword [ebp - 0x37c], 0x456
xor eax, eax
push 0x2000
push esi
cmp dword [ebp + 0xc], eax
je 0x104715d
push 0xf0c9
jmp 0x1047162
push 0xf08d
push eax
call fcn.01031fb1
push esi
call dword [sym.imp.msvcrt.dll__wcsdup]
pop ecx
mov dword [ebp - 0x360], eax
mov dword [ebp - 0x370], 0x10466c8
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1047185
sub eax, esi
mov dword [ebp - 0x320], eax
je 0x104719d
or dword [ebp - 0x384], 0x20
lea eax, [ebp - 0x388]
push eax
call edi
mov esi, dword [ebp - 0x2b4]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x354], 0x34
mov dword [ebp - 0x350], 0x800
mov dword [ebp - 0x348], 0x457
mov dword [ebp - 0x33c], 0x1046924
lea eax, [ebx + 1]
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x10471da
sub ebx, eax
mov dword [ebp - 0x31c], ebx
je 0x10471f5
mov dword [ebp - 0x350], 0x820
lea eax, [ebp - 0x354]
push eax
call edi
mov dword [esi + 0x10], eax
mov dword [ebp - 0x2b0], 0x154
xor ebx, ebx
push ebx
lea eax, [ebp - 0x2b0]
push eax
push ebx
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0xf
pop ecx
lea esi, [ebp - 0x198]
lea edi, [ebp - 0x15c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x14c], 0x2bc
push 0x20
lea eax, [ebp - 0x140]
push eax
push 0xf0ad
push ebx
call fcn.010312a2
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
lea eax, [eax + eax*2]
shl eax, 2
cdq
push 0xffffffffffffffb8
pop ecx
idiv ecx
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [0x10c5b80], eax
push esi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [0x109a6e8], ebx
jne 0x1047353
mov eax, dword [0x10bd328]
cmp eax, ebx
je 0x104731c
push 0x1014f1c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1047309
mov dword [ebp - 4], ebx
push ebx
push fcn.01045242
lea ecx, [ebp - 0x2f8]
push ecx
call eax
mov dword [ebp - 0x2bc], eax
push eax
push 0x1014ee0
call fcn.01071ac0
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x104731c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1014e48
call fcn.01071ac0
pop ecx
pop ecx
cmp dword [ebp - 0x2bc], ebx
je 0x1047353
push dword [ebp - 0x2bc]
push 0x1014e0c
call fcn.01071ac0
push dword [ebp - 0x2b4]
call dword [sym.imp.msvcrt.dll_free]
add esp, 0xc
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x104738e
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x2f8]
push eax
call dword [sym.imp.COMCTL32.dll_PropertySheetW]
mov esi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [0x10c5b80]
cmp eax, ebx
je 0x104737f
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x2b4]
call dword [sym.imp.msvcrt.dll_free]
mov eax, esi
pop ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0106bc50
call fcn.0106bf9e
ret 8