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

Disassembly:
push 0xffffffffffffffff
push 0x5a27c7
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
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 0x42cff1
push edi
push ebx
call esi
push 0x1fc
lea ecx, [esp + 0x32]
push ebp
push ecx
mov word [esp + 0x38], bp
call fcn.00580260
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x5fcd20
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x20], esi
test ebx, ebx
mov dword [esp + 0x440], ebp
jle 0x42ce15
jmp 0x42cd40
mov edi, dword [edi + ebp*4]
push 0x1fe
lea ecx, [esp + 0x30]
push 0
push ecx
mov dword [esp + 0x30], edi
call fcn.00580260
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 0x42cd72
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x2c]
mov ebx, eax
push ecx
lea eax, [esp + 0x24]
call fcn.00404050
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 0x42cdb8
mov ecx, edi
lea eax, [esp + 0x20]
call fcn.00403d50
mov esi, dword [esp + 0x20]
lea edx, [edi + 1]
push edx
push esi
call fcn.0057b729
add esp, 8
test edi, edi
jl 0x42cee1
cmp edi, dword [esi - 8]
jg 0x42cee1
mov dword [esi - 0xc], edi
mov word [esi + edi*2], 0
cmp dword [esi - 0xc], 0
jl 0x42ce04
push str.qqpinyin.ime
push esi
call fcn.0057880c
add esp, 8
test eax, eax
je 0x42ce04
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x42cebf
mov edi, dword [esp + 0x14]
add ebp, 1
cmp ebp, dword [esp + 0x28]
jl 0x42cd40
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [esp + 0x1c], 0
jne 0x42d067
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.00404460
push 1
push 0x5bd0e8
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x44c], 1
call fcn.00403fc0
push 0xc
push str.qqpinyin.ime
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403fc0
mov edx, dword [esp + 0x14]
push 0x5bea98
push edx
call sub.IMM32.dll_ImmInstallIMEW
mov edi, eax
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
test edi, edi
mov byte [esp + 0x440], 2
je 0x42ceeb
push edi
push str._08X
lea edi, [esp + 0x20]
call fcn.004126f0
add esp, 8
jmp 0x42cf74
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x1c], 1
mov dword [0x5fdb8c], eax
mov dword [esp + 0x18], 1
jmp 0x42ce15
push 0x80070057
call fcn.00404550
lea eax, [esp + 0x1c]
push eax
mov ecx, str.qqpinyin.ime
call fcn.00404460
lea ecx, [esp + 0x1c]
push ecx
mov bl, 3
lea ecx, [esp + 0x28]
mov byte [esp + 0x444], bl
call fcn.0042d0c0
add esp, 4
lea edi, [esp + 0x18]
mov byte [esp + 0x440], 4
call fcn.004035d0
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 0x42cf4c
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 0x42cf74
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 0x42cff8
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 0x42cfa2
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 0x42cfca
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 0x42cff1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x42d092
push 0x10
push 0
push edi
call fcn.00578c22
add esp, 0xc
push 0x10
push edi
mov dword [0x5fdb8c], 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 0x42d03f
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 0x42d067
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 0x42d08e
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.005787fd
add esp, 0x430
ret