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

Disassembly:
push 0xffffffffffffffff
push 0x602982
mov eax, dword fs:[0]
push eax
sub esp, 0x694
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x690], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x6a8]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0x4a0]
xor ebx, ebx
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x4a0]
call fcn.00409dd0
push 1
push 0x62454c
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x6bc], ebx
call fcn.0040aee0
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
push ebx
mov byte [esp + 0x6b4], 1
mov ebp, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push ebx
call ebp
mov edi, eax
lea eax, [edi*4]
push eax
push 0x40
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x34], esi
jne 0x42b07e
mov byte [esp + 0x6b0], bl
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 0x42b04c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x6b0], 0xffffffff
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 0x42b077
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x42b450
push esi
push edi
call ebp
push 0x1fc
lea ecx, [esp + 0xa2]
push ebx
push ecx
mov word [esp + 0xa8], bx
call fcn.005da970
add esp, 0xc
push 0x1fc
lea edx, [esp + 0x2a2]
push ebx
push edx
mov word [esp + 0x2a8], bx
call fcn.005da970
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
jle 0x42b3f2
mov eax, dword [esp + 0x2c]
mov ebp, dword [esi + eax*4]
push 0x1fe
lea ecx, [esp + 0xa0]
push ebx
push ecx
mov dword [esp + 0x54], ebp
call fcn.005da970
add esp, 0xc
push 0x1fe
lea edx, [esp + 0x2a0]
push ebx
push edx
call fcn.005da970
add esp, 0xc
push 0xff
lea eax, [esp + 0xa0]
push eax
push ebp
call sub.IMM32.dll_ImmGetDescriptionW
push 0xff
lea ecx, [esp + 0x2a0]
push ecx
push ebp
call sub.IMM32.dll_ImmGetIMEFileNameW
cmp word [esp + 0x9c], bx
je 0x42b3df
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x2a0]
call fcn.00409dd0
push eax
lea eax, [esp + 0x44]
push eax
lea ebx, [esp + 0x2c]
mov byte [esp + 0x6b8], 2
call fcn.0041eb50
add esp, 8
lea edi, [esp + 0x1c]
mov byte [esp + 0x6b0], 3
call fcn.0040ab90
mov byte [esp + 0x6b0], 2
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b19d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x6b0], 1
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b1c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
mov edx, dword [0x677600]
add eax, 0x10
mov dword [esp + 0x88], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x9c]
mov byte [esp + 0x6b0], 4
lea edx, [eax + 2]
jmp 0x42b210
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42b210
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x9c]
mov ebx, eax
push ecx
lea eax, [esp + 0x8c]
call fcn.004037a0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x90], ebp
mov dword [esp + 0x94], edx
mov dword [esp + 0x4c], 0
call fcn.0040a210
add eax, 0x10
mov dword [esp + 0x38], eax
lea edi, [esp + 0x38]
mov byte [esp + 0x6b0], 5
call fcn.00431780
mov ebp, dword [esp + 0x38]
cmp dword [ebp - 0xc], 0
jl 0x42b298
push str.qqpinyin.ime
push ebp
call fcn.005d2e73
add esp, 8
test eax, eax
je 0x42b298
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
jne 0x42b2ce
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xa0]
call fcn.00409dd0
or dword [esp + 0x20], 1
mov esi, eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x42b2ce
push 0x626d6c
push eax
call fcn.005d2e73
add esp, 8
test eax, eax
je 0x42b2ce
sub eax, dword [esi]
sar eax, 1
test byte [esp + 0x20], 1
je 0x42b2fa
mov eax, dword [esp + 0x3c]
and dword [esp + 0x20], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b2fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x67ba48
lea ecx, [esp + 0x20]
mov dword [esp + 0x9c], 1
call fcn.004317e0
mov ebx, eax
lea edi, [ebx + 4]
mov ecx, 0xe
lea esi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x3c]
lea eax, [esp + 0x88]
mov dword [ebx], 0
call fcn.0040ab90
lea edi, [ebx + 0x40]
lea eax, [esp + 0x8c]
call fcn.0040ab90
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
mov dword [ebx + 0x48], eax
add eax, 1
mov dword [esp + 0x28], eax
lea eax, [ebp - 0x10]
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x4c], 1
mov byte [esp + 0x6b0], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42b387
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x6b0], 1
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b3b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x88]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b3d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
xor ebx, ebx
mov eax, dword [esp + 0x2c]
add eax, 1
cmp eax, edi
mov dword [esp + 0x2c], eax
jl 0x42b0ce
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov byte [esp + 0x6b0], bl
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 0x42b420
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x6b0], 0xffffffff
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 0x42b44b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x6a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x690]
xor ecx, esp
call fcn.005d28b3
add esp, 0x6a0
ret