Function at 0x40c130
Capabilities:
Check os version

Disassembly:
sub esp, 0x5c4
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x5bc], eax
push ebx
push ebp
push esi
push edi
call fcn.0040bed0
push 0x28
push 0x46f0f8
lea esi, [esp + 0x1c0]
call fcn.004047a0
add esp, 8
mov ecx, 0x46f0f8
call fcn.0040afd0
mov ebp, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [esp + 0x18]
push eax
push 0x45512c
push 1
push 0
push 0x4553ac
call ebp
test eax, eax
jne 0x40c1b5
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push 0x46bf84
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, 0x46bf84
mov edi, esi
call fcn.0040abe0
lea eax, [esp + 0x1b8]
push 0
push eax
call fcn.0040b050
push 0x46f0f8
push str.CLSID_s
mov ecx, 0x40
lea ebx, [esp + 0x148]
call fcn.00402d10
mov ecx, ebx
push ecx
push SysReAllocString
call fcn.0040a610
add esp, 0x18
lea ecx, [esp + 0x1b8]
mov esi, 0x46bee4
call fcn.0040fdb0
test eax, eax
jne 0x40c20b
xor eax, eax
jmp 0x40c46d
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x24]
cmp eax, 6
jne 0x40c266
cmp dword [esp + 0x28], 2
jae 0x40c268
push 0x46be94
lea ecx, [esp + 0x1bc]
push ecx
call sub.IMM32.dll_ImmInstallIMEW
mov dword [esp + 0x18], eax
test eax, eax
je 0x40c204
test dword [0x46cbc4], 0x20000000
jne 0x40c2d9
mov eax, 1
jmp 0x40c46d
jbe 0x40c236
test dword [0x46cbc4], 0x20000000
je 0x40c204
test dword [0x46cf14], 0x7000
jne 0x40c2e9
push 0x46fb74
push str._sconfig.dsc
mov ecx, 0x104
lea ebx, [esp + 0x3c8]
call fcn.00402d10
lea eax, [esp + 0x24]
push eax
mov eax, ebx
call fcn.0040fca0
add esp, 0xc
mov edi, 0x1000
test eax, eax
je 0x40c2d1
mov esi, dword [esp + 0x1c]
push str.dd_ime_config_data_default
mov eax, esi
call fcn.0040fc50
or dword [eax + 0x88], edi
add esp, 4
call fcn.00409280
or dword [0x46cf14], edi
jmp 0x40c2e9
test dword [0x46cf14], 0x7000
je 0x40c25c
lea ecx, [esp + 0x1b8]
mov edi, 0x46bee4
call fcn.0040fbd0
lea edx, [esp + 0x1b8]
push edx
push 0x46f0f8
call fcn.0040b570
add esp, 8
lea eax, [esp + 0x14]
push eax
push 0x45512c
mov edi, 1
push edi
push 0
push 0x4553ac
call ebp
test eax, eax
jl 0x40c46b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40c46b
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push 0x46bf84
push eax
call edx
test eax, eax
jl 0x40c449
lea eax, [esp + 0x1b8]
lea edx, [eax + 2]
jmp 0x40c360
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c360
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, 0x46be94
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c380
mov ecx, dword [esp + 0x14]
push 0
push edx
sub eax, esi
mov esi, dword [ecx]
lea edx, [esp + 0x1c0]
push edx
sar eax, 1
push eax
movzx eax, word [0x46bfe4]
push 0x46be94
push 0x46bf84
push eax
push 0x46bf84
push ecx
mov ecx, dword [esi + 0x14]
call ecx
test eax, eax
jl 0x40c449
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40c3f1
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
push ecx
movzx ecx, word [0x46bfe4]
push 0x46bf84
push ecx
push 0x46bf84
push eax
call edx
test eax, eax
jl 0x40c449
mov edx, dword [0x46cf14]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
and edx, 0x7000
push edx
movzx edx, word [0x46bfe4]
push 0x46bf84
push edx
push 0x46bf84
push eax
mov eax, dword [ecx + 0x4c]
call eax
mov edx, dword [0x46cf14]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
and edx, 0x7000
push edx
movzx edx, word [0x46bfe4]
push 0x46bf84
push edx
push 0x46bf84
push eax
mov eax, dword [ecx + 0x44]
call eax
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test edi, edi
jne 0x40c204
mov edi, 0x46bf84
mov esi, edi
call fcn.0040b6e0
jmp 0x40c46d
mov eax, edi
mov ecx, dword [esp + 0x5cc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00435010
add esp, 0x5c4
ret