Function at 0x402d10
Capabilities:
Accept command line arguments
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1e4
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x1e0], eax
push ebx
push esi
push edi
push 0xffffffffffffffff
call dword [sym.imp.IMM32.dll_ImmDisableIME]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
call fcn.0040d9b0
mov eax, dword [0x52cab0]
xor ebx, ebx
cmp byte [eax], bl
je 0x402d5f
mov ecx, dword [0x52caa8]
mov edx, dword [0x52caac]
mov byte [ecx], 1
mov byte [edx], 1
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, ebx
jl 0x402d7d
push ebx
push ebx
push ebx
push 3
push 6
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [esp + 0x34]
push eax
call fcn.0041a6c0
call fcn.0041e260
mov esi, eax
cmp esi, ebx
je 0x402f5a
push 0x110
lea ecx, [esp + 0xd8]
push ebx
push ecx
call fcn.004cf830
add esp, 0xc
lea edx, [esp + 0xd0]
push edx
mov dword [esp + 0xd4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xd4], 5
jne 0x402ef4
cmp dword [esp + 0xd8], ebx
jne 0x402ef4
lea eax, [esp + 0x24]
push eax
mov ecx, str.InstalledVersion
call fcn.00405cc0
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.SoftwareGoogleGoogle_PinyinAutoupdate
call fcn.00405cc0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
xor edx, edx
call fcn.00413da0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402e37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], ebx
je 0x402ed4
lea edx, [esp + 0x10]
push edx
mov ecx, str.1.2.33.79
call fcn.00403260
add esp, 4
test al, al
je 0x402ed4
lea eax, [esp + 0x18]
push eax
mov ecx, str.1.2.33.79
call fcn.00405cc0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, str.InstalledVersion
call fcn.00405cc0
lea edx, [esp + 0x20]
push edx
mov ecx, str.SoftwareGoogleGoogle_PinyinAutoupdate
call fcn.00405cc0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
lea eax, [esp + 0x28]
call fcn.00413fa0
add esp, 8
lea eax, [esp + 0x20]
call fcn.0041f720
lea eax, [esp + 0x1c]
call fcn.0041f720
lea eax, [esp + 0x18]
call fcn.0041f720
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402ef4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x52caa8]
cmp byte [ecx], bl
je 0x402f08
mov edx, dword [0x52caac]
cmp byte [edx], bl
je 0x402f2f
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push ecx
mov dword [eax], 0x68
movzx ecx, word [esi*4 + 0x50683c]
mov eax, esp
mov dword [esp + 0x20], esp
push ebx
mov dword [eax], ecx
call fcn.00405620
add esp, 0xc
lea esi, [esp + 0x34]
call fcn.0041a770
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0x401
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1e0]
xor ecx, esp
call fcn.004c9392
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [0x52a1ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x52a1ec
call eax
lea ecx, [esp + 0x10]
add eax, 0x10
push ecx
mov dword [esp + 0x14], eax
call fcn.00418ea0
add esp, 4
mov esi, 8
test al, al
jne 0x402fbe
lea edx, [esp + 0x5c]
push edx
mov ecx, 0x52fdbc
call fcn.004195a0
add esp, 4
cmp dword [eax + 0x14], esi
jb 0x402fa0
mov eax, dword [eax]
mov edx, eax
lea edi, [esp + 0x10]
call fcn.0045ebf0
cmp dword [esp + 0x70], esi
jb 0x402fbe
mov eax, dword [esp + 0x5c]
push eax
call fcn.004c9387
add esp, 4
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], ebx
je 0x402fe4
lea edx, [esp + 0x10]
push edx
mov ecx, str.GGPY
call fcn.00403260
add esp, 4
test al, al
je 0x402fe4
mov eax, dword [0x52cabc]
mov byte [eax], bl
lea eax, [esp + 0x10]
lea edi, [esp + 0x50]
call fcn.00403900
mov ecx, dword [0x52cab4]
mov dl, byte [ecx]
mov eax, dword [0x52caa8]
mov byte [esp + 0x4c], dl
cmp byte [eax], bl
jne 0x40301b
mov ecx, dword [ebp + 8]
push ecx
lea edi, [esp + 0x38]
call fcn.00402bc0
add esp, 4
jmp 0x4030bd
mov edx, dword [0x52caac]
cmp byte [edx], bl
je 0x40303c
mov eax, dword [ebp + 8]
push eax
lea ebx, [esp + 0x38]
call fcn.004026e0
add esp, 4
xor ebx, ebx
jmp 0x4030bd
mov ecx, dword [0x52cab8]
cmp byte [ecx], bl
je 0x4030b4
lea edx, [esp + 0x14]
push edx
mov ecx, 0x506854
call fcn.00405cc0
lea eax, [esp + 0x5c]
push eax
mov ecx, 0x52fdbc
call fcn.004195a0
add esp, 4
cmp dword [eax + 0x14], esi
jb 0x40306e
mov eax, dword [eax]
mov edx, eax
lea eax, [esp + 0x14]
call fcn.00405130
lea esi, [esp + 0x5c]
call fcn.00438d50
lea eax, [esp + 0x14]
lea edi, [esp + 0x58]
call fcn.00403900
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x43], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
call fcn.0041a960
mov edi, eax
cmp edi, ebx
jne 0x403174
cmp byte [esp + 0x54], bl
je 0x403123
lea ecx, [esp + 0x28]
push ecx
mov edx, 0xf013f
mov eax, str.SoftwareGoogleGoogle_Pinyin_2
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.00404dd0
test eax, eax
jne 0x403114
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x7c]
call fcn.0044ff60
lea esi, [esp + 0x78]
call fcn.004506d0
mov ecx, esi
call fcn.004012b0
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x403123
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x40], bl
je 0x403174
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403149
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x34]
call fcn.0041a770
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0x400
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1e0]
xor ecx, esp
call fcn.004c9392
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403194
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x34]
call fcn.0041a770
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x1ec]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c9392
mov esp, ebp
pop ebp
ret 0x10