Function at 0x521320
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5acafc
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x60f074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 0x1c], 0
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x34], 0
jne 0x5219db
mov eax, dword [ebp + 0xc]
cmp eax, 0x102
jne 0x5213aa
mov eax, dword [esi + 0x18]
mov ecx, esi
mov dword [eax + 0x20], 1
call fcn.00523e10
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], 0
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x20], 0
je 0x5219db
mov eax, 1
jmp 0x5219dd
cmp eax, 0x7b
jne 0x521416
mov eax, dword [esi + 0x18]
mov dword [eax + 0x20], 1
movsx eax, di
shr edi, 0x10
movsx ecx, di
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
cmp eax, 0xffffffff
je 0x5213d2
cmp ecx, 0xffffffff
jne 0x5213ed
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetCaretPos]
push 1
lea eax, [ebp - 0x3c]
push eax
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, esi
call fcn.00524420
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x44]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x64]
push 0
push edx
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x52138a
cmp eax, 0x301
jne 0x521433
mov eax, dword [esi + 0x18]
mov ecx, esi
mov dword [eax + 0x20], 1
call fcn.00523250
jmp 0x52138a
cmp eax, 0x300
jne 0x521482
mov eax, dword [esi + 0x18]
mov dword [eax + 0x20], 1
mov edx, dword [esi + 0x2c]
cmp byte [edx + 0xac], 0
jne 0x52138d
test byte [edx + 0x8c], 1
jne 0x52138d
mov ecx, esi
call fcn.00523250
push 0x5cb60c
push 1
push 0xc2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x52138a
cmp eax, 0x286
jne 0x521498
mov eax, dword [esi + 0x18]
mov dword [eax + 0x20], 1
jmp 0x52138d
cmp eax, 0x10d
jne 0x5214fc
mov eax, dword [esi + 0x18]
push 0
mov dword [eax + 0x20], 1
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
and eax, 0x3ff
cmp eax, 0x11
je 0x5214c4
cmp eax, 4
je 0x5214c4
xor al, al
jmp 0x5214c6
mov al, 1
push edi
push dword [ebp - 0x30]
mov byte [esi + 0x7c], al
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
push 0x10d
push dword [esi + 4]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
jmp 0x521393
cmp eax, 0x10f
jne 0x521525
mov eax, dword [esi + 0x18]
mov ecx, esi
push edi
push edx
push 0x10f
mov dword [eax + 0x20], 1
call fcn.005232f0
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
jmp 0x521393
cmp eax, 0x10e
jne 0x521549
mov eax, dword [esi + 0x18]
mov dword [eax + 0x20], 1
mov ecx, dword [esi + 0x2c]
call fcn.004f0770
push edi
push dword [ebp - 0x30]
push 0x10e
jmp 0x5214e6
cmp eax, 0x100
jne 0x52156c
mov eax, dword [esi + 0x18]
shr edi, 0x10
push edi
push ecx
push edx
mov ecx, esi
mov dword [eax + 0x20], 1
call fcn.005233d0
jmp 0x52138a
cmp eax, 0x203
jne 0x521679
mov eax, dword [esi + 0x18]
movsx ecx, di
shr edi, 0x10
mov dword [ebp - 0x48], ecx
mov dword [eax + 0x20], 1
movsx eax, di
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x34], ecx
mov ecx, esi
mov byte [esi + 0x30], 1
mov eax, dword [eax + 0x10]
mov dword [esi + 0x3c], eax
call fcn.00524390
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x5215be
mov ecx, dword [eax]
lea edx, [ebp - 0x38]
push edx
push eax
call dword [ecx + 0x48]
mov dword [ebp - 4], 0
lea ecx, [esi + 0x24]
mov eax, dword [ecx]
lea edx, [ebp - 0x28]
push edx
mov eax, dword [eax + 4]
call eax
lea ecx, [esi + 0x44]
mov dword [ebp - 0x34], eax
cmp ecx, eax
je 0x521609
call fcn.00405c10
mov eax, dword [ebp - 0x34]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x54], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x28]
call fcn.00405c10
push 0
push dword [ebp - 0x48]
mov ecx, esi
call fcn.005241d0
movzx ecx, ax
mov eax, edi
shl eax, 0x10
or ecx, eax
push ecx
push dword [ebp - 0x30]
push 0x203
push dword [esi + 4]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_CallWindowProcW]
push 1
mov ecx, esi
call fcn.00523ff0
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x52138a
mov eax, dword [ecx]
lea edx, [ebp - 0x40]
push edx
push ecx
call dword [eax + 0x4c]
cmp dword [ebp - 0x40], 0
jne 0x52138a
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x52138a
cmp eax, 0x201
jne 0x5216aa
mov eax, dword [esi + 0x18]
mov ecx, esi
mov dword [eax + 0x20], 1
movsx eax, di
mov dword [ebp - 0x3c], eax
shr edi, 0x10
movsx eax, di
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
push edx
call fcn.005236a0
jmp 0x52138a
cmp eax, 0x202
jne 0x52177a
mov eax, dword [esi + 0x18]
mov ecx, esi
mov dword [eax + 0x20], 1
movsx eax, di
mov dword [ebp - 0x48], eax
call fcn.00524390
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x5216e3
mov ecx, dword [eax]
lea edx, [ebp - 0x38]
push edx
push eax
call dword [ecx + 0x48]
mov dword [ebp - 4], 2
lea ecx, [esi + 0x24]
mov eax, dword [ecx]
lea edx, [ebp - 0x28]
push edx
mov eax, dword [eax + 4]
call eax
lea ecx, [esi + 0x44]
mov dword [ebp - 0x40], eax
cmp ecx, eax
je 0x52172e
call fcn.00405c10
mov eax, dword [ebp - 0x40]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x54], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x28]
call fcn.00405c10
push 0
push dword [ebp - 0x48]
mov ecx, esi
call fcn.005241d0
movzx eax, ax
and edi, 0xffff0000
or eax, edi
push eax
push dword [ebp - 0x30]
push 0x202
push dword [esi + 4]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_CallWindowProcW]
push 1
mov ecx, esi
call fcn.00523ff0
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x34]
jmp 0x52164f
cmp eax, 0x207
jne 0x52179e
mov eax, dword [esi + 0x18]
mov dword [eax + 0x20], 1
mov eax, dword [esi + 0x18]
mov byte [esi + 0x30], 0
mov dword [eax + 0x20], 0
jmp 0x52138d
cmp eax, 0x200
jne 0x5217cf
mov eax, dword [esi + 0x18]
mov ecx, esi
mov dword [eax + 0x20], 1
movsx eax, di
mov dword [ebp - 0x3c], eax
shr edi, 0x10
movsx eax, di
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
push edx
call fcn.00523840
jmp 0x52138a
cmp eax, 0x2a3
jne 0x521816
mov eax, dword [esi + 0x18]
mov dword [eax + 0x20], 1
cmp byte [esi + 0x5c], 0
je 0x52138d
mov eax, dword [esi + 0x2c]
mov byte [esi + 0x5c], 0
mov al, byte [eax + 0xb4]
test al, al
je 0x52138d
push 0x401
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_RedrawWindow]
jmp 0x52138a
cmp eax, 0x20a
jne 0x521851
mov eax, dword [esi + 0x18]
push edi
mov dword [eax + 0x20], 1
mov ecx, dword [esi + 4]
call fcn.0052b0e0
add esp, 4
test al, al
je 0x521843
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ecx], eax
jmp 0x521393
push edi
push dword [ebp - 0x30]
push 0x20a
jmp 0x5214e6
cmp eax, 0x83
jne 0x5218c3
mov eax, dword [esi + 0x18]
mov dword [eax + 0x20], 1
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov eax, dword [esi + 0x2c]
mov al, byte [eax + 0xb4]
test al, al
je 0x5218a7
mov eax, dword [esi + 0x24]
lea ecx, [esi + 0x24]
lea edx, [ebp - 0x58]
push edx
mov eax, dword [eax + 0x38]
call eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x68], xmm0
mov eax, dword [esi + 0x6c]
add dword [edi], eax
mov eax, dword [esi + 0x74]
sub dword [edi + 8], eax
mov eax, dword [esi + 0x68]
add dword [edi + 4], eax
mov eax, dword [esi + 0x70]
sub dword [edi + 0xc], eax
jmp 0x52138d
cmp eax, 0x85
jne 0x5218e1
mov eax, dword [esi + 0x18]
push ecx
mov ecx, esi
mov dword [eax + 0x20], 1
call fcn.005239f0
jmp 0x52138a
cmp eax, 0x204
je 0x521781
cmp eax, 0x302
jne 0x521909
mov eax, dword [esi + 0x18]
mov ecx, esi
mov dword [eax + 0x20], 1
call fcn.00523b60
jmp 0x52138a
cmp eax, 7
jne 0x5219a6
mov eax, dword [esi + 0x18]
mov dword [eax + 0x20], 1
mov eax, dword [esi + 0x18]
mov dword [eax + 0x20], 0
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xb0]
call eax
test eax, eax
jne 0x521995
cmp dword [0x61a268], 1
jne 0x52197b
cmp dword [0x61a250], 3
jg 0x52197b
push 3
push 0x424
push str.f:my_lab_tabexplorerextab_masterlibrary_viewcontrols_textfield_native_textfield_win.cpp
lea ecx, [ebp - 0x108]
call fcn.0046c100
mov dword [ebp - 4], 4
lea ecx, [eax + 8]
mov edx, str.Check_failed:_false.
mov dword [ebp - 0x34], 1
call fcn.00403840
test byte [ebp - 0x34], 1
je 0x52138a
lea ecx, [ebp - 0x108]
call fcn.0046c520
jmp 0x52138a
push 2
push dword [esi + 0x2c]
mov ecx, eax
call fcn.004e2250
jmp 0x52138a
cmp eax, 0x106
jne 0x5219d0
mov eax, dword [esi + 0x18]
mov dword [eax + 0x20], 1
cmp dx, 0x20
jne 0x52138d
mov eax, dword [esi + 0x18]
mov dword [eax + 0x20], 0
jmp 0x52138d
cmp eax, 0x104
je 0x521550
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550156
mov esp, ebp
pop ebp
ret 0x18