Function at 0x4222d0
Capabilities:
Get keyboard layout

Disassembly:
push 0xffffffffffffffff
push 0x52c52c
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x56b1dc]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56b1dc]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov eax, dword [esp + 0x244]
mov esi, dword [0x5314c8]
xor ebx, ebx
push ebx
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
call esi
mov edi, eax
lea ecx, [edi*4]
push ecx
push 0x40
mov dword [esp + 0x34], edi
call dword [0x5312fc]
mov ebp, eax
cmp ebp, ebx
je 0x4225e7
push ebp
push edi
call esi
push 0x1fc
lea edx, [esp + 0x36]
push ebx
push edx
mov word [esp + 0x3c], bx
call fcn.00508d80
mov eax, dword [0x5759e8]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x5759e8
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
cmp edi, ebx
mov dword [esp + 0x23c], ebx
mov dword [esp + 0x14], ebx
jle 0x42246d
mov eax, dword [esp + 0x14]
mov esi, dword [ebp + eax*4]
push 0x1fe
lea ecx, [esp + 0x34]
push 0
push ecx
mov dword [esp + 0x2c], esi
call fcn.00508d80
add esp, 0xc
push 0xff
lea edx, [esp + 0x34]
push edx
push esi
call fcn.005209d4
lea eax, [esp + 0x30]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4223c6
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x30]
mov ebx, eax
push ecx
lea eax, [esp + 0x20]
call fcn.004026c0
mov esi, dword [esp + 0x1c]
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 0x42240c
mov ecx, edi
lea eax, [esp + 0x1c]
call fcn.00402120
mov esi, dword [esp + 0x1c]
lea edx, [edi + 1]
push edx
push esi
call fcn.00500cb5
add esp, 8
test edi, edi
jl 0x42252b
cmp edi, dword [esi - 8]
jg 0x42252b
mov dword [esi - 0xc], edi
mov word [esi + edi*2], 0
cmp dword [esi - 0xc], 0
jl 0x422458
push str.qqpinyin.ime
push esi
call fcn.0050016e
add esp, 8
test eax, eax
je 0x422458
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x42250c
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
jl 0x42238f
push ebp
call dword [0x531304]
cmp dword [esp + 0x18], 0
jne 0x422633
mov edx, dword [0x5759e8]
mov eax, dword [edx + 0xc]
mov ecx, 0x5759e8
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.qqpinyin.ime
mov byte [esp + 0x240], 1
call fcn.00402550
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x240], 2
call fcn.00422690
mov byte [esp + 0x23c], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea ebx, [edi - 0x10]
cmp eax, ebx
je 0x422546
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x422535
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x422535
call fcn.004020b0
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x422503
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
lea edi, [ebp + 0x10]
mov dword [esp + 0x14], edi
jmp 0x422546
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], 1
mov dword [ecx], eax
mov dword [esp + 0x24], 1
jmp 0x42246d
push 0x80070057
call fcn.004026a0
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.004026c0
mov edi, dword [esp + 0x14]
mov byte [esp + 0x23c], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42256e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x23c], 1
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 0x422596
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [edi - 0xc], 0
jne 0x4225eb
lea eax, [edi - 0x10]
mov byte [esp + 0x23c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4225c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x23c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4225e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x42265e
push 0x10
push 0
push edi
call fcn.0050095a
mov ecx, dword [esp + 0x34]
add esp, 0xc
push 0x10
push edi
mov dword [ecx], eax
mov dword [esp + 0x2c], 1
call dword [0x5314d4]
add edi, 0xfffffff0
mov byte [esp + 0x23c], 0
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x422633
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x23c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42265a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.004ff939
add esp, 0x22c
ret 4