Function at 0x40f3f0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5665a7
mov eax, dword fs:[0]
push eax
sub esp, 0x8c8
mov eax, dword [0x5d51c0]
xor eax, esp
mov dword [esp + 0x8c0], eax
push ebx
push esi
push edi
mov eax, dword [0x5d51c0]
xor eax, esp
push eax
lea eax, [esp + 0x8d8]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x30], ebx
call fcn.004248f0
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00429e63
push 0xffffff
mov eax, dword [eax + 0x2b60]
mov dword [ebx + 0x1fc], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [ebx + 0x180]
call fcn.004303b3
call fcn.004206b9
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40f489
push 0x80004005
call fcn.00405730
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov dword [esp + 0x8e0], 0
call fcn.00423eb2
push 0xb8
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
push eax
lea ecx, [ebx + 0x218]
call fcn.004303b3
lea eax, [ebx + 0x220]
push eax
push 0x18
push dword [ebx + 0x21c]
call dword [sym.imp.GDI32.dll_GetObjectW]
lea esi, [ebx + 0x208]
push esi
push dword [ebx + 0xb8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebx + 0x210]
mov eax, dword [ebx + 0x224]
sub ecx, dword [esi]
add eax, eax
cmp eax, ecx
jge 0x40f515
call fcn.00423eb2
push 0x1000
push 0
push 0
push 0
push 0x2748
jmp 0x40f52a
call fcn.00423eb2
push 0x1000
push 0
push 0
push 0
push 0xb8
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push 0x273b
mov esi, eax
call fcn.004202c9
test eax, eax
je 0x40f557
push 0x273b
push eax
lea ecx, [esp + 0x20]
call fcn.004053d0
mov edi, dword [esp + 0x18]
cmp dword [edi - 4], 1
jle 0x40f56d
push dword [edi - 0xc]
lea ecx, [esp + 0x1c]
call fcn.00405590
mov edi, dword [esp + 0x18]
push edi
lea ecx, [ebx + 0x188]
call fcn.0042eea0
push dword [edi - 8]
push edi
call fcn.0054b654
add esp, 8
test eax, eax
js 0x40fc72
cmp eax, dword [edi - 8]
jg 0x40fc72
push esi
xor ecx, ecx
mov dword [edi - 0xc], eax
push ecx
push 0x172
mov word [edi + eax*2], cx
push dword [ebx + 0xb8]
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.004206b9
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40f5ce
push 0x80004005
call fcn.00405730
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov byte [esp + 0x8e0], 1
cmp dword [0x5e0438], 1
jle 0x40f602
push 0x271b
call fcn.004202c9
test eax, eax
je 0x40f623
push 0x271b
jmp 0x40f615
push 0x2739
call fcn.004202c9
test eax, eax
je 0x40f623
push 0x2739
push eax
lea ecx, [esp + 0x18]
call fcn.004053d0
mov esi, dword [esp + 0x10]
push 0
push 0
push 0x14b
push dword [ebx + 0x12c]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x273a
call fcn.004202c9
test eax, eax
je 0x40f659
push 0x273a
push eax
lea ecx, [esp + 0x18]
call fcn.004053d0
mov esi, dword [esp + 0x10]
cmp dword [esi - 4], 1
jle 0x40f66f
push dword [esi - 0xc]
lea ecx, [esp + 0x14]
call fcn.00405590
mov esi, dword [esp + 0x10]
push esi
push 0
push 0x143
push dword [ebx + 0x12c]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi - 8]
push esi
call fcn.0054b654
add esp, 8
test eax, eax
js 0x40fc72
cmp eax, dword [esi - 8]
jg 0x40fc72
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0x271d
mov word [esi + eax*2], cx
call fcn.004202c9
test eax, eax
je 0x40f6ca
push 0x271d
push eax
lea ecx, [esp + 0x18]
call fcn.004053d0
mov esi, dword [esp + 0x10]
cmp dword [esi - 4], 1
jle 0x40f6e0
push dword [esi - 0xc]
lea ecx, [esp + 0x14]
call fcn.00405590
mov esi, dword [esp + 0x10]
push esi
push 0
push 0x143
push dword [ebx + 0x12c]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi - 8]
push esi
call fcn.0054b654
add esp, 8
test eax, eax
js 0x40fc72
cmp eax, dword [esi - 8]
jg 0x40fc72
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
movdqu xmm0, xmmword [str.SoftwareHncHwp9.6HwpFrame_KOR]
mov eax, dword [0x5b09e8]
push 0x1c4
movdqu xmmword [esp + 0x6c8], xmm0
mov dword [esp + 0x708], eax
lea eax, [esp + 0x70c]
movdqu xmm0, xmmword [0x5b09b8]
push ecx
push eax
movdqu xmmword [esp + 0x6e0], xmm0
movdqu xmm0, xmmword [0x5b09c8]
movdqu xmmword [esp + 0x6f0], xmm0
movdqu xmm0, xmmword [0x5b09d8]
movdqu xmmword [esp + 0x700], xmm0
call fcn.0054cbf0
movdqu xmm0, xmmword [str.SoftwareHncHCell9.6HCellFrame_KOR]
mov eax, dword [0x5b0a38]
add esp, 0xc
mov dword [esp + 0xf4], eax
lea eax, [esp + 0xf8]
movdqu xmmword [esp + 0xac], xmm0
movdqu xmm0, xmmword [0x5b0a00]
push 0x1bc
push 0
movdqu xmmword [esp + 0xc4], xmm0
push eax
movdqu xmm0, xmmword [0x5b0a10]
movdqu xmmword [esp + 0xd8], xmm0
movdqu xmm0, xmmword [0x5b0a20]
movdqu xmmword [esp + 0xe8], xmm0
movq xmm0, qword [0x5b0a30]
movq qword [esp + 0xf8], xmm0
call fcn.0054cbf0
movdqu xmm0, xmmword [str.SoftwareHncHShow9.6HShowFrame_KOR]
mov eax, dword [0x5b0a88]
add esp, 0xc
mov dword [esp + 0x504], eax
lea eax, [esp + 0x508]
movdqu xmmword [esp + 0x4bc], xmm0
movdqu xmm0, xmmword [0x5b0a50]
push 0x1bc
push 0
movdqu xmmword [esp + 0x4d4], xmm0
push eax
movdqu xmm0, xmmword [0x5b0a60]
movdqu xmmword [esp + 0x4e8], xmm0
movdqu xmm0, xmmword [0x5b0a70]
movdqu xmmword [esp + 0x4f8], xmm0
movq xmm0, qword [0x5b0a80]
movq qword [esp + 0x508], xmm0
call fcn.0054cbf0
movdqu xmm0, xmmword [str.SoftwareHncHword9.6HwordFrame_KOR]
mov eax, dword [0x5b0ad8]
add esp, 0xc
mov dword [esp + 0x2fc], eax
lea eax, [esp + 0x300]
movdqu xmmword [esp + 0x2b4], xmm0
movdqu xmm0, xmmword [0x5b0aa0]
push 0x1bc
push 0
movdqu xmmword [esp + 0x2cc], xmm0
push eax
movdqu xmm0, xmmword [0x5b0ab0]
movdqu xmmword [esp + 0x2e0], xmm0
movdqu xmm0, xmmword [0x5b0ac0]
movdqu xmmword [esp + 0x2f0], xmm0
movq xmm0, qword [0x5b0ad0]
movq qword [esp + 0x300], xmm0
call fcn.0054cbf0
add esp, 0xc
mov dword [esp + 0x24], 0
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
lea eax, [esp + 0x6d0]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40f99a
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
lea eax, [esp + 0xb8]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40f99a
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
lea eax, [esp + 0x4c8]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40f99a
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
lea eax, [esp + 0x2c0]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40f99a
push 0
push 0
push 0x14e
push dword [ebx + 0x12c]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40fa6f
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push str.DefaultToolbarSet
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40fa6f
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041f7ba
add esp, 4
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x24]
push ecx
push eax
push 0
push 0
push str.DefaultToolbarSet
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x1c]
mov ecx, str.DefaultSet_Office9
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40fa26
test dx, dx
je 0x40fa22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40fa26
add eax, 4
add ecx, 4
test dx, dx
jne 0x40fa00
xor eax, eax
jmp 0x40fa2b
sbb eax, eax
or eax, 1
push 0
test eax, eax
jne 0x40fa47
push eax
push 0x14e
push dword [ebx + 0x12c]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
jmp 0x40fa5c
push 1
push 0x14e
push dword [ebx + 0x12c]
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
mov ecx, ebx
call fcn.004105c0
push dword [esp + 0x1c]
call fcn.0041f7c3
add esp, 4
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x5ad394
lea ecx, [esp + 0x24]
call fcn.004058d0
mov byte [esp + 0x8e0], 2
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov ebx, esp
push eax
call fcn.004092f0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
lea eax, [esp + 0x20]
push eax
call fcn.00408c80
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x8e4], 3
call fcn.00409360
mov byte [esp + 0x8e0], 2
or eax, 0xffffffff
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40fae9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
movdqa xmm0, xmmword [0x5b26f0]
xor esi, esi
mov edi, dword [esp + 0x30]
movdqu xmmword [esp + 0x98], xmm0
mov dword [esp + 0xa8], 0x402
jmp 0x40fb10
push 0x5c
lea eax, [esp + 0x38]
push 0
push eax
call fcn.0054cbf0
mov ebx, dword [esp + esi*4 + 0xa4]
add esp, 0xc
mov ecx, edi
push ebx
call fcn.0042e5d4
push 0
push 0
push 0x31
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.0043062c
lea ecx, [esp + 0x34]
push ecx
push 0x5c
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_GetObjectW]
push dword [esp + 0x20]
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], vtable.CFont.0
lea eax, [esp + 0x34]
mov byte [esp + 0x8e0], 4
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [esp + 0x2c]
call fcn.004303b3
push ebx
mov ecx, edi
call fcn.0042e5d4
push 1
push dword [esp + 0x30]
push 0x30
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x28]
call fcn.0043052e
mov byte [esp + 0x8e0], 2
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], vtable.CFont.0
call fcn.00409160
inc esi
cmp esi, 5
jl 0x40fb10
mov byte [esp + 0x8e0], 1
or ebx, 0xffffffff
mov edx, dword [esp + 0x20]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
test ecx, ecx
jg 0x40fc06
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [esp + 0x8e0], 0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40fc27
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [esp + 0x8e0], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40fc49
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [esp + 0x8d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8c0]
xor ecx, esp
call fcn.0054a22c
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00405730
int3