Function at 0x419600
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov si, word [0x4c58fc]
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.004095d0
xor ebx, ebx
cmp eax, ebx
jne 0x419655
mov eax, ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x419640
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2]
jmp 0x41969d
mov edx, eax
movzx ecx, word [edx]
cmp ecx, 0x20
je 0x419664
cmp ecx, 9
jne 0x419669
add edx, 2
jmp 0x419657
movzx ecx, word [edx]
cmp cx, bx
je 0x41969d
cmp cx, si
je 0x41967a
mov esi, edx
jmp 0x41969f
lea ecx, [edx + 2]
lea ecx, [ecx]
movzx edx, word [ecx]
cmp edx, 0x20
je 0x41968d
cmp edx, 9
jne 0x419692
add ecx, 2
jmp 0x419680
mov esi, ecx
mov dword [esp + 0x2c], esi
cmp word [ecx], bx
jne 0x4196a3
xor esi, esi
mov dword [esp + 0x2c], esi
sub eax, ebp
sar eax, 1
mov edi, eax
push 0xffffffffffffffff
push edi
mov eax, str.Include
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
je 0x41a6c3
push 0xffffffffffffffff
push edi
mov eax, str.IncludeAgain
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
je 0x41a6c3
push 0xffffffffffffffff
push edi
mov eax, str.NoEnv
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x41970c
mov dword [0x4c9670], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.NoTrayIcon
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x419738
mov byte [0x4c965d], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.Persistent
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x419764
mov byte [0x4c965c], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.SingleInstance
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x419815
mov dword [0x4c9658], 1
cmp esi, ebx
je 0x41a6c3
push str.Force
push esi
call fcn.0048e559
add esp, 8
test eax, eax
jne 0x4197bb
mov dword [0x4c9658], 2
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push str.Ignore
push esi
call fcn.0048e559
add esp, 8
test eax, eax
jne 0x4197e6
mov dword [0x4c9658], 3
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0x4a5244
push esi
call fcn.0048e559
add esp, 8
test eax, eax
jne 0x41a6c3
mov dword [0x4c9658], 4
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.InstallKeybdHook
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x419841
or byte [0x4c9f1b], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.InstallMouseHook
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x41986d
or byte [0x4c9f1b], 2
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.UseHook
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x4198b9
cmp esi, ebx
je 0x4198a3
mov esi, dword [esp + 0x2c]
push ebx
call fcn.00414de0
add esp, 4
mov byte [0x4c9d07], bl
cmp eax, 2
je 0x41a6c3
mov byte [0x4c9d07], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a35d8
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x419986
cmp esi, ebx
jne 0x4198ec
mov dword [0x4c9680], ebx
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov edi, esi
call fcn.00409ca0
mov dword [0x4c9680], eax
cmp eax, ebx
jne 0x41a6c3
mov eax, dword [0x4c590c]
mov edi, dword [eax + 0xb4]
mov ecx, dword [esp + 0x28]
push ebx
push ebx
push ebx
push 0x4a2868
push ebx
push 0xe1
mov dword [eax + 0xb4], ebx
push esi
mov byte [ecx + 0x45], 1
call fcn.0041adb0
test eax, eax
jne 0x41993d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov eax, dword [esp + 0x28]
mov ecx, dword [0x4c590c]
mov byte [eax + 0x45], bl
mov dword [ecx + 0xb4], edi
mov esi, dword [eax + 4]
call fcn.00409c20
mov dword [0x4c9680], eax
cmp eax, ebx
je 0x419931
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], 0x4a2868
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.IfTimeout
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x4199c1
cmp esi, ebx
je 0x41a6c3
mov esi, dword [esp + 0x2c]
call fcn.00413980
mov dword [0x4c58f8], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 6
push str.IfWin
push ebp
call fcn.0048eda7
add esp, 0xc
test eax, eax
jne 0x419cfb
push 3
lea edx, [ebp + 0xc]
push 0x4a53dc
push edx
call fcn.0048eda7
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 str.Active
push edi
call fcn.0048eda7
add esp, 0xc
test eax, eax
jne 0x419a20
test bl, bl
setne cl
inc cl
mov byte [esp + 0x18], cl
jmp 0x419a44
push 5
push str.Exist
push edi
call fcn.0048eda7
add esp, 0xc
test eax, eax
jne 0x419cec
test bl, bl
setne dl
add dl, 3
mov byte [esp + 0x18], dl
xor edi, edi
cmp esi, edi
jne 0x419a5d
mov dword [0x4c9680], edi
lea eax, [edi + 3]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov dx, word [0x4c58fc]
mov bx, word [0x4c5904]
mov ecx, esi
mov si, word [0x4c5900]
movzx eax, word [ecx]
test ax, ax
je 0x419aa7
lea esp, [esp]
cmp ax, bx
je 0x419b5d
cmp ax, dx
je 0x419b5d
cmp ax, si
je 0x419b5d
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x419a80
test edi, edi
je 0x419c45
lea eax, [edi + 2]
call fcn.00409620
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.00413920
mov ecx, dword [esp + 0x14]
movzx esi, bx
movzx eax, word [ecx]
test ax, ax
je 0x419af5
cmp ax, si
je 0x419baf
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x419ae0
mov bx, word [0x4c5904]
movzx esi, bx
mov ecx, ebp
movzx eax, word [ecx]
test ax, ax
je 0x419b25
lea esp, [esp]
cmp ax, si
je 0x419c56
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x419b10
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push ebp
push edx
call fcn.004099c0
add esp, 0xc
test eax, eax
jne 0x41a6c3
mov ecx, dword [esp + 0x28]
push 0x4a2868
push str.Out_of_memory.
call fcn.0042ece0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
movzx eax, word [ecx]
test ax, ax
je 0x419aa7
cmp ax, si
je 0x419b96
cmp ax, dx
jne 0x419b81
test edi, edi
jne 0x419b96
mov edi, ecx
add ecx, 2
jmp 0x419a74
add ecx, 2
cmp word [ecx], 0
je 0x419aa7
add ecx, 2
jmp 0x419a74
mov ecx, dword [esp + 0x28]
push ebp
push str.Literal_commas_and_percent_signs_must_be_escaped__e.g.____
call fcn.0042ece0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
cmp word [ecx], 0
je 0x419af5
movzx eax, word [ecx + 2]
lea edi, [ecx + 2]
add eax, 0xffffff9f
cmp eax, 0x15
ja case.0x419bcf.99
movzx edx, byte [eax + 0x41a6f8]
jmp dword [edx*4 + 0x41a6d4]
mov eax, 7
mov word [edi], ax
jmp case.0x419bcf.99
mov edx, 8
jmp 0x419c18
mov eax, 0xc
mov word [edi], ax
jmp case.0x419bcf.99
mov edx, 0xa
jmp 0x419c18
mov eax, 0xd
mov word [edi], ax
jmp case.0x419bcf.99
mov edx, 9
jmp 0x419c18
mov eax, 0xb
mov word [edi], ax
jmp case.0x419bcf.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 0x419c20
sub eax, ebx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push ecx
call fcn.0048efd0
add esp, 0xc
mov ecx, edi
jmp 0x419ad8
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x14], 0x4a2868
jmp 0x419afc
cmp word [ecx], 0
je 0x419b25
movzx eax, word [ecx + 2]
lea edi, [ecx + 2]
add eax, 0xffffff9f
cmp eax, 0x15
ja case.0x419c76.99
movzx edx, byte [eax + 0x41a734]
jmp dword [edx*4 + 0x41a710]
mov eax, 7
mov word [edi], ax
jmp case.0x419c76.99
mov edx, 8
jmp 0x419cbf
mov eax, 0xc
mov word [edi], ax
jmp case.0x419c76.99
mov edx, 0xa
jmp 0x419cbf
mov eax, 0xd
mov word [edi], ax
jmp case.0x419c76.99
mov edx, 9
jmp 0x419cbf
mov eax, 0xb
mov word [edi], ax
jmp case.0x419c76.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 0x419cc7
sub eax, ebx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push ecx
call fcn.0048efd0
add esp, 0xc
mov ecx, edi
jmp 0x419b01
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a7c48
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x419eaa
cmp esi, ebx
je 0x41a6c3
mov eax, str.EndChars
mov ecx, esi
call fcn.00475370
cmp eax, ebx
je 0x419e2c
mov ebx, 0x4a7c60
call fcn.004095d0
test eax, eax
je 0x41a6c3
push 0x64
add eax, 2
push eax
push 0x4c5910
call fcn.00491254
movzx ebx, word [0x4c5904]
add esp, 0xc
xor eax, eax
mov word [0x4c59d8], ax
mov ecx, 0x4c5910
lea ebx, [ebx]
movzx eax, word [ecx]
test ax, ax
je 0x41a6c3
lea esp, [esp]
cmp ax, bx
je 0x419da0
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x419d80
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
cmp word [ecx], 0
je 0x41a6c3
movzx eax, word [ecx + 2]
lea esi, [ecx + 2]
add eax, 0xffffff9f
cmp eax, 0x15
ja case.0x419dc0.99
movzx edx, byte [eax + 0x41a770]
jmp dword [edx*4 + 0x41a74c]
mov eax, 7
jmp 0x419dff
mov edx, 8
mov word [esi], dx
jmp case.0x419dc0.99
mov eax, 0xc
jmp 0x419dff
mov edx, 0xa
mov word [esi], dx
jmp case.0x419dc0.99
mov eax, 0xd
jmp 0x419dff
mov edx, 9
mov word [esi], dx
jmp case.0x419dc0.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 0x419e07
sub eax, edi
sar eax, 1
lea edx, [eax + eax + 2]
push edx
push esi
push ecx
call fcn.0048efd0
add esp, 0xc
mov ecx, esi
jmp 0x419d70
push 7
push str.NoMouse
push esi
call fcn.0048eda7
add esp, 0xc
test eax, eax
jne 0x419e55
mov byte [0x4c58fe], bl
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0x4c9d05
push 0x4c9d04
push 0x4c9d03
push 0x4c58d7
push 0x4c9d00
push 0x4c9d02
push 0x4c58d6
push 0x4c5387
push 0x4c9d01
push 0x4c5908
push 0x4c9cfc
push 0x4c9cf8
mov eax, esi
call fcn.0040d0f0
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, str.HotkeyModifierTimeout
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x419ee5
cmp esi, ebx
je 0x41a6c3
mov esi, dword [esp + 0x2c]
call fcn.0040da90
mov dword [0x4c58d8], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.HotkeyInterval
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x419f33
cmp esi, ebx
je 0x41a6c3
mov esi, dword [esp + 0x2c]
call fcn.0040da90
mov dword [0x4c58f4], eax
cmp eax, 0xa
jge 0x41a6c3
mov dword [0x4c58f4], 0xa
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.MaxHotkeysPerInterval
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x419f81
cmp esi, ebx
je 0x41a6c3
mov esi, dword [esp + 0x2c]
call fcn.0040da90
mov dword [0x4c58f0], eax
cmp eax, 1
jge 0x41a6c3
mov dword [0x4c58f0], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.MaxThreadsPerHotkey
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x419fe6
cmp esi, ebx
je 0x41a6c3
mov esi, dword [esp + 0x2c]
call fcn.0040da90
cmp eax, 0xff
jle 0x419fc8
mov eax, 0xff
mov byte [0x4c5386], al
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
cmp eax, 1
jge 0x419fd2
mov eax, 1
mov byte [0x4c5386], al
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.MaxThreadsBuffer
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x41a032
cmp esi, ebx
je 0x41a01c
mov esi, dword [esp + 0x2c]
push ebx
call fcn.00414de0
add esp, 4
mov byte [0x4c9666], bl
cmp eax, 2
je 0x41a6c3
mov byte [0x4c9666], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.MaxThreads
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x41a097
cmp esi, ebx
je 0x41a6c3
mov esi, dword [esp + 0x2c]
call fcn.0040da90
cmp eax, 0xff
jle 0x41a079
mov eax, 0xff
mov dword [0x4c58ec], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
cmp eax, 1
jge 0x41a083
mov eax, 1
mov dword [0x4c58ec], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.ClipboardTimeout
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x41a0d2
cmp esi, ebx
je 0x41a6c3
mov esi, dword [esp + 0x2c]
call fcn.0040da90
mov dword [0x4c58dc], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.LTrim
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x41a11e
cmp esi, ebx
je 0x41a108
mov esi, dword [esp + 0x2c]
push ebx
call fcn.00414de0
add esp, 4
mov byte [0x4c9d06], bl
cmp eax, 2
je 0x41a6c3
mov byte [0x4c9d06], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.WinActivateForce
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x41a14a
mov byte [0x4c962a], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.ErrorStdOut
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x41a17a
mov eax, dword [esp + 0x28]
mov byte [eax + 0xacf], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.MaxMem
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x41a204
cmp esi, ebx
je 0x41a6c3
mov esi, dword [esp + 0x2c]
call fcn.004139b0
fld qword [0x4bfb70]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x41a1bd
fstp st(0)
fld1
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x41a1c1
fstp st(1)
jmp 0x41a1c3
fstp st(0)
fld qword [0x4bfa78]
fnstcw word [esp + 0x28]
movzx eax, word [esp + 0x28]
fmul st(1), st(0)
or eax, 0xc00
mov dword [esp + 0x2c], eax
mov eax, 3
fmulp st(1)
fldcw word [esp + 0x2c]
fistp qword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov dword [0x4c58e8], ecx
fldcw word [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.KeyHistory
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x41a26d
cmp esi, ebx
je 0x41a6c3
mov esi, dword [esp + 0x2c]
call fcn.0040da90
mov dword [0x4c58e4], eax
cmp eax, ebx
jge 0x41a249
mov dword [0x4c58e4], ebx
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
cmp eax, 0x1f4
jle 0x41a6c3
mov dword [0x4c58e4], 0x1f4
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.CommentFlag
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x41a354
cmp esi, ebx
je 0x41a6c3
cmp word [esi + 2], bx
jne 0x41a310
movzx eax, word [esi]
cmp eax, 0x23
je 0x41a612
cmp ax, word [0x4c5900]
je 0x41a612
cmp ax, word [0x4c5904]
je 0x41a612
cmp ax, word [0x4c58fc]
je 0x41a612
cmp eax, 0x21
je 0x41a612
cmp eax, 0x5e
je 0x41a612
cmp eax, 0x2b
je 0x41a612
cmp eax, 0x24
je 0x41a612
cmp eax, 0x7e
je 0x41a612
cmp eax, 0x2a
je 0x41a612
cmp eax, 0x3c
je 0x41a612
cmp eax, 0x3e
je 0x41a612
push 0xf
push esi
push 0x4c53a0
call fcn.00491254
add esp, 0xc
xor edx, edx
mov eax, 0x4c53a0
mov word [0x4c53be], dx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41a331
sub eax, edx
sar eax, 1
mov dword [0x4c53c0], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.EscapeChar
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x41a3cc
cmp esi, ebx
je 0x41a6c3
movzx eax, word [esi]
cmp eax, 0x23
je 0x41a612
cmp ax, word [0x4c5900]
je 0x41a612
cmp ax, word [0x4c58fc]
je 0x41a612
cmp eax, 0x2e
je 0x41a612
cmp dword [0x4c53c0], 1
jne 0x41a3b7
cmp ax, word [0x4c53a0]
je 0x41a612
mov word [0x4c5904], ax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.DerefChar
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x41a43b
cmp esi, ebx
je 0x41a6c3
movzx eax, word [esi]
cmp ax, word [0x4c5904]
je 0x41a612
cmp ax, word [0x4c58fc]
je 0x41a612
cmp eax, 0x2e
je 0x41a612
cmp dword [0x4c53c0], 1
jne 0x41a426
cmp ax, word [0x4c53a0]
je 0x41a612
mov word [0x4c5900], ax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4a7e2c
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x41a4b3
cmp esi, ebx
je 0x41a6c3
movzx eax, word [esi]
cmp eax, 0x23
je 0x41a612
cmp ax, word [0x4c5904]
je 0x41a612
cmp ax, word [0x4c5900]
je 0x41a612
cmp eax, 0x2e
je 0x41a612
cmp dword [0x4c53c0], 1
jne 0x41a49e
cmp ax, word [0x4c53a0]
je 0x41a612
mov word [0x4c58fc], ax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.MenuMaskKey
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x41a526
cmp esi, ebx
je 0x41a50c
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0x4c5385
xor ecx, ecx
mov edi, 0x4c58d4
mov edx, esi
call fcn.00412b40
add esp, 4
test al, al
jne 0x41a6c3
mov ecx, dword [esp + 0x28]
mov eax, str.Parameter_1_invalid.
push ebp
push eax
call fcn.0042ece0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov ecx, dword [esp + 0x28]
mov eax, str.Parameter_1_required
push ebp
push eax
call fcn.0042ece0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.InputLevel
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x41a584
cmp esi, ebx
je 0x41a56e
mov esi, dword [esp + 0x2c]
call fcn.0040da90
cmp eax, ebx
jl 0x41a612
cmp eax, 0x64
jg 0x41a612
mov byte [0x4c9667], al
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
xor eax, eax
mov byte [0x4c9667], al
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.Warn
mov ecx, ebp
call fcn.00475060
add esp, 8
test eax, eax
jne 0x419cec
cmp esi, ebx
jne 0x41a5aa
mov dword [esp + 0x2c], 0x4a2868
movzx eax, word [0x4c58fc]
mov ebx, dword [esp + 0x2c]
push eax
push ebx
call fcn.0048f331
mov edi, eax
add esp, 8
mov esi, 0x4a2868
test edi, edi
je 0x41a5e4
lea eax, [edi + 2]
call fcn.00409620
mov esi, eax
lea eax, [edi - 2]
mov edx, ebx
call fcn.00409640
xor ecx, ecx
mov word [eax + 2], cx
mov edx, dword [esp + 0x2c]
cmp word [edx], 0
mov ebx, 5
je 0x41a62d
xor edi, edi
mov ebx, edx
mov eax, dword [edi*4 + 0x4c6e84]
push eax
push ebx
call fcn.0048e559
add esp, 8
test eax, eax
je 0x41a62b
inc edi
cmp edi, 6
jne 0x41a5f7
mov ecx, dword [esp + 0x28]
push ebp
push str.Parameter_1_invalid.
call fcn.0042ece0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov ebx, edi
cmp word [esi], 0
mov edi, 2
je 0x41a674
xor edi, edi
lea ebx, [ebx]
mov ecx, dword [edi*4 + 0x4c6e9c]
push ecx
push esi
call fcn.0048e559
add esp, 8
test eax, eax
je 0x41a674
inc edi
cmp edi, 4
jne 0x41a640
mov ecx, dword [esp + 0x28]
push esi
push str.Parameter_2_invalid.
call fcn.0042ece0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
test ebx, ebx
je 0x41a67d
cmp ebx, 5
jne 0x41a683
mov dword [0x4c9644], edi
cmp ebx, 1
je 0x41a68d
cmp ebx, 5
jne 0x41a693
mov dword [0x4c9648], edi
cmp ebx, 3
je 0x41a69d
cmp ebx, 5
jne 0x41a6a3
mov dword [0x4c964c], edi
cmp ebx, 2
je 0x41a6ad
cmp ebx, 5
jne 0x41a6b3
mov dword [0x4c9650], edi
cmp ebx, 4
je 0x41a6bd
cmp ebx, 5
jne 0x41a6c3
mov dword [0x4c9654], edi
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x14
ret 8