Function at 0x42c230
Capabilities:
Get common file path
Get keyboard layout

Disassembly:
push 0xffffffffffffffff
push 0x602787
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x438]
mov dword fs:[0], eax
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
xor ebp, ebp
push ebp
push ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call esi
mov ebx, eax
lea eax, [ebx*4]
push eax
push 0x40
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x14], edi
je 0x42c5a1
push edi
push ebx
call esi
push 0x1fc
lea ecx, [esp + 0x32]
push ebp
push ecx
mov word [esp + 0x38], bp
call fcn.005da970
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x677600
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x20], esi
test ebx, ebx
mov dword [esp + 0x440], ebp
jle 0x42c3c5
jmp 0x42c2f0
mov edi, dword [edi + ebp*4]
push 0x1fe
lea ecx, [esp + 0x30]
push 0
push ecx
mov dword [esp + 0x30], edi
call fcn.005da970
add esp, 0xc
push 0xff
lea edx, [esp + 0x30]
push edx
push edi
call sub.IMM32.dll_ImmGetIMEFileNameW
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c322
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x2c]
mov ebx, eax
push ecx
lea eax, [esp + 0x24]
call fcn.004037a0
mov esi, dword [esp + 0x20]
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x42c368
mov ecx, edi
lea eax, [esp + 0x20]
call fcn.00403540
mov esi, dword [esp + 0x20]
lea edx, [edi + 1]
push edx
push esi
call fcn.005d45bb
add esp, 8
test edi, edi
jl 0x42c491
cmp edi, dword [esi - 8]
jg 0x42c491
mov dword [esi - 0xc], edi
mov word [esi + edi*2], 0
cmp dword [esi - 0xc], 0
jl 0x42c3b4
push str.qqpinyin.ime
push esi
call fcn.005d2e73
add esp, 8
test eax, eax
je 0x42c3b4
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x42c46f
mov edi, dword [esp + 0x14]
add ebp, 1
cmp ebp, dword [esp + 0x28]
jl 0x42c2f0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [esp + 0x1c], 0
jne 0x42c617
push 0x104
lea ecx, [esp + 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x230]
call fcn.00409dd0
push 1
push 0x62454c
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x44c], 1
call fcn.0040aee0
push 0xc
push str.qqpinyin.ime
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040aee0
mov edx, dword [esp + 0x14]
push 0x626db8
push edx
call sub.IMM32.dll_ImmInstallIMEW
mov edi, eax
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
test edi, edi
mov byte [esp + 0x440], 2
je 0x42c49b
push edi
push str._08X
lea edi, [esp + 0x20]
call fcn.0040ac80
add esp, 8
jmp 0x42c524
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], 1
mov dword [0x6784b8], eax
mov dword [esp + 0x18], 1
jmp 0x42c3c5
push 0x80070057
call fcn.00403650
lea eax, [esp + 0x1c]
push eax
mov ecx, str.qqpinyin.ime
call fcn.00409dd0
lea ecx, [esp + 0x1c]
push ecx
mov bl, 3
lea ecx, [esp + 0x28]
mov byte [esp + 0x444], bl
call fcn.0042c670
add esp, 4
lea edi, [esp + 0x18]
mov byte [esp + 0x440], 4
call fcn.0040ab90
mov byte [esp + 0x440], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42c4fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x440], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c524
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
cmp dword [edi - 0xc], 0
jne 0x42c5a8
lea eax, [edi - 0x10]
mov byte [esp + 0x440], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c552
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x440], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c57a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x440], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c5a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x42c642
push 0x10
push 0
push edi
call fcn.005d419b
add esp, 0xc
push 0x10
push edi
mov dword [0x6784b8], eax
mov dword [esp + 0x20], 1
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
lea eax, [edi - 0x10]
mov byte [esp + 0x440], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c5ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x440], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c617
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x440], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c63e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x438]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.005d28b3
add esp, 0x430
ret