Function at 0x418b70
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xc4
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x60], edi
cmp byte [edi], 0
je 0x419efb
mov eax, dword [0x4f898c]
mov dword [ebp + 0x44], eax
mov eax, dword [0x4fe0d8]
mov dword [ebp + 8], eax
mov eax, dword fs:[0x24]
mov dword [ebp + 0x20], eax
test ebx, ebx
jne 0x418bd1
push 7
push str.Blind
push edi
call fcn.004c4e4b
add esp, 0xc
test eax, eax
jne 0x418bd1
add edi, 7
mov byte [0x4fe34c], 1
mov dword [ebp + 0x60], edi
jmp 0x418bdc
mov byte [0x4fe34c], 0
test ebx, ebx
jne 0x418bfd
push 6
push 0x4e9138
push edi
call fcn.004c4e4b
add esp, 0xc
test eax, eax
jne 0x418bfd
add edi, 6
mov dword [ebp + 0x4c], 2
mov dword [ebp + 0x60], edi
mov ecx, dword [ebp + 0x44]
mov ebx, dword [ebp + 0x78]
mov eax, dword [ecx + 0x5c]
mov dword [ebp + 4], eax
mov eax, dword [ecx + 0x64]
mov dword [ebp + 0x10], eax
cmp ebx, 1
je 0x418c1d
cmp ebx, 3
jne 0x418cd7
mov eax, dword [0x4fe2ac]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x418c2f
push eax
call edi
push str.AHK_Keybd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x4fe2ac], 0
mov ebx, eax
je 0x418c59
mov dword [0x4fe2ac], esi
jmp 0x418c60
test esi, esi
je 0x418c60
push esi
call edi
cmp ebx, 0xb7
je 0x418ca1
cmp dword [ebp + 0x4c], 0
jne 0x418c94
call fcn.00412d50
mov edi, dword [ebp + 0x60]
test al, al
je 0x418c97
mov edx, str.Click
mov ecx, edi
call fcn.004abe60
test eax, eax
jne 0x418ca4
mov ebx, 1
mov dword [ebp + 0x78], ebx
jmp 0x418cd7
mov edi, dword [ebp + 0x60]
mov ebx, 1
mov dword [ebp + 0x78], ebx
jmp 0x418cd7
mov edi, dword [ebp + 0x60]
cmp dword [ebp + 0x78], 3
jne 0x418cb4
mov ebx, 2
mov dword [ebp + 0x78], ebx
jmp 0x418cd7
mov ecx, dword [ebp + 0x44]
xor ebx, ebx
mov dword [ebp + 0x78], ebx
cmp dword [ecx + 0x5c], ebx
jge 0x418ccb
cmp dword [ecx + 0x64], ebx
jge 0x418ccb
or eax, 0xffffffff
jmp 0x418ccd
xor eax, eax
mov dword [ecx + 0x64], eax
mov dword [ecx + 0x5c], 0xffffffff
mov eax, dword [ebp + 0x7c]
xor esi, esi
mov byte [ebp + 0x5f], 0
test eax, eax
je 0x418d33
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call ebx
mov ebx, eax
mov dword [ebp + 0x14], ebx
test ebx, ebx
je 0x418df7
cmp ebx, dword [0x4fda50]
je 0x418df7
mov ecx, dword [ebp + 0x7c]
call fcn.004b2300
test al, al
jne 0x418df7
push 1
push ebx
push dword [0x4fda50]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
mov esi, ebx
setne byte [ebp + 0x5f]
jmp 0x418df7
test byte [0x4fe09d], 0xc0
je 0x418db5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4fe094]
cmp eax, 0x32
jae 0x418db5
cmp ebx, 2
je 0x418db5
cmp byte [0x4fe34c], 0
jne 0x418db5
mov eax, dword [ebp + 0x4c]
cmp eax, 2
je 0x418db5
cmp byte [0x4fe263], 0
je 0x418db5
mov ecx, dword [ebp + 0x20]
cmp ecx, dword [0x4fda50]
jne 0x418db5
test eax, eax
je 0x418e45
mov esi, edi
test edi, edi
je 0x418dab
mov dl, byte [edi]
test dl, dl
je 0x418dab
nop dword [eax + eax]
mov ecx, 0x4e93c0
mov al, 0x4c
cmp dl, al
je 0x418dad
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x418d97
mov dl, byte [esi + 1]
inc esi
test dl, dl
jne 0x418d90
xor esi, esi
test esi, esi
jne 0x418eb2
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test eax, eax
je 0x418df1
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x54], 0x30
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x418df1
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x418df1
push 0
push eax
call ebx
mov esi, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
xor edx, edx
mov dword [0x4fe328], eax
mov ecx, eax
call fcn.0041d560
mov cl, 1
mov dword [0x4fe32c], eax
call fcn.0041d080
mov bl, al
and byte [0x4fe2d7], bl
cmp dword [0x4fb988], 0
je 0x418efb
mov al, byte [0x4fc2d6]
mov cl, byte [0x4fc2d4]
mov bh, al
not al
and bh, cl
and al, cl
jmp 0x418f1f
mov edx, edi
test edx, edx
je 0x418db5
mov bl, byte [edx]
test bl, bl
je 0x418db5
nop dword [eax]
mov ecx, 0x4e93c0
mov al, 0x4c
cmp bl, al
je 0x418e80
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x418e67
mov bl, byte [edx + 1]
inc edx
test bl, bl
jne 0x418e60
jmp 0x418db5
add edx, 1
je 0x418eb2
mov bl, byte [edx]
test bl, bl
je 0x418eb2
nop dword [eax + eax]
mov ecx, 0x4e93c4
mov al, 0x7b
cmp bl, al
je 0x418ead
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x418e97
mov bl, byte [edx + 1]
inc edx
test bl, bl
jne 0x418e90
jmp 0x418eb2
cmp byte [edx], 0x7b
jne 0x418e47
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, 0x8000
nop dword [eax]
push 0x5b
call esi
test bx, ax
jne 0x418ed6
push 0x5c
call esi
test bx, ax
je 0x418db5
mov edx, 1
mov dword [0x4f8984], 0
mov ecx, 0x8000012f
call fcn.004018a0
mov dword [0x4f8984], 1
jmp 0x418ec0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4fe094]
cmp eax, dword [0x4f9b8c]
jae 0x418f19
mov cl, byte [0x4fe09d]
and cl, bl
jmp 0x418f1b
xor cl, cl
mov bh, cl
xor al, al
not bh
mov byte [ebp + 0x6d], cl
and bh, byte [0x4fe2d6]
and bh, bl
mov byte [ebp + 0x66], al
cmp byte [0x4fe34c], 0
mov byte [ebp + 0x6f], bh
mov byte [0x4fe2d6], bh
je 0x418f4e
not bh
and bh, bl
mov al, bh
mov bh, bl
mov byte [ebp + 0x6f], bh
jmp 0x418f50
xor al, al
mov byte [ebp + 0x6c], al
mov eax, dword [ebp + 0x44]
mov byte [ebp + 0x54], bh
cmp byte [eax + 0xd3], 0
je 0x418f82
cmp byte [0x4fe34c], 0
jne 0x418f82
cmp dword [ebp + 0x4c], 2
je 0x418f82
mov edx, 2
mov cl, 0x14
call fcn.0041c840
mov dword [ebp + 0x18], eax
jmp 0x418f89
mov dword [ebp + 0x18], 0
mov edx, dword [ebp + 0x78]
mov eax, 0x1f4
mov dword [0x4fe348], edx
mov ecx, 0x5dc
test edx, edx
je 0x419002
cmp edx, 1
cmovne eax, ecx
mov ecx, 0x2ee0
mov dword [0x4fe334], eax
mov eax, 0x36b0
cmovne eax, ecx
call fcn.004db840
mov eax, dword [0x4fa380]
mov ecx, esp
mov edx, dword [ebp + 0x78]
mov byte [0x4fe33c], bl
mov byte [0x4fe33d], 0
mov dword [eax], ecx
mov dword [0x4fe340], 0x80000000
mov dword [0x4fe344], 0x80000000
mov dword [0x4fe330], 0
mov byte [0x4fe33e], 0
mov byte [0x4fe33f], 1
mov al, byte [0x4fba00]
mov byte [ebp + 0x4b], al
mov eax, dword [0x4f899c]
cmp eax, 8
je 0x419019
cmp eax, 0xa
jne 0x419039
mov esi, dword [ebp + 0x7c]
test edx, edx
jne 0x41903c
test esi, esi
jne 0x41903c
push 1
mov byte [ebp + 0x5e], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4fba00], 1
jmp 0x419040
mov esi, dword [ebp + 0x7c]
mov byte [ebp + 0x5e], 0
xor bl, bl
mov byte [ebp + 0x68], bl
cmp byte [edi], bl
je 0x419bf9
jmp 0x419053
mov esi, dword [ebp + 0x7c]
cmp dword [0x4fe348], 0
mov byte [ebp + 0x67], 0
jne 0x4190bc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4f898c]
sub eax, dword [0x4fe0dc]
cmp eax, dword [ecx + 0xb8]
jbe 0x4190bc
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4190b1
mov edx, 1
mov dword [0x4f8984], 0
or ecx, 0xffffffff
call fcn.004018a0
mov dword [0x4f8984], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4fe0dc], eax
mov eax, dword [ebp + 0x4c]
test eax, eax
jne 0x419b23
movsx eax, byte [edi]
push eax
push 0x4e93c8
call fcn.004ca733
add esp, 8
test eax, eax
je 0x419b5f
movsx eax, byte [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x4190f6.34
movzx eax, byte [eax + 0x419f24]
jmp dword [eax*4 + 0x419f08]
test bh, 3
jne case.0x4190f6.34
or bl, 1
jmp 0x419be4
test bh, 0x30
jne case.0x4190f6.34
or bl, 0x10
jmp 0x419be4
test bh, 0xc
jne case.0x4190f6.34
or bl, 4
jmp 0x419be4
test bh, 0xc0
jne case.0x4190f6.34
or bl, 0x40
jmp 0x419be4
lea esi, [edi + 1]
push 0x7d
push esi
call fcn.004ca733
add esp, 8
mov dword [ebp + 0x50], eax
test eax, eax
je case.0x4190f6.34
mov edi, esi
nop dword [eax]
mov cl, byte [edi]
cmp cl, 0x20
je 0x41916c
cmp cl, 9
jne 0x41916f
inc edi
jmp 0x419160
mov esi, eax
mov dword [ebp + 0x60], edi
sub esi, edi
mov dword [ebp + 0x34], esi
jne 0x4191f7
lea esi, [eax + 1]
mov al, byte [esi]
cmp al, 0x7d
jne 0x41918e
mov dword [ebp + 0x50], esi
mov esi, 1
jmp 0x4191f4
cmp al, 0x20
je 0x4191a8
cmp al, 9
jne 0x419b1b
nop word [eax + eax]
cmp al, 0x20
je 0x4191a8
cmp al, 9
jne 0x4191ae
mov al, byte [esi + 1]
inc esi
jmp 0x4191a0
push 4
push str.Down
push esi
call fcn.004c4e4b
add esp, 0xc
test eax, eax
je 0x4191da
push 2
push 0x4e88c8
push esi
call fcn.004c4e4b
add esp, 0xc
test eax, eax
jne 0x419b1b
push 0x7d
push esi
call fcn.004ca733
add esp, 8
mov dword [ebp + 0x50], eax
test eax, eax
je case.0x4190f6.34
mov esi, eax
sub esi, edi
mov dword [ebp + 0x34], esi
push 5
push 0x4e7a0c
push edi
call fcn.004c4e4b
add esp, 0xc
test eax, eax
jne 0x4192a5
mov eax, dword [ebp + 0x50]
lea ecx, [edi + 5]
mov byte [eax], 0
mov al, byte [ecx]
cmp al, 0x20
je 0x419222
cmp al, 9
jne 0x419225
inc ecx
jmp 0x419218
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x6e]
push eax
lea eax, [ebp + 0x2c]
push eax
lea edx, [ebp + 0x28]
call fcn.0041ac70
mov eax, dword [ebp + 0x50]
add esp, 0x14
push dword [ebp + 0x1c]
mov byte [eax], 0x7d
mov eax, dword [ebp + 0x3c]
cmp eax, 1
jge 0x41927a
mov eax, dword [ebp + 0x44]
lea edx, [ebp + 0x2c]
lea ecx, [ebp + 0x28]
movzx eax, byte [eax + 0xcf]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0041bbc0
mov edi, dword [ebp + 0x50]
add esp, 0xc
jmp 0x419be2
push dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x7c]
xor edx, edx
push dword [ebp + 0x28]
push ecx
mov cl, byte [ebp + 0x6e]
push 0
push dword [ebp + 0x58]
push eax
push dword [ebp + 0x54]
push dword [ebp + 0x68]
call fcn.00419fa0
mov edi, dword [ebp + 0x50]
add esp, 0x24
jmp 0x419be2
push 3
push 0x4e93d0
push edi
call fcn.004c4e4b
add esp, 0xc
test eax, eax
jne 0x4192c8
mov edi, dword [ebp + 0x50]
mov dword [ebp + 0x4c], 1
jmp 0x419be2
push 4
push str.Text
push edi
call fcn.004c4e4b
add esp, 0xc
test eax, eax
jne 0x419305
lea ecx, [edi + 4]
nop
mov al, byte [ecx]
cmp al, 0x20
je 0x4192ea
cmp al, 9
jne 0x4192ed
inc ecx
jmp 0x4192e0
cmp ecx, dword [ebp + 0x50]
jne 0x419b1b
mov edi, dword [ebp + 0x50]
mov dword [ebp + 0x4c], 2
jmp 0x419be2
mov ebx, dword [ebp + 0x60]
mov edi, 1
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x38], esi
mov esi, ebx
mov dword [ebp + 0x58], 2
mov dword [ebp + 0x3c], edi
mov byte [eax], 0
mov dl, byte [ebx]
mov dword [ebp + 0x24], ebx
test dl, dl
je 0x419352
nop dword [eax + eax]
mov ecx, 0x4e902c
mov al, 0x20
cmp dl, al
je 0x4193d6
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x419337
mov dl, byte [esi + 1]
inc esi
mov dword [ebp + 0x24], esi
test dl, dl
jne 0x419330
push dword [0x4fe328]
lea eax, [ebp + 0x68]
mov ecx, ebx
push eax
lea eax, [ebp + 0x30]
push eax
lea edx, [ebp + 0x6e]
call fcn.0041dac0
add esp, 0xc
mov ebx, dword [ebp + 0x50]
mov byte [ebx], 0x7d
cmp edi, 1
jl 0x419b18
mov bh, byte [ebp + 0x6e]
mov esi, dword [ebp + 0x30]
test bh, bh
jne 0x419a5b
test si, si
jne 0x419a5b
mov ebx, dword [ebp + 0x60]
movzx eax, byte [ebx]
push eax
call fcn.004c4380
add esp, 4
test eax, eax
mov eax, dword [ebp + 0x38]
je 0x419759
cmp eax, 1
jbe 0x41975c
cmp dword [0x4fe348], 0
je 0x4195cd
mov ecx, ebx
mov al, byte [ecx]
cmp al, 0x20
je 0x4193d3
cmp al, 9
jne 0x4194f1
inc ecx
jmp 0x4193c5
mov bl, byte [esi]
mov eax, esi
sub eax, dword [ebp + 0x60]
mov byte [esi], 0
mov dword [ebp + 0x38], eax
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x4193e3
cmp al, 9
je 0x4193e3
mov eax, dword [ebp + 0x50]
sub eax, esi
je 0x4194c3
push 4
push str.Down
push esi
call fcn.004c4e4b
add esp, 0xc
test eax, eax
jne 0x41944d
push 4
add esi, 4
mov dword [ebp + 0x58], eax
push str.Temp
push esi
call fcn.004c4e4b
add esp, 0xc
test eax, eax
jne 0x419430
mov dword [ebp + 0x40], eax
jmp 0x4194c3
xor eax, eax
cmp byte [esi], 0x52
sete al
push eax
call fcn.004cb840
add esp, 4
neg eax
sbb esi, esi
neg esi
inc esi
mov dword [ebp + 0x40], esi
jmp 0x4194c3
push 0x4e88c8
push esi
call fcn.004c408e
add esp, 8
test eax, eax
jne 0x419464
mov dword [ebp + 0x58], edi
jmp 0x4194c3
mov ecx, esi
mov al, byte [ecx]
cmp al, 0x20
je 0x419470
cmp al, 9
jne 0x419473
inc ecx
jmp 0x419466
test al, al
je 0x4194b5
cmp al, 0x2d
je 0x41947f
cmp al, 0x2b
jne 0x419486
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x4194b5
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x419495
cmp al, 0x58
jne 0x4194b5
movsx eax, byte [ecx + 2]
push eax
call fcn.004c4410
add esp, 4
test eax, eax
je 0x4194b5
push 0x10
push 0
push esi
call fcn.004c4d25
add esp, 0xc
jmp 0x4194be
push esi
call fcn.004c4df6
add esp, 4
mov edi, eax
mov dword [ebp + 0x3c], edi
push dword [0x4fe328]
mov ecx, dword [ebp + 0x60]
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x30]
push eax
lea edx, [ebp + 0x6e]
call fcn.0041dac0
mov eax, dword [ebp + 0x24]
add esp, 0xc
test eax, eax
je 0x41936d
mov byte [eax], bl
jmp 0x41936d
test al, al
je 0x419533
cmp al, 0x2d
je 0x4194fd
cmp al, 0x2b
jne 0x419504
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x419533
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x419513
cmp al, 0x58
jne 0x419533
movsx eax, byte [ecx + 2]
push eax
call fcn.004c4410
add esp, 4
test eax, eax
je 0x419533
push 0x10
push 0
push ebx
call fcn.004c4d25
add esp, 0xc
jmp 0x41953c
push ebx
call fcn.004c4df6
add esp, 4
mov esi, eax
mov eax, dword [0x4fe330]
cmp eax, dword [0x4fe334]
jne 0x419558
call fcn.0041c280
test eax, eax
je 0x419b18
cmp dword [0x4fe348], 1
jne 0x4195a5
mov eax, dword [0x4fe330]
xor edx, edx
or byte [0x4fe33d], 1
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [0x4fc460]
inc dword [0x4fe330]
mov dword [eax + ecx*4], 1
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0x10], esi
mov dword [eax + ecx*4 + 0xc], edx
jmp 0x419be2
mov eax, dword [0x4fa380]
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
mov ecx, dword [eax]
mov eax, dword [0x4fe330]
inc dword [0x4fe330]
mov dword [ecx + eax*8], 0
mov dword [ecx + eax*8 + 4], esi
jmp 0x419be2
mov eax, dword [ebp + 0x20]
mov dword [0x4f8984], 0
cmp dword [0x4fda50], eax
je 0x4196de
mov ecx, ebx
mov al, byte [ecx]
cmp al, 0x20
je 0x4195f2
cmp al, 9
jne 0x4195f5
inc ecx
jmp 0x4195e8
test al, al
je 0x419637
cmp al, 0x2d
je 0x419601
cmp al, 0x2b
jne 0x419608
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x419637
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x419617
cmp al, 0x58
jne 0x419637
movsx eax, byte [ecx + 2]
push eax
call fcn.004c4410
add esp, 4
test eax, eax
je 0x419637
push 0x10
push 0
push ebx
call fcn.004c4d25
add esp, 0xc
jmp 0x419640
push ebx
call fcn.004c4df6
add esp, 4
test eax, eax
js 0x4196de
mov ecx, ebx
nop word [eax + eax]
mov al, byte [ecx]
cmp al, 0x20
je 0x41965a
cmp al, 9
jne 0x41965d
inc ecx
jmp 0x419650
test al, al
je 0x4196b9
cmp al, 0x2d
je 0x419669
cmp al, 0x2b
jne 0x419670
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x4196b9
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x41967f
cmp al, 0x58
jne 0x4196b9
movsx eax, byte [ecx + 2]
push eax
call fcn.004c4410
add esp, 4
test eax, eax
je 0x4196b9
push 0x10
push 0
push ebx
call fcn.004c4d25
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
mov dword [0x4f8984], 1
jmp 0x419be2
push ebx
call fcn.004c4df6
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
mov dword [0x4f8984], 1
jmp 0x419be2
mov ecx, ebx
mov al, byte [ecx]
cmp al, 0x20
je 0x4196ea
cmp al, 9
jne 0x4196ed
inc ecx
jmp 0x4196e0
test al, al
je 0x41972f
cmp al, 0x2d
je 0x4196f9
cmp al, 0x2b
jne 0x419700
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x41972f
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x41970f
cmp al, 0x58
jne 0x41972f
movsx eax, byte [ecx + 2]
push eax
call fcn.004c4410
add esp, 4
test eax, eax
je 0x41972f
push 0x10
push 0
push ebx
call fcn.004c4d25
add esp, 0xc
jmp 0x419738
push ebx
call fcn.004c4df6
add esp, 4
mov edx, 1
mov ecx, eax
call fcn.004018a0
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
mov dword [0x4f8984], 1
jmp 0x419be2
cmp eax, 1
jne 0x4197c2
cmp dword [ebp + 0x58], 1
je 0x419b18
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
je 0x4197a1
test edi, edi
jle 0x419b18
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
nop dword [eax]
movsx eax, byte [ebx]
push 0
push eax
push 0x102
push ecx
call esi
mov ecx, dword [ebp + 0x7c]
sub edi, 1
jne 0x419780
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
jmp 0x419be2
mov al, byte [ebp + 0x68]
mov edx, edi
or al, byte [ebp + 0x6f]
mov cl, byte [ebx]
movzx eax, al
push eax
call fcn.0041a150
mov bh, byte [ebp + 0x6f]
add esp, 4
mov edi, dword [ebp + 0x50]
jmp 0x419be2
cmp dword [ebp + 0x7c], 0
mov ecx, ebx
mov esi, dword [ebp + 0x34]
mov edx, esi
sete al
movzx eax, al
push eax
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.0041db90
mov bl, al
add esp, 0xc
mov byte [ebp + 0x6e], bl
test bl, bl
je 0x4198de
cmp dword [ebp + 0x7c], 0
mov esi, dword [ebp + 0x58]
jne 0x41980a
test esi, esi
jne 0x419803
mov byte [ebp + 0x67], bl
jmp 0x41980a
mov cl, bl
call fcn.004188a0
cmp dword [0x4fe348], 0
je 0x41981a
mov al, byte [0x4fe33c]
jmp 0x419821
xor cl, cl
call fcn.0041d080
mov ecx, dword [ebp + 0x7c]
mov dl, al
mov bh, byte [ebp + 0x54]
push 0xffc3d44d
push 0
push 0
push ecx
mov cl, bh
mov byte [ebp + 0x6f], bh
call fcn.0041c950
add esp, 0x10
test edi, edi
jle 0x419b1b
nop dword [eax + eax]
push 0xffc3d44d
push 1
push dword [ebp + 0x7c]
mov dl, bl
mov ecx, esi
push 0
call fcn.0041a5e0
add esp, 0x10
cmp dword [0x4fe348], 0
jne 0x4198cd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4f898c]
sub eax, dword [0x4fe0dc]
cmp eax, dword [ecx + 0xb8]
jbe 0x4198cd
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4198c2
mov edx, 1
mov dword [0x4f8984], 0
or ecx, 0xffffffff
call fcn.004018a0
mov dword [0x4f8984], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4fe0dc], eax
sub edi, 1
jne 0x419850
mov edi, dword [ebp + 0x50]
jmp 0x419be2
cmp esi, 4
jbe 0x419950
mov ebx, dword [ebp + 0x60]
push 4
push str.ASC
push ebx
call fcn.004c4e4b
mov edi, dword [ebp + 0x7c]
add esp, 0xc
test eax, eax
jne 0x41995b
test edi, edi
jne 0x41995b
lea ecx, [ebx + 3]
mov al, byte [ecx]
cmp al, 0x20
je 0x41990e
cmp al, 9
jne 0x419911
inc ecx
jmp 0x419904
call fcn.0041a280
cmp dword [0x4fe348], 2
mov eax, dword [0x4f898c]
jne 0x41993a
mov ecx, dword [eax + 0x60]
call fcn.0041c540
mov bh, byte [ebp + 0x54]
mov edi, dword [ebp + 0x50]
mov byte [ebp + 0x6f], bh
jmp 0x419be2
mov ecx, dword [eax + 0x5c]
call fcn.0041c540
mov bh, byte [ebp + 0x54]
mov edi, dword [ebp + 0x50]
mov byte [ebp + 0x6f], bh
jmp 0x419be2
cmp esi, 2
jbe 0x419942
mov ebx, dword [ebp + 0x60]
mov edi, dword [ebp + 0x7c]
push 2
push 0x4e93e4
push ebx
call fcn.004c4e4b
add esp, 0xc
test eax, eax
jne 0x419942
push 0x10
push eax
lea eax, [ebx + 2]
push eax
call fcn.004c4d25
mov edx, eax
add esp, 0xc
cmp edx, 0x10000
jb 0x4199b3
sub edx, 0x10000
mov ecx, edx
mov eax, edx
shr ecx, 0xa
and eax, 0x3ff
and ecx, 0x3ff
sub ecx, 0x2800
sub eax, 0x2400
movzx ecx, cx
movzx esi, ax
jmp 0x4199b8
movzx ecx, dx
xor esi, esi
mov bh, byte [ebp + 0x54]
mov byte [ebp + 0x6f], bh
test edi, edi
je 0x4199ed
push 0
movzx eax, cx
push eax
push 0x102
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
call edi
test si, si
je 0x419a2d
push 0
movzx eax, si
push eax
push 0x102
push dword [ebp + 0x7c]
call edi
jmp 0x419a2d
cmp dword [0x4fe348], 2
je 0x419a12
mov bl, byte [ebp + 0x68]
or bl, bh
mov dl, bl
call fcn.00418920
test si, si
je 0x419a2d
mov dl, bl
mov ecx, esi
call fcn.00418920
jmp 0x419a2d
push 0xa
lea eax, [ebp - 3]
mov byte [ebp - 4], 0x30
push eax
push edx
call fcn.004c3fb8
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.0041a280
cmp dword [0x4fe348], 2
mov eax, dword [0x4f898c]
jne 0x419a4b
mov ecx, dword [eax + 0x60]
call fcn.0041c540
mov edi, dword [ebp + 0x50]
jmp 0x419be2
mov ecx, dword [eax + 0x5c]
call fcn.0041c540
mov edi, dword [ebp + 0x50]
jmp 0x419be2
push 0
mov edx, esi
mov cl, bh
call fcn.0041d290
mov bl, al
add esp, 4
mov eax, dword [ebp + 0x58]
mov byte [ebp + 0xc], bl
test bl, bl
je 0x419af1
cmp dword [ebp + 0x7c], 0
jne 0x419af1
test eax, eax
jne 0x419aa9
mov ecx, dword [ebp + 0x40]
mov byte [ebp + 0x67], bh
cmp ecx, 1
jne 0x419a97
mov cl, byte [ebp + 0x6f]
or byte [0x4fe2d6], bl
or cl, bl
jmp 0x419aeb
cmp ecx, 2
jne 0x419aa2
or byte [0x4fe2d7], bl
mov cl, byte [ebp + 0x6f]
or cl, bl
jmp 0x419aeb
cmp eax, 1
jne 0x419af1
mov cl, bh
call fcn.004188a0
mov al, byte [ebp + 0x6c]
not bl
and byte [0x4fe2d7], bl
mov cl, bl
and cl, byte [0x4fe2d6]
and al, bl
mov byte [0x4fe2d6], cl
mov byte [ebp + 0x6c], al
cmp bh, 0xa5
jne 0x419ae6
cmp dword [0x4fe32c], 3
jne 0x419ae6
and al, 0xfe
mov byte [ebp + 0x6c], al
or cl, al
mov eax, dword [ebp + 0x58]
mov byte [ebp + 0x54], cl
mov byte [ebp + 0x6f], cl
mov ecx, dword [ebp + 0x7c]
mov edx, esi
push 0
push connect
push connect
push ecx
push dword [ebp + 0xc]
mov cl, bh
push eax
push edi
push dword [ebp + 0x54]
push dword [ebp + 0x68]
call fcn.00419fa0
add esp, 0x24
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
jmp 0x419be2
cmp eax, 2
jne 0x419b62
movsx eax, byte [edi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x419b33.11
jmp dword [eax*4 + 0x419f84]
cmp byte [edi + 1], 0xa
lea eax, [edi + 1]
cmove edi, eax
mov al, 0xd
mov byte [ebp + 0x6e], al
jmp 0x419b8b
mov al, 8
mov byte [ebp + 0x6e], al
jmp 0x419b8b
mov al, 9
mov byte [ebp + 0x6e], al
jmp 0x419b8b
mov byte [ebp + 0x6e], 0
jmp 0x419bb5
mov eax, dword [ebp + 0x4c]
or bl, bh
je 0x419b6e
test eax, eax
jne 0x419b6e
mov al, 1
jmp 0x419b70
xor al, al
mov cl, byte [edi]
lea edx, [ebp + 0x68]
push eax
push dword [0x4fe328]
call fcn.0041d9e0
add esp, 8
mov byte [ebp + 0x6e], al
test al, al
je 0x419bb2
push 0
push connect
push connect
push esi
push 0
push 2
push 1
push dword [ebp + 0x54]
xor edx, edx
mov cl, al
push dword [ebp + 0x68]
call fcn.00419fa0
add esp, 0x24
jmp 0x419be2
mov bl, byte [ebp + 0x68]
mov cl, byte [edi]
test esi, esi
je 0x419bcf
push 0
movsx eax, cl
push eax
push 0x102
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x419be2
or bl, bh
mov edx, 1
movzx eax, bl
push eax
call fcn.0041a150
add esp, 4
xor bl, bl
mov byte [ebp + 0x68], bl
mov al, byte [ebp + 0x67]
inc edi
mov byte [0x4fe2d5], al
cmp byte [edi], 0
jne 0x419050
cmp dword [0x4fe348], 0
je 0x419ca3
or esi, 0xffffffff
cmp byte [0x4fe33e], 0
mov dword [ebp + 0x40], esi
jne 0x419c63
cmp dword [0x4fe330], 0
jbe 0x419c63
cmp byte [0x4fe34c], 0
je 0x419c2b
xor bl, bl
jmp 0x419c33
mov bl, byte [ebp + 0x66]
not bl
and bl, byte [ebp + 0x6d]
or bl, byte [0x4fe2d7]
mov dl, byte [0x4fe33c]
or bl, bh
push 0xffc3d44d
push 1
push 1
push 0
mov cl, bl
call fcn.0041c950
add esp, 0x10
lea ecx, [ebp + 0x40]
mov dl, bl
call fcn.0041c330
mov esi, dword [ebp + 0x40]
cmp dword [0x4fe348], 1
mov eax, 0x5dc
mov ecx, 0x1f4
cmove eax, ecx
cmp dword [0x4fe334], eax
jbe 0x419c8d
push dword [0x4fc460]
call fcn.004c4247
add esp, 4
mov ecx, esi
mov dword [0x4fe348], 0
call fcn.0041c540
jmp 0x419d2f
cmp dword [0x4fb988], 0
je 0x419cb7
mov cl, byte [0x4fc2d4]
mov dl, byte [ebp + 0x6d]
jmp 0x419ce0
cmp dword [0x4f9b8c], 0
jl 0x419cdb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4fe094]
cmp eax, dword [0x4f9b8c]
jb 0x419cdb
mov dl, byte [ebp + 0x6d]
xor cl, cl
jmp 0x419ce0
mov dl, byte [ebp + 0x6d]
mov cl, dl
or cl, byte [0x4fe2d7]
cmp byte [0x4fe34c], 0
je 0x419d01
mov al, cl
xor al, dl
mov bl, al
and al, cl
and bl, dl
not bl
and bl, bh
or bl, al
jmp 0x419d0a
mov bl, byte [ebp + 0x66]
not bl
and bl, cl
or bl, bh
push 0xffc3d44d
push 1
push 1
push dword [ebp + 0x7c]
xor cl, cl
call fcn.0041d080
or al, byte [0x4fc2c7]
mov cl, bl
mov dl, al
call fcn.0041c950
add esp, 0x10
cmp dword [0x4fb988], 0
je 0x419d52
mov cl, byte [0x4fc2d5]
mov al, cl
xor al, byte [0x4fc2d6]
and al, cl
not al
and cl, al
mov byte [0x4fc2d5], cl
cmp dword [ebp + 0x18], 1
jne 0x419deb
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x419deb
push 0x14
call esi
bt ax, 0xf
jae 0x419d93
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 1
call fcn.0041a5e0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 2
call fcn.0041a5e0
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
add esp, 0x10
push 0
call esi
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call ebx
cmp eax, dword [0x4fda50]
jne 0x419df7
mov edx, 1
mov dword [0x4f8984], 0
or ecx, 0xffffffff
call fcn.004018a0
mov dword [0x4f8984], 1
jmp 0x419df7
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp byte [ebp + 0x5f], 0
je 0x419e0e
push 0
push dword [ebp + 0x14]
push dword [0x4fda50]
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp + 0x5e], 0
je 0x419e29
cmp byte [ebp + 0x4b], 0
jne 0x419e29
push 0
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4fba00], 0
mov eax, dword [ebp + 0x78]
test eax, eax
jne 0x419eb7
mov eax, dword [ebp + 8]
cmp dword [0x4fe0d8], eax
je 0x419eec
cmp dword [0x4f8984], 0
je 0x419eec
cmp dword [0x4fb938], 0
jne 0x419eec
mov ecx, dword [0x4f898c]
cmp byte [ecx + 0xcc], 0
jne 0x419ea8
cmp byte [ecx + 0xce], 0
jne 0x419e9f
cmp dword [ecx + 0xc0], 0xffffffff
jle 0x419e9f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4f898c]
sub eax, dword [ecx + 0xbc]
cmp eax, dword [ecx + 0xc0]
jb 0x419e9f
mov byte [ecx + 0xcc], 1
cmp byte [ecx + 0xcc], 0
je 0x419eec
mov edx, 1
or ecx, 0xffffffff
call fcn.004018a0
jmp 0x419eec
cmp eax, 1
jne 0x419eec
push 0
call esi
push eax
call ebx
cmp eax, dword [0x4fda50]
jne 0x419eec
mov edx, 1
mov dword [0x4f8984], 0
or ecx, 0xffffffff
call fcn.004018a0
mov dword [0x4f8984], 1
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 4]
mov dword [eax + 0x5c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x64], ecx
lea esp, [ebp - 0x60]
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x70]
pop ebp
ret