Function at 0x41af30
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov si, word [0x4c6968]
xor edx, edx
push edi
lea ebx, [esp + 0x18]
mov eax, ebp
mov dword [esp + 0x18], 0x90020
mov word [esp + 0x1c], si
mov word [esp + 0x1e], dx
call fcn.00409ab0
xor ebx, ebx
cmp eax, ebx
jne 0x41af85
mov eax, ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41af70
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2]
jmp 0x41afcd
mov edx, eax
movzx ecx, word [edx]
cmp ecx, 0x20
je 0x41af94
cmp ecx, 9
jne 0x41af99
add edx, 2
jmp 0x41af87
movzx ecx, word [edx]
cmp cx, bx
je 0x41afcd
cmp cx, si
je 0x41afaa
mov esi, edx
jmp 0x41afcf
lea ecx, [edx + 2]
lea ecx, [ecx]
movzx edx, word [ecx]
cmp edx, 0x20
je 0x41afbd
cmp edx, 9
jne 0x41afc2
add ecx, 2
jmp 0x41afb0
mov esi, ecx
mov dword [esp + 0x2c], esi
cmp word [ecx], bx
jne 0x41afd3
xor esi, esi
mov dword [esp + 0x2c], esi
sub eax, ebp
sar eax, 1
mov edi, eax
push 0xffffffffffffffff
push edi
mov eax, 0x4a8d14
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
je 0x41b025
push 0xffffffffffffffff
push edi
mov eax, 0x4a8d28
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
je 0x41b025
push 0xffffffffffffffff
push edi
mov eax, 0x4a8d44
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41b034
mov dword [0x4ca6d0], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a8d54
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41b060
mov byte [0x4ca6a3], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a8d6c
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41b08c
mov byte [0x4ca6a2], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a8d84
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41b13d
mov dword [0x4ca6bc], 1
cmp esi, ebx
je 0x41b025
push 0x4a8da4
push esi
call fcn.0048fff9
add esp, 8
test eax, eax
jne 0x41b0e3
mov dword [0x4ca6bc], 2
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0x4a8db0
push esi
call fcn.0048fff9
add esp, 8
test eax, eax
jne 0x41b10e
mov dword [0x4ca6bc], 3
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0x4a6338
push esi
call fcn.0048fff9
add esp, 8
test eax, eax
jne 0x41b025
mov dword [0x4ca6bc], 4
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a8dc0
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41b169
or byte [0x4cadad], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a8de4
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41b195
or byte [0x4cadad], 2
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a8e08
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41b1e1
cmp esi, ebx
je 0x41b1cb
mov esi, dword [esp + 0x2c]
push ebx
call fcn.00409ba0
add esp, 4
mov byte [0x4cad79], bl
cmp eax, 2
je 0x41b025
mov byte [0x4cad79], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a46a8
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41b2ae
cmp esi, ebx
jne 0x41b214
mov dword [0x4ca6e8], ebx
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov edi, esi
call fcn.0040a250
mov dword [0x4ca6e8], eax
cmp eax, ebx
jne 0x41b025
mov eax, dword [0x4c6a44]
mov edi, dword [eax + 0xb4]
mov ecx, dword [esp + 0x28]
push ebx
push ebx
push ebx
push 0x4a3920
push ebx
push 0xe3
mov dword [eax + 0xb4], ebx
push esi
mov byte [ecx + 0x49], 1
call fcn.0041c720
test eax, eax
jne 0x41b265
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov eax, dword [esp + 0x28]
mov ecx, dword [0x4c6a44]
mov byte [eax + 0x49], bl
mov dword [ecx + 0xb4], edi
mov esi, dword [eax + 4]
call fcn.0040a1d0
mov dword [0x4ca6e8], eax
cmp eax, ebx
je 0x41b259
mov byte [eax], 5
mov dword [eax + 0xc], esi
mov edx, dword [esi + 8]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x4a3920
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a8e1c
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41b2e9
cmp esi, ebx
je 0x41b025
mov esi, dword [esp + 0x2c]
call fcn.00415040
mov dword [0x4c6964], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 6
push 0x4a8e34
push ebp
call fcn.004901fd
add esp, 0xc
test eax, eax
jne 0x41b62b
push 3
lea edx, [ebp + 0xc]
push 0x4a64d4
push edx
call fcn.004901fd
add esp, 0xc
test eax, eax
sete bl
movzx eax, bl
neg eax
sbb eax, eax
and eax, 3
push 6
lea edi, [ebp + eax*2 + 0xc]
push 0x4a64dc
push edi
call fcn.004901fd
add esp, 0xc
test eax, eax
jne 0x41b348
test bl, bl
setne cl
inc cl
mov byte [esp + 0x18], cl
jmp 0x41b36c
push 5
push 0x4a6320
push edi
call fcn.004901fd
add esp, 0xc
test eax, eax
jne 0x41b61c
test bl, bl
setne dl
add dl, 3
mov byte [esp + 0x18], dl
xor edi, edi
cmp esi, edi
jne 0x41b385
mov dword [0x4ca6e8], edi
lea eax, [edi + 3]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov dx, word [0x4c6968]
mov bx, word [0x4c6970]
mov ecx, esi
mov si, word [0x4c696c]
lea esp, [esp]
movzx eax, word [ecx]
test ax, ax
je 0x41b3d7
jmp 0x41b3b0
cmp ax, bx
je 0x41b48d
cmp ax, dx
je 0x41b48d
cmp ax, si
je 0x41b48d
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x41b3b0
test edi, edi
je 0x41b575
lea eax, [edi + 2]
call fcn.00409b00
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
xor eax, eax
mov word [edi], ax
mov eax, edi
sub eax, ebp
sar eax, 1
mov esi, ebp
call fcn.00414f70
mov ecx, dword [esp + 0x14]
movzx esi, bx
movzx eax, word [ecx]
test ax, ax
je 0x41b425
cmp ax, si
je 0x41b4df
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x41b410
mov bx, word [0x4c6970]
movzx esi, bx
mov ecx, ebp
movzx eax, word [ecx]
test ax, ax
je 0x41b455
lea esp, [esp]
cmp ax, si
je 0x41b586
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x41b440
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push ebp
push edx
call fcn.00409f70
add esp, 0xc
test eax, eax
jne 0x41b025
mov ecx, dword [esp + 0x28]
push 0x4a3920
push 0x4a66e0
call fcn.00430950
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
movzx eax, word [ecx]
test ax, ax
je 0x41b3d7
cmp ax, si
je 0x41b4c6
cmp ax, dx
jne 0x41b4b1
test edi, edi
jne 0x41b4c6
mov edi, ecx
add ecx, 2
jmp 0x41b3a0
add ecx, 2
cmp word [ecx], 0
je 0x41b3d7
add ecx, 2
jmp 0x41b3a0
mov ecx, dword [esp + 0x28]
push ebp
push 0x4a8e48
call fcn.00430950
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
cmp word [ecx], 0
je 0x41b425
movzx eax, word [ecx + 2]
lea edi, [ecx + 2]
add eax, 0xffffff9f
cmp eax, 0x15
ja case.0x41b4ff.99
movzx edx, byte [eax + 0x41c070]
jmp dword [edx*4 + 0x41c04c]
mov eax, 7
mov word [edi], ax
jmp case.0x41b4ff.99
mov edx, 8
jmp 0x41b548
mov eax, 0xc
mov word [edi], ax
jmp case.0x41b4ff.99
mov edx, 0xa
jmp 0x41b548
mov eax, 0xd
mov word [edi], ax
jmp case.0x41b4ff.99
mov edx, 9
jmp 0x41b548
mov eax, 0xb
mov word [edi], ax
jmp case.0x41b4ff.99
mov edx, 0x20
mov word [edi], dx
mov eax, edi
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x41b550
sub eax, ebx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push ecx
call fcn.00490ac0
add esp, 0xc
mov ecx, edi
jmp 0x41b408
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x14], 0x4a3920
jmp 0x41b42c
cmp word [ecx], 0
je 0x41b455
movzx eax, word [ecx + 2]
lea edi, [ecx + 2]
add eax, 0xffffff9f
cmp eax, 0x15
ja case.0x41b5a6.99
movzx edx, byte [eax + 0x41c0ac]
jmp dword [edx*4 + 0x41c088]
mov eax, 7
mov word [edi], ax
jmp case.0x41b5a6.99
mov edx, 8
jmp 0x41b5ef
mov eax, 0xc
mov word [edi], ax
jmp case.0x41b5a6.99
mov edx, 0xa
jmp 0x41b5ef
mov eax, 0xd
mov word [edi], ax
jmp case.0x41b5a6.99
mov edx, 9
jmp 0x41b5ef
mov eax, 0xb
mov word [edi], ax
jmp case.0x41b5a6.99
mov edx, 0x20
mov word [edi], dx
mov eax, edi
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x41b5f7
sub eax, ebx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push ecx
call fcn.00490ac0
add esp, 0xc
mov ecx, edi
jmp 0x41b431
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a8ec0
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41b7da
cmp esi, ebx
je 0x41b025
mov eax, 0x4a6aac
mov ecx, esi
call fcn.00476af0
cmp eax, ebx
je 0x41b75c
mov ebx, 0x4a8ed8
call fcn.00409ab0
test eax, eax
je 0x41b025
push 0x64
add eax, 2
push eax
push 0x4c6978
call fcn.00492bd4
movzx ebx, word [0x4c6970]
add esp, 0xc
xor eax, eax
mov word [0x4c6a40], ax
mov ecx, 0x4c6978
lea ebx, [ebx]
movzx eax, word [ecx]
test ax, ax
je 0x41b025
lea esp, [esp]
cmp ax, bx
je 0x41b6d0
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x41b6b0
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
cmp word [ecx], 0
je 0x41b025
movzx eax, word [ecx + 2]
lea esi, [ecx + 2]
add eax, 0xffffff9f
cmp eax, 0x15
ja case.0x41b6f0.99
movzx edx, byte [eax + 0x41c0e8]
jmp dword [edx*4 + 0x41c0c4]
mov eax, 7
jmp 0x41b72f
mov edx, 8
mov word [esi], dx
jmp case.0x41b6f0.99
mov eax, 0xc
jmp 0x41b72f
mov edx, 0xa
mov word [esi], dx
jmp case.0x41b6f0.99
mov eax, 0xd
jmp 0x41b72f
mov edx, 9
mov word [esi], dx
jmp case.0x41b6f0.99
mov eax, 0xb
mov word [esi], ax
mov eax, esi
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x41b737
sub eax, edi
sar eax, 1
lea edx, [eax + eax + 2]
push edx
push esi
push ecx
call fcn.00490ac0
add esp, 0xc
mov ecx, esi
jmp 0x41b6a0
push 7
push 0x4a8ee0
push esi
call fcn.004901fd
add esp, 0xc
test eax, eax
jne 0x41b785
mov byte [0x4c696a], bl
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0x4cad6b
push 0x4cad6a
push 0x4cad69
push 0x4c6943
push 0x4ca6e6
push 0x4cad68
push 0x4c6942
push 0x4c6403
push 0x4ca6e7
push 0x4c6974
push 0x4cad64
push 0x4cad60
mov eax, esi
call fcn.0040d770
add esp, 0x30
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a8ef0
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41b815
cmp esi, ebx
je 0x41b025
mov esi, dword [esp + 0x2c]
call fcn.0040efb0
mov dword [0x4c6944], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a8f20
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41b863
cmp esi, ebx
je 0x41b025
mov esi, dword [esp + 0x2c]
call fcn.0040efb0
mov dword [0x4c6960], eax
cmp eax, 0xa
jge 0x41b025
mov dword [0x4c6960], 0xa
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a8f40
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41b8b1
cmp esi, ebx
je 0x41b025
mov esi, dword [esp + 0x2c]
call fcn.0040efb0
mov dword [0x4c695c], eax
cmp eax, 1
jge 0x41b025
mov dword [0x4c695c], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a8f70
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41b916
cmp esi, ebx
je 0x41b025
mov esi, dword [esp + 0x2c]
call fcn.0040efb0
cmp eax, 0xff
jle 0x41b8f8
mov eax, 0xff
mov byte [0x4c6402], al
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
cmp eax, 1
jge 0x41b902
mov eax, 1
mov byte [0x4c6402], al
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a8f9c
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41b962
cmp esi, ebx
je 0x41b94c
mov esi, dword [esp + 0x2c]
push ebx
call fcn.00409ba0
add esp, 4
mov byte [0x4ca6e4], bl
cmp eax, 2
je 0x41b025
mov byte [0x4ca6e4], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a8fc0
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41b9c7
cmp esi, ebx
je 0x41b025
mov esi, dword [esp + 0x2c]
call fcn.0040efb0
cmp eax, 0xff
jle 0x41b9a9
mov eax, 0xff
mov dword [0x4c6958], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
cmp eax, 1
jge 0x41b9b3
mov eax, 1
mov dword [0x4c6958], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a8fd8
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41ba02
cmp esi, ebx
je 0x41b025
mov esi, dword [esp + 0x2c]
call fcn.0040efb0
mov dword [0x4c6948], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a8ffc
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41ba4e
cmp esi, ebx
je 0x41ba38
mov esi, dword [esp + 0x2c]
push ebx
call fcn.00409ba0
add esp, 4
mov byte [0x4cad78], bl
cmp eax, 2
je 0x41b025
mov byte [0x4cad78], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a900c
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41ba7a
mov byte [0x4ca6a0], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a9030
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41bab7
mov edi, dword [esp + 0x28]
mov eax, esi
mov byte [edi + 0xae3], 1
call fcn.004169f0
mov dword [edi + 0xae4], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a904c
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41bb40
cmp esi, ebx
je 0x41b025
mov esi, dword [esp + 0x2c]
call fcn.00415070
fld qword [0x4c0ed0]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x41bafa
fstp st(0)
fld1
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x41bafe
fstp st(1)
jmp 0x41bb00
fstp st(0)
fld qword [0x4c0dd8]
fnstcw word [esp + 0x28]
movzx eax, word [esp + 0x28]
fmul st(1), st(0)
or eax, 0xc00
mov dword [esp + 0x2c], eax
fmulp st(1)
fldcw word [esp + 0x2c]
fistp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov dword [0x4c6954], eax
mov eax, 3
fldcw word [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a905c
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41bba9
cmp esi, ebx
je 0x41b025
mov esi, dword [esp + 0x2c]
call fcn.0040efb0
mov dword [0x4c6950], eax
cmp eax, ebx
jge 0x41bb85
mov dword [0x4c6950], ebx
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
cmp eax, 0x1f4
jle 0x41b025
mov dword [0x4c6950], 0x1f4
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a8778
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41bc93
cmp esi, ebx
je 0x41b025
cmp word [esi + 2], bx
jne 0x41bc4c
movzx eax, word [esi]
cmp eax, 0x23
je 0x41bf51
cmp ax, word [0x4c696c]
je 0x41bf51
cmp ax, word [0x4c6970]
je 0x41bf51
cmp ax, word [0x4c6968]
je 0x41bf51
cmp eax, 0x21
je 0x41bf51
cmp eax, 0x5e
je 0x41bf51
cmp eax, 0x2b
je 0x41bf51
cmp eax, 0x24
je 0x41bf51
cmp eax, 0x7e
je 0x41bf51
cmp eax, 0x2a
je 0x41bf51
cmp eax, 0x3c
je 0x41bf51
cmp eax, 0x3e
je 0x41bf51
push 0xf
push esi
push 0x4c6410
call fcn.00492bd4
add esp, 0xc
xor ecx, ecx
mov eax, 0x4c6410
mov word [0x4c642e], cx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41bc70
sub eax, edx
sar eax, 1
mov dword [0x4c6404], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a9074
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41bd0b
cmp esi, ebx
je 0x41b025
movzx eax, word [esi]
cmp eax, 0x23
je 0x41bf51
cmp ax, word [0x4c696c]
je 0x41bf51
cmp ax, word [0x4c6968]
je 0x41bf51
cmp eax, 0x2e
je 0x41bf51
cmp dword [0x4c6404], 1
jne 0x41bcf6
cmp ax, word [0x4c6410]
je 0x41bf51
mov word [0x4c6970], ax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a908c
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41bd7a
cmp esi, ebx
je 0x41b025
movzx eax, word [esi]
cmp ax, word [0x4c6970]
je 0x41bf51
cmp ax, word [0x4c6968]
je 0x41bf51
cmp eax, 0x2e
je 0x41bf51
cmp dword [0x4c6404], 1
jne 0x41bd65
cmp ax, word [0x4c6410]
je 0x41bf51
mov word [0x4c696c], ax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a90a4
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41bdf2
cmp esi, ebx
je 0x41b025
movzx eax, word [esi]
cmp eax, 0x23
je 0x41bf51
cmp ax, word [0x4c6970]
je 0x41bf51
cmp ax, word [0x4c696c]
je 0x41bf51
cmp eax, 0x2e
je 0x41bf51
cmp dword [0x4c6404], 1
jne 0x41bddd
cmp ax, word [0x4c6410]
je 0x41bf51
mov word [0x4c6968], ax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a90bc
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41be65
cmp esi, ebx
je 0x41be4b
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0x4c6401
xor ecx, ecx
mov edi, 0x4c6940
mov edx, esi
call fcn.00414200
add esp, 4
test al, al
jne 0x41b025
mov ecx, dword [esp + 0x28]
mov eax, 0x4a6ae4
push ebp
push eax
call fcn.00430950
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov ecx, dword [esp + 0x28]
mov eax, 0x4a90d8
push ebp
push eax
call fcn.00430950
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a9104
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41bec3
cmp esi, ebx
je 0x41bead
mov esi, dword [esp + 0x2c]
call fcn.0040efb0
cmp eax, ebx
jl 0x41bf51
cmp eax, 0x64
jg 0x41bf51
mov byte [0x4ca6e5], al
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
xor eax, eax
mov byte [0x4ca6e5], al
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a911c
mov ecx, ebp
call fcn.004767e0
add esp, 8
test eax, eax
jne 0x41c026
cmp esi, ebx
jne 0x41bee9
mov dword [esp + 0x2c], 0x4a3920
movzx edx, word [0x4c6968]
mov ebx, dword [esp + 0x2c]
push edx
push ebx
call fcn.00490e21
mov edi, eax
add esp, 8
mov esi, 0x4a3920
test edi, edi
je 0x41bf23
lea eax, [edi + 2]
call fcn.00409b00
mov esi, eax
lea eax, [edi - 2]
mov edx, ebx
call fcn.00409b20
xor ecx, ecx
mov word [eax + 2], cx
mov edx, dword [esp + 0x2c]
cmp word [edx], 0
mov ebx, 6
je 0x41bf6c
xor edi, edi
mov ebx, edx
mov eax, dword [edi*4 + 0x4c7f0c]
push eax
push ebx
call fcn.0048fff9
add esp, 8
test eax, eax
je 0x41bf6a
inc edi
cmp edi, 7
jne 0x41bf36
mov ecx, dword [esp + 0x28]
push ebp
push 0x4a6ae4
call fcn.00430950
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov ebx, edi
cmp word [esi], 0
mov edi, 2
je 0x41bfb4
xor edi, edi
lea esp, [esp]
mov ecx, dword [edi*4 + 0x4c7f28]
push ecx
push esi
call fcn.0048fff9
add esp, 8
test eax, eax
je 0x41bfb4
inc edi
cmp edi, 4
jne 0x41bf80
mov ecx, dword [esp + 0x28]
push esi
push 0x4a6b10
call fcn.00430950
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
test ebx, ebx
je 0x41bfbd
cmp ebx, 6
jne 0x41bfc3
mov dword [0x4ca6a4], edi
cmp ebx, 1
je 0x41bfcd
cmp ebx, 6
jne 0x41bfd3
mov dword [0x4ca6a8], edi
cmp ebx, 3
je 0x41bfdd
cmp ebx, 6
jne 0x41bfe3
mov dword [0x4ca6ac], edi
cmp ebx, 2
je 0x41bfed
cmp ebx, 6
jne 0x41bff3
mov dword [0x4ca6b0], edi
cmp ebx, 4
je 0x41bffd
cmp ebx, 6
jne 0x41c003
mov dword [0x4ca6b4], edi
cmp ebx, 5
je 0x41c011
cmp ebx, 6
jne 0x41b025
mov dword [0x4ca6b8], edi
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a9128
mov ecx, ebp
call fcn.004767e0
add esp, 8
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebp
add eax, 3
pop ebx
add esp, 0x14
ret 8