Function at 0x4178a0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov di, word [0x4bd3e8]
xor edx, edx
lea ebx, [esp + 0x18]
mov esi, eax
mov dword [esp + 0x18], 0x90020
mov word [esp + 0x1c], di
mov word [esp + 0x1e], dx
call fcn.00408fc0
test eax, eax
jne 0x4178ea
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4178d6
sub eax, edx
sar eax, 1
lea eax, [esi + eax*2]
jmp 0x417934
mov edx, eax
lea esp, [esp]
movzx ecx, word [edx]
cmp ecx, 0x20
je 0x4178fd
cmp ecx, 9
jne 0x417902
add edx, 2
jmp 0x4178f0
movzx ecx, word [edx]
test cx, cx
je 0x417934
cmp cx, di
je 0x417913
mov ebp, edx
jmp 0x417936
lea ecx, [edx + 2]
movzx edx, word [ecx]
cmp edx, 0x20
je 0x417923
cmp edx, 9
jne 0x417928
add ecx, 2
jmp 0x417916
cmp word [ecx], 0
mov ebp, ecx
mov dword [esp + 0x14], ebp
jne 0x41793a
xor ebp, ebp
mov dword [esp + 0x14], ebp
sub eax, esi
sar eax, 1
mov edi, eax
push edi
mov eax, str.Include
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
je 0x417986
push edi
mov eax, str.IncludeAgain
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
je 0x417986
push edi
mov eax, str.NoEnv
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x417995
mov dword [0x4c0e70], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.NoTrayIcon
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x4179bf
mov byte [0x4c0e5c], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.Persistent
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x4179e9
mov byte [0x4c0d3f], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.SingleInstance
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x417a98
mov dword [0x4c0e58], 1
test ebp, ebp
je 0x417986
push str.Force
push ebp
call fcn.00481dd9
add esp, 8
test eax, eax
jne 0x417a3e
mov dword [0x4c0e58], 2
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push str.Ignore
push ebp
call fcn.00481dd9
add esp, 8
test eax, eax
jne 0x417a69
mov dword [0x4c0e58], 3
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push 0x49e95c
push ebp
call fcn.00481dd9
add esp, 8
test eax, eax
jne 0x417986
mov dword [0x4c0e58], 4
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.InstallKeybdHook
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x417ac2
or byte [0x4c18c9], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.InstallMouseHook
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x417aec
or byte [0x4c18c9], 2
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.UseHook
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x417b35
test ebp, ebp
je 0x417b1f
push eax
mov esi, ebp
call fcn.004136c0
add esp, 4
mov byte [0x4c1899], 0
cmp eax, 2
je 0x417986
mov byte [0x4c1899], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, 0x4a0348
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x417d35
test ebp, ebp
jne 0x417b7e
mov eax, 0x4a5c64
mov dword [0x4bd3d8], eax
mov dword [0x4bd3dc], eax
mov byte [0x4c0e66], 0
mov dword [0x4bd3e0], 0xffffffff
lea eax, [ebp + 3]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x50]
mov eax, dword [0x4bd4c4]
mov ebp, dword [eax + 0xb4]
movzx ebx, word [0x4bd3f0]
mov dword [esp + 0x18], edx
xor edx, edx
mov dword [eax + 0xb4], edx
mov dword [ecx + 0x50], edx
mov ecx, dword [esp + 0x14]
lea ebx, [ebx]
movzx eax, word [ecx]
test ax, ax
je 0x417bc9
cmp ax, bx
je 0x417bf3
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x417bb8
mov edi, dword [esp + 0x24]
push 0
push 0x100
lea ecx, [esp + 0x1c]
push ecx
push 3
push edi
call fcn.0041b130
test eax, eax
jne 0x417c7b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
cmp word [ecx], 0
je 0x417bc9
movzx eax, word [ecx + 2]
lea esi, [ecx + 2]
add eax, 0xffffff9f
cmp eax, 0x15
ja case.0x417c0f.99
movzx eax, byte [eax + 0x4188cc]
jmp dword [eax*4 + 0x4188a8]
mov edx, 7
jmp 0x417c4e
mov eax, 8
mov word [esi], ax
jmp case.0x417c0f.99
mov edx, 0xc
jmp 0x417c4e
mov eax, 0xa
mov word [esi], ax
jmp case.0x417c0f.99
mov edx, 0xd
jmp 0x417c4e
mov eax, 9
mov word [esi], ax
jmp case.0x417c0f.99
mov edx, 0xb
mov word [esi], dx
mov eax, esi
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x417c56
sub eax, edi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push ecx
call fcn.004827f0
add esp, 0xc
mov ecx, esi
jmp 0x417bb0
mov esi, dword [edi + 4]
cmp dword [edi], esi
jne 0x417c88
mov dword [edi], 0
mov eax, dword [esi + 0x10]
mov dword [edi + 4], eax
test eax, eax
je 0x417c99
mov dword [eax + 0x14], 0
mov edx, dword [0x4bd4c4]
mov ebx, dword [0x4c0e8c]
mov eax, edi
mov ecx, dword [eax + 4]
mov dword [eax + 0x41c], ecx
mov ecx, dword [esp + 0x18]
mov dword [edx + 0xb4], ebp
mov dword [eax + 0x50], ecx
mov edx, dword [esi + 8]
mov eax, dword [edx + 4]
mov dword [0x4bd3d8], eax
mov eax, dword [0x4c0e90]
lea edi, [ebx + 1]
mov byte [0x4c0e66], 5
mov dword [0x4bd3dc], 0x4a5c64
cmp edi, eax
jle 0x417d09
mov edx, dword [0x4c0e88]
add eax, 0x64
lea ecx, [eax*4]
push ecx
push edx
mov dword [0x4c0e90], eax
call fcn.00483037
add esp, 8
mov dword [0x4c0e88], eax
mov ecx, dword [0x4c0e88]
mov eax, ebx
mov dword [0x4bd3e0], eax
mov dword [ecx + eax*4], esi
mov dword [0x4c0e8c], edi
mov dword [esi + 0x10], 0
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.IfTimeout
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x417d6c
test ebp, ebp
je 0x417986
mov esi, ebp
call fcn.00412480
mov dword [0x4bd3e4], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push 6
push str.IfWin
push esi
call fcn.00482612
add esp, 0xc
test eax, eax
jne 0x418095
push 3
lea edx, [esi + 0xc]
push 0x49eaf4
push edx
call fcn.00482612
add esp, 0xc
test eax, eax
sete bl
movzx eax, bl
neg eax
sbb eax, eax
and eax, 3
push 6
lea edi, [esi + eax*2 + 0xc]
push str.Active
push edi
call fcn.00482612
add esp, 0xc
test eax, eax
jne 0x417dcd
test bl, bl
setne cl
inc cl
mov byte [0x4c0e66], cl
jmp 0x417df3
push 5
push str.Exist
push edi
call fcn.00482612
add esp, 0xc
test eax, eax
jne 0x418086
test bl, bl
setne dl
add dl, 3
mov byte [0x4c0e66], dl
mov dword [0x4bd3e0], 0xffffffff
test ebp, ebp
jne 0x417e24
mov eax, 0x4a5c64
mov dword [0x4bd3d8], eax
mov dword [0x4bd3dc], eax
mov byte [0x4c0e66], 0
lea eax, [ebp + 3]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov dx, word [0x4bd3e8]
mov bx, word [0x4bd3ec]
xor edi, edi
mov ecx, ebp
movzx eax, word [ecx]
test ax, ax
je 0x417e5f
mov edi, edi
cmp ax, word [0x4bd3f0]
je 0x417eb6
cmp ax, dx
je 0x417eb6
cmp ax, bx
je 0x417eb6
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x417e40
test edi, edi
je 0x417f96
lea eax, [edi + 2]
call fcn.00409010
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.00412420
movzx ebx, word [0x4bd3f0]
mov ecx, dword [esp + 0x14]
movzx eax, word [ecx]
test ax, ax
je 0x417f9e
lea esp, [esp]
cmp ax, bx
je 0x417f00
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x417ea0
jmp 0x417f9e
movzx eax, word [ecx]
test ax, ax
je 0x417e5f
cmp ax, bx
je 0x417ee7
cmp ax, dx
jne 0x417ed6
test edi, edi
jne 0x417ee7
mov edi, ecx
add ecx, 2
jmp 0x417e36
add ecx, 2
cmp word [ecx], 0
je 0x417e5f
add ecx, 2
jmp 0x417e36
mov ecx, dword [esp + 0x24]
push esi
push str.Literal_commas_and_percent_signs_must_be_escaped__e.g.____
call fcn.0042b900
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
cmp word [ecx], 0
je 0x417f9e
movzx eax, word [ecx + 2]
lea edi, [ecx + 2]
add eax, 0xffffff9f
cmp eax, 0x15
ja case.0x417f20.99
movzx edx, byte [eax + 0x418908]
jmp dword [edx*4 + 0x4188e4]
mov eax, 7
mov word [edi], ax
jmp case.0x417f20.99
mov edx, 8
jmp 0x417f69
mov eax, 0xc
mov word [edi], ax
jmp case.0x417f20.99
mov edx, 0xa
jmp 0x417f69
mov eax, 0xd
mov word [edi], ax
jmp case.0x417f20.99
mov edx, 9
jmp 0x417f69
mov eax, 0xb
mov word [edi], ax
jmp case.0x417f20.99
mov edx, 0x20
mov word [edi], dx
mov eax, edi
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x417f71
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push ecx
call fcn.004827f0
add esp, 0xc
mov ecx, edi
jmp 0x417e90
mov dword [esp + 0x14], 0x4a5c64
movzx ebx, word [0x4bd3f0]
mov ecx, ebp
movzx eax, word [ecx]
test ax, ax
je 0x417fc1
nop
cmp ax, bx
je 0x417ff4
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x417fb0
mov ecx, dword [esp + 0x14]
push ecx
push ebp
call fcn.00409280
add esp, 8
test eax, eax
jne 0x417986
mov ecx, dword [esp + 0x24]
push 0x4a5c64
push str.Out_of_memory.
call fcn.0042b900
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
cmp word [ecx], 0
je 0x417fc1
movzx eax, word [ecx + 2]
lea edi, [ecx + 2]
add eax, 0xffffff9f
cmp eax, 0x15
ja case.0x418010.99
movzx edx, byte [eax + 0x418944]
jmp dword [edx*4 + 0x418920]
mov eax, 7
mov word [edi], ax
jmp case.0x418010.99
mov edx, 8
jmp 0x418059
mov eax, 0xc
mov word [edi], ax
jmp case.0x418010.99
mov edx, 0xa
jmp 0x418059
mov eax, 0xd
mov word [edi], ax
jmp case.0x418010.99
mov edx, 9
jmp 0x418059
mov eax, 0xb
mov word [edi], ax
jmp case.0x418010.99
mov edx, 0x20
mov word [edi], dx
mov eax, edi
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x418061
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push ecx
call fcn.004827f0
add esp, 0xc
mov ecx, edi
jmp 0x417fa7
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.Hotstring
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x418234
test ebp, ebp
je 0x417986
mov eax, str.EndChars
mov ecx, ebp
call fcn.004672f0
test eax, eax
je 0x4181bc
mov ebx, 0x4a041c
call fcn.00408fc0
test eax, eax
je 0x417986
add eax, 2
push 0x64
push eax
push str._____:____.___n__t
call fcn.00485434
movzx ebx, word [0x4bd3f0]
add esp, 0xc
xor edx, edx
mov word [0x4bd4c0], dx
mov ecx, str._____:____.___n__t
movzx eax, word [ecx]
test ax, ax
je 0x417986
nop
cmp ax, bx
je 0x418130
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x418110
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
cmp word [ecx], 0
je 0x417986
movzx eax, word [ecx + 2]
lea esi, [ecx + 2]
add eax, 0xffffff9f
cmp eax, 0x15
ja case.0x418150.99
movzx eax, byte [eax + 0x418980]
jmp dword [eax*4 + 0x41895c]
mov edx, 7
jmp 0x41818f
mov eax, 8
mov word [esi], ax
jmp case.0x418150.99
mov edx, 0xc
jmp 0x41818f
mov eax, 0xa
mov word [esi], ax
jmp case.0x418150.99
mov edx, 0xd
jmp 0x41818f
mov eax, 9
mov word [esi], ax
jmp case.0x418150.99
mov edx, 0xb
mov word [esi], dx
mov eax, esi
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x418197
sub eax, edi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push ecx
call fcn.004827f0
add esp, 0xc
mov ecx, esi
jmp 0x418103
push 7
push str.NoMouse
push ebp
call fcn.00482612
add esp, 0xc
test eax, eax
jne 0x4181e4
mov byte [0x4bd3ef], al
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push 0x4c1687
push 0x4c1686
push 0x4bd3ee
push 0x4c1685
push 0x4c1684
push 0x4bd3eb
push 0x4bd3ea
push 0x4c0e67
push 0x4bd3f4
push 0x4c1680
push 0x4c167c
mov eax, ebp
call fcn.0040c6b0
add esp, 0x2c
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.HotkeyModifierTimeout
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x41826b
test ebp, ebp
je 0x417986
mov esi, ebp
call fcn.0040c910
mov dword [0x4bd3b8], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.HotkeyInterval
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x4182b5
test ebp, ebp
je 0x417986
mov esi, ebp
call fcn.0040c910
mov dword [0x4bd3d4], eax
cmp eax, 0xa
jge 0x417986
mov dword [0x4bd3d4], 0xa
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.MaxHotkeysPerInterval
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x4182ff
test ebp, ebp
je 0x417986
mov esi, ebp
call fcn.0040c910
mov dword [0x4bd3d0], eax
cmp eax, 1
jge 0x417986
mov dword [0x4bd3d0], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.MaxThreadsPerHotkey
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x418360
test ebp, ebp
je 0x417986
mov esi, ebp
call fcn.0040c910
cmp eax, 0xff
jle 0x418342
mov eax, 0xff
mov byte [0x4bd383], al
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
cmp eax, 1
jge 0x41834c
mov eax, 1
mov byte [0x4bd383], al
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.MaxThreadsBuffer
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x4183a9
test ebp, ebp
je 0x418393
push eax
mov esi, ebp
call fcn.004136c0
add esp, 4
mov byte [0x4c0e65], 0
cmp eax, 2
je 0x417986
mov byte [0x4c0e65], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.MaxThreads
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x41840a
test ebp, ebp
je 0x417986
mov esi, ebp
call fcn.0040c910
cmp eax, 0xff
jle 0x4183ec
mov eax, 0xff
mov dword [0x4bd3cc], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
cmp eax, 1
jge 0x4183f6
mov eax, 1
mov dword [0x4bd3cc], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.ClipboardTimeout
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x418441
test ebp, ebp
je 0x417986
mov esi, ebp
call fcn.0040c910
mov dword [0x4bd3bc], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.LTrim
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x41848a
test ebp, ebp
je 0x418474
push eax
mov esi, ebp
call fcn.004136c0
add esp, 4
mov byte [0x4c1898], 0
cmp eax, 2
je 0x417986
mov byte [0x4c1898], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.WinActivateForce
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x4184b4
mov byte [0x4c0d3e], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.ErrorStdOut
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x4184e2
mov ecx, dword [esp + 0x24]
mov byte [ecx + 0x898], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.AllowSameLineComments
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x41850c
mov byte [0x4bd382], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.MaxMem
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x418596
test ebp, ebp
je 0x417986
mov esi, ebp
call fcn.004124b0
fld qword [0x4b7920]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x41854f
fstp st(0)
fld1
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x418553
fstp st(1)
jmp 0x418555
fstp st(0)
fld qword [0x4b7830]
fnstcw word [esp + 0x24]
movzx eax, word [esp + 0x24]
fmul st(1), st(0)
or eax, 0xc00
mov dword [esp + 0x18], eax
mov eax, 3
fmulp st(1)
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov edx, dword [esp + 0x18]
mov dword [0x4bd3c8], edx
fldcw word [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.KeyHistory
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x4185ff
test ebp, ebp
je 0x417986
mov esi, ebp
call fcn.0040c910
mov dword [0x4bd3c4], eax
test eax, eax
jns 0x4185db
mov dword [0x4bd3c4], 0
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
cmp eax, 0x1f4
jle 0x417986
mov dword [0x4bd3c4], 0x1f4
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.CommentFlag
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x4186d3
test ebp, ebp
je 0x417986
cmp word [ebp + 2], ax
jne 0x41868a
movzx eax, word [ebp]
cmp eax, 0x23
je 0x418671
cmp ax, word [0x4bd3ec]
je 0x418671
cmp ax, word [0x4bd3f0]
je 0x418671
cmp ax, word [0x4bd3e8]
je 0x418671
cmp eax, 0x21
je 0x418671
cmp eax, 0x5e
je 0x418671
cmp eax, 0x2b
je 0x418671
cmp eax, 0x24
je 0x418671
cmp eax, 0x7e
je 0x418671
cmp eax, 0x2a
je 0x418671
cmp eax, 0x3c
je 0x418671
cmp eax, 0x3e
jne 0x41868a
mov ecx, dword [esp + 0x24]
push esi
push str.Parameter_1_invalid
call fcn.0042b900
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push 0xf
push ebp
push 0x4bd390
call fcn.00485434
add esp, 0xc
xor eax, eax
mov word [0x4bd3ae], ax
mov eax, 0x4bd390
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4186b0
sub eax, edx
sar eax, 1
mov dword [0x4bd384], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.EscapeChar
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x41874a
test ebp, ebp
je 0x417986
movzx eax, word [ebp]
cmp eax, 0x23
je 0x418671
cmp ax, word [0x4bd3ec]
je 0x418671
cmp ax, word [0x4bd3e8]
je 0x418671
cmp eax, 0x2e
je 0x418671
cmp dword [0x4bd384], 1
jne 0x418735
cmp ax, word [0x4bd390]
je 0x418671
mov word [0x4bd3f0], ax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.DerefChar
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x4187b8
test ebp, ebp
je 0x417986
movzx eax, word [ebp]
cmp ax, word [0x4bd3f0]
je 0x418671
cmp ax, word [0x4bd3e8]
je 0x418671
cmp eax, 0x2e
je 0x418671
cmp dword [0x4bd384], 1
jne 0x4187a3
cmp ax, word [0x4bd390]
je 0x418671
mov word [0x4bd3ec], ax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, 0x4a0644
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x41882f
test ebp, ebp
je 0x417986
movzx eax, word [ebp]
cmp eax, 0x23
je 0x418671
cmp ax, word [0x4bd3f0]
je 0x418671
cmp ax, word [0x4bd3ec]
je 0x418671
cmp eax, 0x2e
je 0x418671
cmp dword [0x4bd384], 1
jne 0x41881a
cmp ax, word [0x4bd390]
je 0x418671
mov word [0x4bd3e8], ax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push edi
mov eax, str.MenuMaskKey
mov ecx, esi
call fcn.00466fe0
add esp, 4
test eax, eax
jne 0x418086
test ebp, ebp
je 0x41888b
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 1
mov ecx, eax
push 1
xor edx, edx
mov eax, ebp
call fcn.004116f0
add esp, 8
mov byte [0x4bd381], al
test al, al
jne 0x417986
mov ecx, dword [esp + 0x24]
mov eax, str.Parameter_1_invalid
push esi
push eax
call fcn.0042b900
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov ecx, dword [esp + 0x24]
mov eax, str.Parameter_1_required
push esi
push eax
call fcn.0042b900
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4