Function at 0x422020
Capabilities:
Check if file exists
Get file attributes
Get keyboard layout
Set current directory

Disassembly:
sub esp, 0x54
push ebx
mov bx, word [0x4d5a38]
push ebp
mov ebp, dword [esp + 0x64]
push esi
xor edx, edx
push edi
mov dword [esp + 0x18], 0x90020
mov word [esp + 0x1c], bx
mov word [esp + 0x1e], dx
mov esi, ebp
test ebp, ebp
je 0x42208d
movzx eax, word [ebp]
test ax, ax
je 0x42208d
jmp 0x422060
movzx edx, ax
lea ecx, [esp + 0x18]
mov eax, 0x20
lea esp, [esp]
cmp dx, ax
je 0x4220a7
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x422070
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x422060
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422092
sub eax, edx
sar eax, 1
lea edi, [ebp + eax*2]
jmp 0x4220ec
mov edi, esi
mov eax, esi
jmp 0x4220b0
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x4220bd
cmp ecx, 9
jne 0x4220c2
add eax, 2
jmp 0x4220b0
movzx ecx, word [eax]
test cx, cx
je 0x4220ec
cmp cx, bx
je 0x4220d3
mov esi, eax
jmp 0x4220ee
movzx ecx, word [eax + 2]
add eax, 2
cmp ecx, 0x20
je 0x4220d3
cmp ecx, 9
je 0x4220d3
cmp word [eax], 0
mov esi, eax
jne 0x4220ee
xor esi, esi
sub edi, ebp
sar edi, 1
push 0xffffffffffffffff
push edi
mov eax, str.Include
mov ecx, ebp
mov byte [esp + 0x74], 0
call fcn.0047f810
add esp, 8
test eax, eax
je 0x4231da
push 0xffffffffffffffff
push edi
mov eax, str.IncludeAgain
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
sete al
mov byte [esp + 0x6c], al
test al, al
jne 0x4231da
push 0xffffffffffffffff
push edi
mov eax, str.NoEnv
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x422163
mov dword [0x4d980c], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.NoTrayIcon
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x42218f
mov byte [0x4d97de], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.Persistent
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x4221bb
mov byte [0x4d97dd], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.SingleInstance
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x422264
mov dword [0x4d97f8], 1
test esi, esi
je 0x422255
push str.Force
push esi
call fcn.00499409
add esp, 8
test eax, eax
jne 0x42220e
mov dword [0x4d97f8], 2
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push str.Ignore
push esi
call fcn.00499409
add esp, 8
test eax, eax
jne 0x422239
mov dword [0x4d97f8], 3
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0x4b3610
push esi
call fcn.00499409
add esp, 8
test eax, eax
jne 0x422255
mov dword [0x4d97f8], 4
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.InstallKeybdHook
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x422290
or byte [0x4d9eb7], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.InstallMouseHook
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x4222bc
or byte [0x4d9eb7], 2
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.UseHook
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x422301
test esi, esi
je 0x4222eb
push eax
call fcn.0040ef90
add esp, 4
mov byte [0x4d9ea7], 0
cmp eax, 2
je 0x4222f2
mov byte [0x4d9ea7], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4b198c
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x4223c8
xor ebp, ebp
cmp esi, ebp
jne 0x422334
mov dword [0x4d9820], ebp
lea eax, [ebp + 3]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
mov edi, esi
call fcn.0040f640
mov dword [0x4d9820], eax
cmp eax, ebp
jne 0x422154
mov eax, dword [0x4d5b14]
mov edi, dword [eax + 0xb4]
mov ebx, dword [esp + 0x68]
push ebp
push ebp
push ebp
push 0x4af9bc
push ebp
push 0xe3
mov dword [eax + 0xb4], ebp
push esi
mov ecx, ebx
mov byte [ebx + 0x49], 1
call fcn.00423ab0
test eax, eax
je 0x423307
mov eax, dword [0x4d5b14]
mov byte [ebx + 0x49], 0
mov dword [eax + 0xb4], edi
mov esi, dword [ebx + 4]
call fcn.0040f5c0
mov dword [0x4d9820], eax
cmp eax, ebp
je 0x423307
mov byte [eax], 5
mov dword [eax + 0xc], esi
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov dword [eax + 8], 0x4af9bc
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.IfTimeout
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x4223fb
test esi, esi
je 0x4223ec
call fcn.00404040
mov dword [0x4d5a34], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 6
push str.IfWin
push ebp
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne 0x42270a
push 3
lea eax, [ebp + 0xc]
push 0x4b37ac
push eax
call fcn.00499b8a
add esp, 0xc
test eax, eax
sete bl
movzx ecx, bl
neg ecx
sbb ecx, ecx
and ecx, 3
push 6
lea edi, [ebp + ecx*2 + 0xc]
push str.Active
push edi
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne 0x42245a
test bl, bl
setne dl
inc dl
mov byte [esp + 0x14], dl
jmp 0x42247d
push 5
push str.Exist
push edi
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne 0x4226fb
test bl, bl
setne al
add al, 3
mov byte [esp + 0x14], al
xor edi, edi
cmp esi, edi
jne 0x422496
mov dword [0x4d9820], edi
lea eax, [edi + 3]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
mov dx, word [0x4d5a38]
mov bx, word [0x4d5a3c]
mov ecx, esi
movzx eax, word [ecx]
test ax, ax
je 0x4224cf
mov edi, edi
cmp ax, word [0x4d5a40]
je 0x422526
cmp ax, dx
je 0x422526
cmp ax, bx
je 0x422526
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x4224b0
test edi, edi
je 0x422606
lea eax, [edi + 2]
call fcn.0040eef0
mov ebx, eax
mov eax, edi
sub eax, esi
xor ecx, ecx
sar eax, 1
mov dword [esp + 0x6c], ebx
mov word [edi], cx
call fcn.0041a330
movzx ebp, word [0x4d5a40]
mov ecx, ebx
mov edi, edi
movzx eax, word [ecx]
test ax, ax
je 0x42260e
lea esp, [esp]
cmp ax, bp
je 0x422570
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x422510
jmp 0x42260e
movzx eax, word [ecx]
test ax, ax
je 0x4224cf
cmp ax, bx
je 0x422557
cmp ax, dx
jne 0x422546
test edi, edi
jne 0x422557
mov edi, ecx
add ecx, 2
jmp 0x4224a6
add ecx, 2
cmp word [ecx], 0
je 0x4224cf
add ecx, 2
jmp 0x4224a6
mov ecx, dword [esp + 0x68]
push ebp
push str.Literal_commas_and_percent_signs_must_be_escaped__e.g.____
call fcn.0043a380
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
cmp word [ecx], 0
je 0x42260e
movzx eax, word [ecx + 2]
lea edi, [ecx + 2]
add eax, 0xffffff9f
cmp eax, 0x15
ja case.0x422590.99
movzx edx, byte [eax + 0x42339c]
jmp dword [edx*4 + 0x423378]
mov eax, 7
mov word [edi], ax
jmp case.0x422590.99
mov edx, 8
jmp 0x4225d9
mov eax, 0xc
mov word [edi], ax
jmp case.0x422590.99
mov edx, 0xa
jmp 0x4225d9
mov eax, 0xd
mov word [edi], ax
jmp case.0x422590.99
mov edx, 9
jmp 0x4225d9
mov eax, 0xb
mov word [edi], ax
jmp case.0x422590.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 0x4225e1
sub eax, ebx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push ecx
call fcn.0049a7a0
add esp, 0xc
mov ecx, edi
jmp 0x422500
mov dword [esp + 0x6c], 0x4af9bc
movzx ebp, word [0x4d5a40]
mov ecx, esi
movzx eax, word [ecx]
test ax, ax
je 0x422631
nop
cmp ax, bp
je 0x422669
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x422620
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x14]
push ecx
push esi
push edx
call fcn.0040f360
add esp, 0xc
test eax, eax
jne 0x422154
mov ecx, dword [esp + 0x68]
push 0x4af9bc
push str.Out_of_memory.
call fcn.0043a380
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
cmp word [ecx], 0
je 0x422631
movzx eax, word [ecx + 2]
lea edi, [ecx + 2]
add eax, 0xffffff9f
cmp eax, 0x15
ja case.0x422685.99
movzx edx, byte [eax + 0x4233d8]
jmp dword [edx*4 + 0x4233b4]
mov eax, 7
mov word [edi], ax
jmp case.0x422685.99
mov edx, 8
jmp 0x4226ce
mov eax, 0xc
mov word [edi], ax
jmp case.0x422685.99
mov edx, 0xa
jmp 0x4226ce
mov eax, 0xd
mov word [edi], ax
jmp case.0x422685.99
mov edx, 9
jmp 0x4226ce
mov eax, 0xb
mov word [edi], ax
jmp case.0x422685.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 0x4226d6
sub eax, ebx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push ecx
call fcn.0049a7a0
add esp, 0xc
mov ecx, edi
jmp 0x422617
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4b6ce0
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x4228b9
test esi, esi
je 0x4228aa
mov eax, str.EndChars
mov ecx, esi
call fcn.0047fb20
test eax, eax
je 0x42283c
mov ebx, 0x4b6cf8
call fcn.004054ea
test eax, eax
je 0x422154
push 0x64
add eax, 2
push eax
push str._____:____.___n__t
call fcn.0049cae4
movzx ebx, word [0x4d5a40]
add esp, 0xc
xor eax, eax
mov word [0x4d5b10], ax
mov ecx, str._____:____.___n__t
lea esp, [esp]
movzx eax, word [ecx]
test ax, ax
je 0x422154
lea esp, [esp]
cmp ax, bx
je 0x4227b0
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x422790
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
cmp word [ecx], 0
je 0x422154
movzx eax, word [ecx + 2]
lea esi, [ecx + 2]
add eax, 0xffffff9f
cmp eax, 0x15
ja case.0x4227d0.99
movzx edx, byte [eax + 0x423414]
jmp dword [edx*4 + 0x4233f0]
mov eax, 7
jmp 0x42280f
mov edx, 8
mov word [esi], dx
jmp case.0x4227d0.99
mov eax, 0xc
jmp 0x42280f
mov edx, 0xa
mov word [esi], dx
jmp case.0x4227d0.99
mov eax, 0xd
jmp 0x42280f
mov edx, 9
mov word [esi], dx
jmp case.0x4227d0.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 0x422817
sub eax, edi
sar eax, 1
lea edx, [eax + eax + 2]
push edx
push esi
push ecx
call fcn.0049a7a0
add esp, 0xc
mov ecx, esi
jmp 0x422780
push 7
push str.NoMouse
push esi
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne 0x422864
mov byte [0x4d5a3b], al
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0x4d9ea5
push 0x4d9ea4
push 0x4d9ea3
push 0x4d5a3a
push 0x4d9ea0
push 0x4d9ea2
push 0x4d5a13
push 0x4d5a12
push 0x4d9ea1
push 0x4d5a44
push 0x4d9e9c
push 0x4d9e98
mov eax, esi
call fcn.00412c40
add esp, 0x30
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.HotkeyModifierTimeout
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x4228ec
test esi, esi
je 0x4228dd
call fcn.00414390
mov dword [0x4d5a14], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.HotkeyInterval
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x42292e
test esi, esi
je 0x42291f
call fcn.00414390
mov dword [0x4d5a30], eax
cmp eax, 0xa
jge 0x42291f
mov dword [0x4d5a30], 0xa
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.MaxHotkeysPerInterval
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x422970
test esi, esi
je 0x422961
call fcn.00414390
mov dword [0x4d5a2c], eax
cmp eax, 1
jge 0x422961
mov dword [0x4d5a2c], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.MaxThreadsPerHotkey
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x4229cd
test esi, esi
je 0x4229be
call fcn.00414390
cmp eax, 0xff
jle 0x4229af
mov eax, 0xff
mov byte [0x4d54c3], al
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
cmp eax, 1
jge 0x4229b9
mov eax, 1
mov byte [0x4d54c3], al
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.MaxThreadsBuffer
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x422a12
test esi, esi
je 0x4229fc
push eax
call fcn.0040ef90
add esp, 4
mov byte [0x4d9802], 0
cmp eax, 2
je 0x422a03
mov byte [0x4d9802], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.MaxThreads
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x422a6f
test esi, esi
je 0x422a60
call fcn.00414390
cmp eax, 0xff
jle 0x422a51
mov eax, 0xff
mov dword [0x4d5a28], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
cmp eax, 1
jge 0x422a5b
mov eax, 1
mov dword [0x4d5a28], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.ClipboardTimeout
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x422aa2
test esi, esi
je 0x422a93
call fcn.00414390
mov dword [0x4d5a18], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.LTrim
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x422ae7
test esi, esi
je 0x422ad1
push eax
call fcn.0040ef90
add esp, 4
mov byte [0x4d9ea6], 0
cmp eax, 2
je 0x422ad8
mov byte [0x4d9ea6], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.WinActivateForce
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x422b13
mov byte [0x4d97dc], 1
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.ErrorStdOut
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x422b50
mov edi, dword [esp + 0x68]
mov eax, esi
mov byte [edi + 0xae7], 1
call fcn.0041d370
mov dword [edi + 0xae8], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.MaxMem
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x422bd1
test esi, esi
je 0x422bc2
call fcn.0041a400
fld qword [0x4cee70]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x422b8b
fstp st(0)
fld1
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x422b8f
fstp st(1)
jmp 0x422b91
fstp st(0)
fld qword [0x4ced80]
fnstcw word [esp + 0x68]
movzx eax, word [esp + 0x68]
fmul st(1), st(0)
or eax, 0xc00
mov dword [esp + 0x6c], eax
fmulp st(1)
fldcw word [esp + 0x6c]
fistp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov dword [0x4d5a24], eax
fldcw word [esp + 0x68]
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.KeyHistory
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x422c32
test esi, esi
je 0x422c23
call fcn.00414390
mov dword [0x4d5a20], eax
test eax, eax
jns 0x422c12
mov dword [0x4d5a20], 0
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
cmp eax, 0x1f4
jle 0x422c23
mov dword [0x4d5a20], 0x1f4
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.CommentFlag
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x422d19
test esi, esi
je 0x422d0a
cmp word [esi + 2], ax
jne 0x422cd5
movzx eax, word [esi]
cmp eax, 0x23
je 0x422fcb
cmp ax, word [0x4d5a3c]
je 0x422fcb
cmp ax, word [0x4d5a40]
je 0x422fcb
cmp ax, word [0x4d5a38]
je 0x422fcb
cmp eax, 0x21
je 0x422fcb
cmp eax, 0x5e
je 0x422fcb
cmp eax, 0x2b
je 0x422fcb
cmp eax, 0x24
je 0x422fcb
cmp eax, 0x7e
je 0x422fcb
cmp eax, 0x2a
je 0x422fcb
cmp eax, 0x3c
je 0x422fcb
cmp eax, 0x3e
je 0x422fcb
push 0xf
push esi
push 0x4d54d0
call fcn.0049cae4
add esp, 0xc
xor ecx, ecx
mov eax, 0x4d54d0
mov word [0x4d54ee], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422cf6
sub eax, edx
sar eax, 1
mov dword [0x4d54c4], eax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.EscapeChar
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x422d91
test esi, esi
je 0x422154
movzx eax, word [esi]
cmp eax, 0x23
je 0x422fcb
cmp ax, word [0x4d5a3c]
je 0x422fcb
cmp ax, word [0x4d5a38]
je 0x422fcb
cmp eax, 0x2e
je 0x422fcb
cmp dword [0x4d54c4], 1
jne 0x422d7c
cmp ax, word [0x4d54d0]
je 0x422fcb
mov word [0x4d5a40], ax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.DerefChar
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x422e00
test esi, esi
je 0x422154
movzx eax, word [esi]
cmp ax, word [0x4d5a40]
je 0x422fcb
cmp ax, word [0x4d5a38]
je 0x422fcb
cmp eax, 0x2e
je 0x422fcb
cmp dword [0x4d54c4], 1
jne 0x422deb
cmp ax, word [0x4d54d0]
je 0x422fcb
mov word [0x4d5a3c], ax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4b6ec4
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x422e78
test esi, esi
je 0x422154
movzx eax, word [esi]
cmp eax, 0x23
je 0x422fcb
cmp ax, word [0x4d5a40]
je 0x422fcb
cmp ax, word [0x4d5a3c]
je 0x422fcb
cmp eax, 0x2e
je 0x422fcb
cmp dword [0x4d54c4], 1
jne 0x422e63
cmp ax, word [0x4d54d0]
je 0x422fcb
mov word [0x4d5a38], ax
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.MenuMaskKey
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x422eeb
test esi, esi
je 0x422ed1
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0x4d54c1
xor ecx, ecx
mov edi, 0x4d5a10
mov edx, esi
call fcn.004195c0
add esp, 4
test al, al
jne 0x422154
mov ecx, dword [esp + 0x68]
mov eax, str.Parameter_1_invalid.
push ebp
push eax
call fcn.0043a380
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
mov ecx, dword [esp + 0x68]
mov eax, str.Parameter_1_required
push ebp
push eax
call fcn.0043a380
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.InputLevel
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x422f45
test esi, esi
je 0x422f2f
call fcn.00414390
test eax, eax
js 0x422fcb
cmp eax, 0x64
jg 0x422fcb
mov byte [0x4d9803], al
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
xor eax, eax
mov byte [0x4d9803], al
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, str.Warn
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x423093
test esi, esi
jne 0x422f68
mov esi, 0x4af9bc
movzx edx, word [0x4d5a38]
push edx
push esi
call fcn.0049a399
mov edi, eax
add esp, 8
mov ebx, 0x4af9bc
test edi, edi
je 0x422f9e
lea eax, [edi + 2]
call fcn.0040eef0
mov ebx, eax
lea eax, [edi - 2]
mov edx, esi
call fcn.0040ef10
xor ecx, ecx
mov word [eax + 2], cx
cmp word [esi], 0
mov edi, 6
je 0x422fe4
xor edi, edi
jmp 0x422fb0
mov edx, dword [edi*4 + 0x4b6f1c]
push edx
push esi
call fcn.00499409
add esp, 8
test eax, eax
je 0x422fe4
inc edi
cmp edi, 7
jne 0x422fb0
mov ecx, dword [esp + 0x68]
push ebp
push str.Parameter_1_invalid.
call fcn.0043a380
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
cmp word [ebx], 0
mov esi, 2
je 0x423025
xor esi, esi
mov eax, dword [esi*4 + 0x4b6f38]
push eax
push ebx
call fcn.00499409
add esp, 8
test eax, eax
je 0x423025
inc esi
cmp esi, 4
jne 0x422ff1
mov ecx, dword [esp + 0x68]
push ebx
push str.Parameter_2_invalid.
call fcn.0043a380
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
test edi, edi
je 0x42302e
cmp edi, 6
jne 0x423034
mov dword [0x4d97e0], esi
cmp edi, 1
je 0x42303e
cmp edi, 6
jne 0x423044
mov dword [0x4d97e4], esi
cmp edi, 3
je 0x42304e
cmp edi, 6
jne 0x423054
mov dword [0x4d97e8], esi
cmp edi, 2
je 0x42305e
cmp edi, 6
jne 0x423064
mov dword [0x4d97ec], esi
cmp edi, 4
je 0x42306e
cmp edi, 6
jne 0x423074
mov dword [0x4d97f0], esi
cmp edi, 5
je 0x42307e
cmp edi, 6
jne 0x423084
mov dword [0x4d97f4], esi
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xffffffffffffffff
push edi
mov eax, 0x4b6f48
mov ecx, ebp
call fcn.0047f810
add esp, 8
test eax, eax
jne 0x4226fb
test esi, esi
jne 0x4230ce
mov ecx, dword [esp + 0x68]
push 0x4af9bc
push str.Parameter_1_required
call fcn.0043a380
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
push 0xa
push 0x4afa94
push esi
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne 0x4231c5
movzx eax, word [esi + 0x14]
test ax, ax
je 0x422154
cmp eax, 0x20
je 0x423101
cmp eax, 9
jne 0x4231c5
lea eax, [esi + 0x16]
call fcn.0040eef0
movzx ecx, word [eax]
test cx, cx
je 0x4231b6
mov edi, eax
test cx, cx
je 0x423138
movzx ecx, cx
nop
cmp cx, 0x20
je 0x423138
cmp cx, 9
je 0x423138
movzx ecx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x423120
mov ebp, edi
sub ebp, eax
sar ebp, 1
inc ebp
cmp ebp, 0x20
jbe 0x423149
mov ebp, 0x20
dec ebp
push ebp
push eax
lea edx, [esp + 0x28]
push edx
call fcn.0049cae4
add esp, 0xc
lea ecx, [esp + 0x20]
xor eax, eax
push str.Unicode
push ecx
mov word [esp + ebp*2 + 0x28], ax
call fcn.00499409
add esp, 8
test eax, eax
je 0x4231a3
lea edx, [esp + 0x20]
push str.32_bit
push edx
call fcn.00499409
add esp, 8
test eax, eax
je 0x4231a3
push 0
push 0x4b6f7c
lea ecx, [esp + 0x28]
call fcn.00482170
add esp, 8
test eax, eax
je 0x4231c5
mov eax, edi
call fcn.0040eef0
movzx ecx, word [eax]
test cx, cx
jne 0x423115
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
mov ebx, dword [esp + 0x68]
mov ecx, esi
call fcn.00423430
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
test esi, esi
jne 0x4231f7
mov ecx, dword [esp + 0x68]
push ebp
push str.Parameter_1_required
call fcn.0043a380
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
cmp word [esi], 0x2a
jne 0x4232ee
movzx edi, word [esi + 2]
test edi, 0xffffff80
jne 0x42321f
push 2
push edi
call fcn.0049b39c
add esp, 8
test eax, eax
je 0x42321f
and edi, 0xffffffdf
cmp di, 0x49
jne 0x4232ee
movzx eax, word [esi + 4]
cmp eax, 0x20
je 0x42323b
cmp eax, 9
jne 0x4232ee
mov byte [esp + 0x14], 1
add esi, 6
cmp word [esi], 0x3c
jne 0x4232f8
push 0x3e
push esi
call fcn.0049a399
mov edi, eax
add esp, 8
test edi, edi
je 0x4232f8
cmp word [edi + 2], 0
jne 0x4232f8
xor eax, eax
add esi, 2
mov word [edi], ax
call fcn.0044b8d0
mov ebx, eax
push 0
lea ecx, [esp + 0x17]
push ecx
mov eax, edi
sub eax, esi
lea edx, [esp + 0x74]
push edx
sar eax, 1
push eax
push esi
mov esi, dword [esp + 0x7c]
mov ecx, esi
call fcn.0042b280
test ebx, ebx
je 0x4232af
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
call fcn.0049996d
add esp, 4
mov al, byte [esp + 0x6c]
test al, al
jne 0x4232cb
cmp byte [esp + 0x13], al
jne 0x422154
cmp byte [esp + 0x14], al
jne 0x422154
mov ecx, 0x3e
mov word [edi], cx
test al, al
jne 0x423307
push ebp
push str.Function_library_not_found.
mov ecx, esi
call fcn.0043a380
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
mov byte [esp + 0x14], 0
jmp 0x423243
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.004391f0
test eax, eax
jne 0x423313
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x423346
test al, 0x10
je 0x423346
mov eax, edi
call fcn.0044b7b0
push edi
call fcn.0049996d
mov eax, 3
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x6c]
push eax
push ecx
mov ecx, dword [esp + 0x70]
push edi
call fcn.0041f710
neg eax
sbb esi, esi
push edi
and esi, 3
call fcn.0049996d
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8