Function at 0x421000
Capabilities:
Get keyboard layout

Disassembly:
push 0xffffffffffffffff
push 0x529cd2
mov eax, dword fs:[0]
push eax
sub esp, 0x690
mov eax, dword [0x56b1dc]
xor eax, esp
mov dword [esp + 0x688], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56b1dc]
xor eax, esp
push eax
lea eax, [esp + 0x6a4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6b4]
push 0x104
lea ecx, [esp + 0x498]
push ecx
mov dword [esp + 0x40], eax
call dword [0x531300]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x498]
call fcn.00402550
push 1
push 0x542460
lea eax, [esp + 0x20]
xor ebx, ebx
push eax
mov dword [esp + 0x6b8], ebx
call fcn.00411670
mov edx, dword [0x5759e8]
mov eax, dword [edx + 0xc]
mov ecx, 0x5759e8
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push ebx
mov byte [esp + 0x6b0], 1
mov ebp, dword [0x5314c8]
push ebx
call ebp
mov edi, eax
lea ecx, [edi*4]
push ecx
push 0x40
mov dword [esp + 0x34], edi
call dword [0x5312fc]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x28], esi
jne 0x421126
mov byte [esp + 0x6ac], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4210f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x6ac], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42111f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4214e4
push esi
push edi
call ebp
push 0x1fc
lea ecx, [esp + 0x9a]
push ebx
push ecx
mov word [esp + 0xa0], bx
call fcn.00508d80
add esp, 0xc
push 0x1fc
lea edx, [esp + 0x29a]
push ebx
push edx
mov word [esp + 0x2a0], bx
call fcn.00508d80
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
jle 0x421486
mov eax, dword [esp + 0x1c]
mov ebp, dword [esi + eax*4]
push 0x1fe
lea ecx, [esp + 0x98]
push ebx
push ecx
mov dword [esp + 0x48], ebp
call fcn.00508d80
add esp, 0xc
push 0x1fe
lea edx, [esp + 0x298]
push ebx
push edx
call fcn.00508d80
add esp, 0xc
push 0xff
lea eax, [esp + 0x98]
push eax
push ebp
call fcn.005209da
push 0xff
lea ecx, [esp + 0x298]
push ecx
push ebp
call fcn.005209d4
cmp word [esp + 0x94], bx
je 0x421473
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x298]
call fcn.00402550
push eax
lea eax, [esp + 0x34]
push eax
lea ebx, [esp + 0x20]
mov byte [esp + 0x6b4], 2
call fcn.0040d230
add esp, 8
lea edi, [esp + 0x14]
mov byte [esp + 0x6ac], 3
call fcn.00401dd0
mov byte [esp + 0x6ac], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421245
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x6ac], 1
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 0x42126d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x5759e8]
mov eax, dword [edx + 0xc]
mov ecx, 0x5759e8
call eax
mov edx, dword [0x5759e8]
add eax, 0x10
mov dword [esp + 0x80], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x5759e8
call eax
add eax, 0x10
mov dword [esp + 0x84], eax
lea eax, [esp + 0x94]
mov byte [esp + 0x6ac], 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4212b3
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x94]
mov ebx, eax
push ecx
lea eax, [esp + 0x84]
call fcn.004026c0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
xor esi, esi
add eax, 0xfffffff0
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], edx
mov dword [esp + 0x44], esi
call fcn.004020b0
add eax, 0x10
mov dword [esp + 0x24], eax
lea edi, [esp + 0x24]
mov byte [esp + 0x6ac], 5
call fcn.0040d1b0
mov ebp, dword [esp + 0x24]
cmp dword [ebp - 0xc], esi
jl 0x421338
push str.qqpinyin.ime
push ebp
call fcn.0050016e
add esp, 8
cmp eax, esi
je 0x421338
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
jne 0x42137f
push ecx
mov eax, esp
mov dword [esp + 0x38], esp
push eax
lea ecx, [esp + 0x9c]
call fcn.00402550
call fcn.0042a6d0
add esp, 4
cmp eax, esi
jne 0x42137f
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push ecx
lea ecx, [esp + 0x9c]
call fcn.00402550
call fcn.0042a5c0
add esp, 4
cmp eax, esi
mov dword [esp + 0x90], esi
jne 0x42138a
mov dword [esp + 0x90], 1
push 0x576724
lea ecx, [esp + 0x18]
call fcn.00425910
mov ebx, eax
mov dword [ebx], esi
lea edi, [ebx + 4]
mov ecx, 0xe
lea esi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x3c]
lea eax, [esp + 0x80]
call fcn.00401dd0
lea edi, [ebx + 0x40]
lea eax, [esp + 0x84]
call fcn.00401dd0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x90]
mov esi, dword [esp + 0x38]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x4c], ecx
add eax, 1
add esi, 0x40
lea ebx, [esp + 0x14]
mov dword [esp + 0x20], eax
call fcn.0040d850
lea eax, [ebp - 0x10]
mov byte [esp + 0x6ac], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42141b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x6ac], 1
mov eax, dword [esp + 0x84]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421446
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421469
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
xor ebx, ebx
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, edi
mov dword [esp + 0x1c], eax
jl 0x421176
push esi
call dword [0x531304]
mov byte [esp + 0x6ac], bl
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 0x4214b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x6ac], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4214df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x6a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x688]
xor ecx, esp
call fcn.004ff939
add esp, 0x69c
ret 4