Function at 0x419840
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, 0xc8
push ebx
mov ebx, ecx
push esi
mov esi, edx
mov dword [ebp + 0x68], ebx
push edi
cmp word [ebx], 0
mov dword [ebp + 0x50], esi
je 0x41aae4
mov eax, dword [0x51b98c]
mov dword [ebp + 0x48], eax
mov eax, dword [0x521780]
mov dword [ebp + 0xc], eax
mov eax, dword fs:[0x24]
mov dword [ebp + 0x24], eax
test esi, esi
jne 0x4198a2
push 7
push str.Blind
push ebx
call fcn.004cff45
add esp, 0xc
test eax, eax
jne 0x4198a2
add ebx, 0xe
mov byte [0x521a1c], 1
mov dword [ebp + 0x68], ebx
jmp 0x4198ad
mov byte [0x521a1c], 0
test esi, esi
jne 0x4198ce
push 6
push str.Text
push ebx
call fcn.004cff45
add esp, 0xc
test eax, eax
jne 0x4198ce
add ebx, 0xc
mov dword [ebp + 0x50], 2
mov dword [ebp + 0x68], ebx
mov ecx, dword [ebp + 0x48]
mov edi, dword [ebp + 0x78]
mov eax, dword [ecx + 0x5c]
mov dword [ebp + 8], eax
mov eax, dword [ecx + 0x64]
mov dword [ebp + 0x14], eax
cmp edi, 1
je 0x4198ee
cmp edi, 3
jne 0x4199a8
mov eax, dword [0x52197c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x419900
push eax
call edi
push str.AHK_Keybd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x52197c], 0
mov ebx, eax
je 0x41992a
mov dword [0x52197c], esi
jmp 0x419931
test esi, esi
je 0x419931
push esi
call edi
cmp ebx, 0xb7
je 0x419972
cmp dword [ebp + 0x50], 0
jne 0x419965
call fcn.00413960
mov ebx, dword [ebp + 0x68]
test al, al
je 0x419968
mov edx, str.Click
mov ecx, ebx
call fcn.004afb20
test eax, eax
jne 0x419975
mov edi, 1
mov dword [ebp + 0x78], edi
jmp 0x4199a8
mov ebx, dword [ebp + 0x68]
mov edi, 1
mov dword [ebp + 0x78], edi
jmp 0x4199a8
mov ebx, dword [ebp + 0x68]
cmp dword [ebp + 0x78], 3
jne 0x419985
mov edi, 2
mov dword [ebp + 0x78], edi
jmp 0x4199a8
mov ecx, dword [ebp + 0x48]
xor edi, edi
mov dword [ebp + 0x78], edi
cmp dword [ecx + 0x5c], edi
jge 0x41999c
cmp dword [ecx + 0x64], edi
jge 0x41999c
or eax, 0xffffffff
jmp 0x41999e
xor eax, eax
mov dword [ecx + 0x64], eax
mov dword [ecx + 0x5c], 0xffffffff
mov eax, dword [ebp + 0x7c]
xor esi, esi
mov byte [ebp + 0x61], 0
test eax, eax
je 0x419a04
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call edi
mov edi, eax
mov dword [ebp + 0x18], edi
test edi, edi
je 0x419aed
cmp edi, dword [0x5203dc]
je 0x419aed
mov ecx, dword [ebp + 0x7c]
call fcn.004b5f60
test al, al
jne 0x419aed
push 1
push edi
push dword [0x5203dc]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
mov esi, edi
setne byte [ebp + 0x61]
jmp 0x419aed
test byte [0x521746], 0xc0
je 0x419aab
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x52173c]
cmp eax, 0x32
jae 0x419aab
cmp edi, 2
je 0x419aab
cmp byte [0x521a1c], 0
jne 0x419aab
mov eax, dword [ebp + 0x50]
cmp eax, 2
je 0x419aab
cmp byte [0x52194b], 0
je 0x419aab
mov ecx, dword [ebp + 0x24]
cmp ecx, dword [0x5203dc]
jne 0x419aab
test eax, eax
je 0x419b3b
mov edi, ebx
test ebx, ebx
je 0x419aa1
movzx eax, word [ebx]
test ax, ax
je 0x419aa1
mov esi, eax
nop dword [eax]
mov ecx, 0x50743c
mov edx, 0x4c
nop word [eax + eax]
cmp si, dx
je 0x419aa3
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x419a80
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x419a70
xor edi, edi
test edi, edi
jne 0x419bed
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test eax, eax
je 0x419ae7
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call edi
mov esi, eax
mov dword [ebp - 0x58], 0x30
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x419ae7
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x419ae7
push 0
push eax
call edi
mov esi, eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x18], eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
xor edx, edx
mov dword [0x5219f8], eax
mov ecx, eax
call fcn.0041df80
mov cl, 1
mov dword [0x5219fc], eax
call fcn.0041da40
mov bl, al
and byte [0x5219a7], bl
cmp dword [0x51eaf8], 0
je 0x419c33
mov al, byte [0x51f4ce]
mov cl, byte [0x51f4cc]
mov bh, al
not al
and bh, cl
and al, cl
jmp 0x419c57
mov esi, ebx
nop dword [eax]
test esi, esi
je 0x419aab
movzx eax, word [esi]
test ax, ax
je 0x419aab
mov edi, eax
nop word [eax + eax]
mov ecx, 0x50743c
mov edx, 0x4c
nop word [eax + eax]
cmp di, dx
je 0x419b96
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x419b70
movzx eax, word [esi + 2]
add esi, 2
mov edi, eax
test ax, ax
jne 0x419b60
jmp 0x419aab
add esi, 2
je 0x419bed
movzx eax, word [esi]
test ax, ax
je 0x419bed
mov edi, eax
nop word [eax + eax]
mov eax, 0x507444
mov edx, 0x7b
nop word [eax + eax]
cmp di, dx
je 0x419be3
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x419bc0
movzx eax, word [esi + 2]
add esi, 2
mov edi, eax
test ax, ax
jne 0x419bb0
jmp 0x419bed
cmp word [esi], 0x7b
jne 0x419b40
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, 0x8000
push 0x5b
call esi
test bx, ax
jne 0x419c0e
push 0x5c
call esi
test bx, ax
je 0x419aab
mov edx, 1
mov dword [0x51b984], 0
mov ecx, 0x8000012f
call fcn.00401860
mov dword [0x51b984], 1
jmp 0x419bf8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x52173c]
cmp eax, dword [0x51cbf8]
jae 0x419c51
mov cl, byte [0x521746]
and cl, bl
jmp 0x419c53
xor cl, cl
mov bh, cl
xor al, al
not bh
mov byte [ebp + 0x6d], cl
and bh, byte [0x5219a6]
and bh, bl
mov byte [ebp + 0x62], al
cmp byte [0x521a1c], 0
mov byte [ebp + 0x6f], bh
mov byte [0x5219a6], bh
je 0x419c86
not bh
and bh, bl
mov al, bh
mov bh, bl
mov byte [ebp + 0x6f], bh
jmp 0x419c88
xor al, al
mov byte [ebp + 0x6c], al
mov eax, dword [ebp + 0x48]
mov byte [ebp + 0x58], bh
cmp byte [eax + 0xf3], 0
je 0x419cba
cmp byte [0x521a1c], 0
jne 0x419cba
cmp dword [ebp + 0x50], 2
je 0x419cba
mov edx, 2
mov cl, 0x14
call fcn.0041d200
mov dword [ebp + 0x1c], eax
jmp 0x419cc1
mov dword [ebp + 0x1c], 0
mov edx, dword [ebp + 0x78]
mov eax, 0x1f4
mov dword [0x521a18], edx
mov ecx, 0x5dc
test edx, edx
je 0x419d3a
cmp edx, 1
cmovne eax, ecx
mov ecx, 0x2ee0
mov dword [0x521a04], eax
mov eax, 0x36b0
cmovne eax, ecx
call fcn.004e87c0
mov eax, dword [0x51d3f0]
mov ecx, esp
mov edx, dword [ebp + 0x78]
mov byte [0x521a0c], bl
mov byte [0x521a0d], 0
mov dword [eax], ecx
mov dword [0x521a10], 0x80000000
mov dword [0x521a14], 0x80000000
mov dword [0x521a00], 0
mov byte [0x521a0e], 0
mov byte [0x521a0f], 1
mov al, byte [0x51eb5e]
mov byte [ebp + 0x4f], al
mov eax, dword [0x51b99c]
cmp eax, 8
je 0x419d51
cmp eax, 0xa
jne 0x419d71
mov esi, dword [ebp + 0x7c]
test edx, edx
jne 0x419d74
test esi, esi
jne 0x419d74
push 1
mov byte [ebp + 0x60], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x51eb5e], 1
jmp 0x419d78
mov esi, dword [ebp + 0x7c]
mov byte [ebp + 0x60], 0
mov edi, dword [ebp + 0x68]
xor bl, bl
mov byte [ebp + 0x64], bl
cmp word [edi], 0
je 0x41a7e6
jmp 0x419d93
mov esi, dword [ebp + 0x7c]
cmp dword [0x521a18], 0
mov byte [ebp + 0x63], 0
jne 0x419dfc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x51b98c]
sub eax, dword [0x521784]
cmp eax, dword [ecx + 0xd8]
jbe 0x419dfc
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x419df1
mov edx, 1
mov dword [0x51b984], 0
or ecx, 0xffffffff
call fcn.00401860
mov dword [0x51b984], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x521784], eax
mov eax, dword [ebp + 0x50]
test eax, eax
jne 0x41a70d
movzx eax, word [edi]
push eax
push 0x50744c
call fcn.004cbd94
add esp, 8
test eax, eax
je 0x41a74a
movzx eax, word [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x419e36.34
movzx eax, byte [eax + 0x41ab0c]
jmp dword [eax*4 + 0x41aaf0]
test bh, 3
jne case.0x419e36.34
or bl, 1
jmp 0x41a7ce
test bh, 0x30
jne case.0x419e36.34
or bl, 0x10
jmp 0x41a7ce
test bh, 0xc
jne case.0x419e36.34
or bl, 4
jmp 0x41a7ce
test bh, 0xc0
jne case.0x419e36.34
or bl, 0x40
jmp 0x41a7ce
lea esi, [edi + 2]
push 0x7d
push esi
call fcn.004cbd94
add esp, 8
mov dword [ebp + 0x54], eax
test eax, eax
je case.0x419e36.34
mov edi, esi
nop dword [eax]
movzx ecx, word [edi]
cmp ecx, 0x20
je 0x419ead
cmp ecx, 9
jne 0x419eb2
add edi, 2
jmp 0x419ea0
mov esi, eax
mov dword [ebp + 0x68], edi
sub esi, edi
sar esi, 1
mov dword [ebp + 0x34], esi
jne 0x419f45
lea esi, [eax + 2]
movzx eax, word [esi]
cmp eax, 0x7d
jne 0x419ed7
mov dword [ebp + 0x54], esi
lea esi, [eax - 0x7c]
jmp 0x419f42
cmp eax, 0x20
je 0x419ee5
cmp eax, 9
jne 0x41a705
cmp ax, 0x20
je 0x419ef1
cmp ax, 9
jne 0x419efa
movzx eax, word [esi + 2]
add esi, 2
jmp 0x419ee5
push 4
push str.Down
push esi
call fcn.004cff45
add esp, 0xc
test eax, eax
je 0x419f26
push 2
push 0x505f5c
push esi
call fcn.004cff45
add esp, 0xc
test eax, eax
jne 0x41a705
push 0x7d
push esi
call fcn.004cbd94
add esp, 8
mov dword [ebp + 0x54], eax
test eax, eax
je case.0x419e36.34
mov esi, eax
sub esi, edi
sar esi, 1
mov dword [ebp + 0x34], esi
push 5
push 0x504408
push edi
call fcn.004cff45
add esp, 0xc
test eax, eax
jne 0x419fff
mov eax, dword [ebp + 0x54]
xor ecx, ecx
mov word [eax], cx
lea ecx, [edi + 0xa]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x419f75
cmp eax, 9
jne 0x419f7a
add ecx, 2
jmp 0x419f68
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x6e]
push eax
lea eax, [ebp + 0x2c]
push eax
lea edx, [ebp + 0x28]
call fcn.0041b910
mov eax, dword [ebp + 0x54]
add esp, 0x14
mov ecx, 0x7d
push dword [ebp + 0x20]
mov word [eax], cx
mov eax, dword [ebp + 0x30]
cmp eax, 1
jge 0x419fd4
mov eax, dword [ebp + 0x48]
lea edx, [ebp + 0x2c]
lea ecx, [ebp + 0x28]
movzx eax, byte [eax + 0xef]
push eax
lea eax, [ebp + 4]
push eax
call fcn.0041c560
mov edi, dword [ebp + 0x54]
add esp, 0xc
jmp 0x41a7cc
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 + 0x5c]
push eax
push dword [ebp + 0x58]
push dword [ebp + 0x64]
call fcn.0041ab90
mov edi, dword [ebp + 0x54]
add esp, 0x24
jmp 0x41a7cc
push 3
push 0x50745c
push edi
call fcn.004cff45
add esp, 0xc
test eax, eax
jne 0x41a022
mov edi, dword [ebp + 0x54]
mov dword [ebp + 0x50], 1
jmp 0x41a7cc
push 4
push 0x5073ac
push edi
call fcn.004cff45
add esp, 0xc
test eax, eax
jne 0x41a06a
lea ecx, [edi + 8]
nop dword [eax]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x41a04d
cmp eax, 9
jne 0x41a052
add ecx, 2
jmp 0x41a040
cmp ecx, dword [ebp + 0x54]
jne 0x41a705
mov edi, dword [ebp + 0x54]
mov dword [ebp + 0x50], 2
jmp 0x41a7cc
mov eax, dword [ebp + 0x54]
xor ecx, ecx
mov edi, 1
mov dword [ebp + 0x5c], 2
mov dword [ebp + 0x40], edi
mov dword [ebp + 0x30], edi
mov word [eax], cx
mov ecx, dword [ebp + 0x68]
mov ebx, ecx
mov dword [ebp + 0x38], esi
movzx eax, word [ecx]
test ax, ax
je 0x41a28d
mov esi, eax
nop word [eax + eax]
mov edx, 0x506dbc
mov ecx, 0x20
nop word [eax + eax]
cmp si, cx
je 0x41a0f2
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
test ax, ax
jne 0x41a0b0
movzx eax, word [ebx + 2]
add ebx, 2
mov esi, eax
test ax, ax
jne 0x41a0a0
push dword [0x5219f8]
mov ecx, dword [ebp + 0x68]
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x3c]
push eax
lea edx, [ebp + 0x6e]
call fcn.0041e580
add esp, 0xc
jmp 0x41a1c1
movzx edi, word [ebx]
lea esi, [ebx + 2]
xor eax, eax
mov word [ebx], ax
mov eax, ebx
sub eax, dword [ebp + 0x68]
sar eax, 1
mov dword [ebp + 0x38], eax
movzx eax, word [esi]
cmp eax, 0x20
je 0x41a114
cmp eax, 9
jne 0x41a119
add esi, 2
jmp 0x41a107
mov eax, dword [ebp + 0x54]
sub eax, esi
sar eax, 1
je 0x41a19b
push 4
push str.Down
push esi
call fcn.004cff45
add esp, 0xc
test eax, eax
jne 0x41a173
push 4
add esi, 8
mov dword [ebp + 0x5c], eax
push str.Temp
push esi
call fcn.004cff45
add esp, 0xc
test eax, eax
jne 0x41a155
mov dword [ebp + 0x44], eax
jmp 0x41a19b
xor eax, eax
cmp word [esi], 0x52
sete al
push eax
call fcn.004d92fb
add esp, 4
neg eax
sbb esi, esi
neg esi
inc esi
mov dword [ebp + 0x44], esi
jmp 0x41a19b
push 0x505f5c
push esi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x41a18e
mov dword [ebp + 0x5c], 1
jmp 0x41a19b
mov ecx, esi
call fcn.00419340
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x30], eax
push dword [0x5219f8]
mov ecx, dword [ebp + 0x68]
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x3c]
push eax
lea edx, [ebp + 0x6e]
call fcn.0041e580
add esp, 0xc
test ebx, ebx
je 0x41a1be
mov word [ebx], di
mov edi, dword [ebp + 0x40]
mov ebx, dword [ebp + 0x54]
mov eax, 0x7d
mov word [ebx], ax
cmp edi, 1
jl 0x41a702
mov bh, byte [ebp + 0x6e]
mov esi, dword [ebp + 0x3c]
test bh, bh
jne 0x41a645
test si, si
jne 0x41a645
mov ebx, dword [ebp + 0x68]
movzx eax, byte [ebx]
push eax
call fcn.004ce640
add esp, 4
test eax, eax
mov eax, dword [ebp + 0x38]
je 0x41a33e
cmp eax, 1
jbe 0x41a341
cmp dword [0x521a18], 0
je 0x41a2d3
mov ecx, ebx
call fcn.00419340
mov ecx, dword [0x521a00]
mov esi, eax
cmp ecx, dword [0x521a04]
jne 0x41a240
call fcn.0041cc20
test eax, eax
je 0x41a702
cmp dword [0x521a18], 1
jne 0x41a2ab
mov eax, dword [0x521a00]
xor edx, edx
or byte [0x521a0d], 1
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [0x51f658]
inc dword [0x521a00]
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 0x41a7cc
push dword [0x5219f8]
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x3c]
push eax
lea edx, [ebp + 0x6e]
call fcn.0041e580
add esp, 0xc
jmp 0x41a1c1
mov eax, dword [0x51d3f0]
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
mov ecx, dword [eax]
mov eax, dword [0x521a00]
inc dword [0x521a00]
mov dword [ecx + eax*8], 0
mov dword [ecx + eax*8 + 4], esi
jmp 0x41a7cc
mov eax, dword [ebp + 0x24]
mov dword [0x51b984], 0
cmp dword [0x5203dc], eax
je 0x41a316
mov ecx, ebx
call fcn.00419340
test eax, eax
js 0x41a316
mov ecx, ebx
call fcn.00419340
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
mov dword [0x51b984], 1
jmp 0x41a7cc
mov ecx, ebx
call fcn.00419340
mov edx, 1
mov ecx, eax
call fcn.00401860
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
mov dword [0x51b984], 1
jmp 0x41a7cc
cmp eax, 1
jne 0x41a3a5
cmp dword [ebp + 0x5c], 1
je 0x41a702
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
je 0x41a383
test edi, edi
jle 0x41a702
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
movzx eax, word [ebx]
push 0
push eax
push 0x102
push ecx
call esi
mov ecx, dword [ebp + 0x7c]
sub edi, 1
jne 0x41a362
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
jmp 0x41a7cc
mov al, byte [ebp + 0x64]
mov edx, edi
or al, byte [ebp + 0x6f]
mov cx, word [ebx]
movzx eax, al
push eax
call fcn.0041ad40
mov bh, byte [ebp + 0x6f]
add esp, 4
mov edi, dword [ebp + 0x54]
jmp 0x41a7cc
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 + 0x58]
push eax
lea eax, [ebp + 0x5c]
push eax
call fcn.0041e650
mov bl, al
add esp, 0xc
mov byte [ebp + 0x6e], bl
test bl, bl
je 0x41a4be
cmp dword [ebp + 0x7c], 0
mov esi, dword [ebp + 0x5c]
jne 0x41a3ed
test esi, esi
jne 0x41a3e6
mov byte [ebp + 0x63], bl
jmp 0x41a3ed
mov cl, bl
call fcn.00419570
cmp dword [0x521a18], 0
je 0x41a3fd
mov al, byte [0x521a0c]
jmp 0x41a404
xor cl, cl
call fcn.0041da40
mov ecx, dword [ebp + 0x7c]
mov dl, al
mov bh, byte [ebp + 0x58]
push 0xffc3d44d
push 0
push 0
push ecx
mov cl, bh
mov byte [ebp + 0x6f], bh
call fcn.0041d310
add esp, 0x10
test edi, edi
jle 0x41a705
nop dword [eax + eax]
push 0xffc3d44d
push 1
push dword [ebp + 0x7c]
mov dl, bl
mov ecx, esi
push 0
call fcn.0041b1b0
add esp, 0x10
cmp dword [0x521a18], 0
jne 0x41a4ad
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x51b98c]
sub eax, dword [0x521784]
cmp eax, dword [ecx + 0xd8]
jbe 0x41a4ad
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x41a4a2
mov edx, 1
mov dword [0x51b984], 0
or ecx, 0xffffffff
call fcn.00401860
mov dword [0x51b984], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x521784], eax
sub edi, 1
jne 0x41a430
mov edi, dword [ebp + 0x54]
jmp 0x41a7cc
cmp esi, 4
jbe 0x41a535
mov ebx, dword [ebp + 0x68]
push 4
push str.ASC
push ebx
call fcn.004cff45
mov edi, dword [ebp + 0x7c]
add esp, 0xc
test eax, eax
jne 0x41a540
test edi, edi
jne 0x41a540
lea ecx, [ebx + 6]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x41a4f1
cmp eax, 9
jne 0x41a4f6
add ecx, 2
jmp 0x41a4e4
call fcn.0041ae50
cmp dword [0x521a18], 2
mov eax, dword [0x51b98c]
jne 0x41a51f
mov ecx, dword [eax + 0x60]
call fcn.0041cee0
mov bh, byte [ebp + 0x58]
mov edi, dword [ebp + 0x54]
mov byte [ebp + 0x6f], bh
jmp 0x41a7cc
mov ecx, dword [eax + 0x5c]
call fcn.0041cee0
mov bh, byte [ebp + 0x58]
mov edi, dword [ebp + 0x54]
mov byte [ebp + 0x6f], bh
jmp 0x41a7cc
cmp esi, 2
jbe 0x41a527
mov ebx, dword [ebp + 0x68]
mov edi, dword [ebp + 0x7c]
push 2
push 0x50747c
push ebx
call fcn.004cff45
add esp, 0xc
test eax, eax
jne 0x41a527
push 0x10
push eax
lea eax, [ebx + 4]
push eax
call fcn.004cfd31
mov edx, eax
add esp, 0xc
cmp edx, 0x10000
jb 0x41a598
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 0x41a59d
movzx ecx, dx
xor esi, esi
mov bh, byte [ebp + 0x58]
mov byte [ebp + 0x6f], bh
test edi, edi
je 0x41a5d2
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 0x41a617
push 0
movzx eax, si
push eax
push 0x102
push dword [ebp + 0x7c]
call edi
jmp 0x41a617
cmp dword [0x521a18], 2
je 0x41a5f7
mov bl, byte [ebp + 0x64]
or bl, bh
mov dl, bl
call fcn.004195f0
test si, si
je 0x41a617
mov dl, bl
mov ecx, esi
call fcn.004195f0
jmp 0x41a617
mov eax, 0x30
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xa]
push 0xa
push eax
push edx
call fcn.004ce3a5
add esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.0041ae50
cmp dword [0x521a18], 2
mov eax, dword [0x51b98c]
jne 0x41a635
mov ecx, dword [eax + 0x60]
call fcn.0041cee0
mov edi, dword [ebp + 0x54]
jmp 0x41a7cc
mov ecx, dword [eax + 0x5c]
call fcn.0041cee0
mov edi, dword [ebp + 0x54]
jmp 0x41a7cc
push 0
mov edx, esi
mov cl, bh
call fcn.0041dc50
mov bl, al
add esp, 4
mov eax, dword [ebp + 0x5c]
mov byte [ebp + 0x10], bl
test bl, bl
je 0x41a6db
cmp dword [ebp + 0x7c], 0
jne 0x41a6db
test eax, eax
jne 0x41a693
mov ecx, dword [ebp + 0x44]
mov byte [ebp + 0x63], bh
cmp ecx, 1
jne 0x41a681
mov cl, byte [ebp + 0x6f]
or byte [0x5219a6], bl
or cl, bl
jmp 0x41a6d5
cmp ecx, 2
jne 0x41a68c
or byte [0x5219a7], bl
mov cl, byte [ebp + 0x6f]
or cl, bl
jmp 0x41a6d5
cmp eax, 1
jne 0x41a6db
mov cl, bh
call fcn.00419570
mov al, byte [ebp + 0x6c]
not bl
and byte [0x5219a7], bl
mov cl, bl
and cl, byte [0x5219a6]
and al, bl
mov byte [0x5219a6], cl
mov byte [ebp + 0x6c], al
cmp bh, 0xa5
jne 0x41a6d0
cmp dword [0x5219fc], 3
jne 0x41a6d0
and al, 0xfe
mov byte [ebp + 0x6c], al
or cl, al
mov eax, dword [ebp + 0x5c]
mov byte [ebp + 0x58], 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 + 0x10]
mov cl, bh
push eax
push edi
push dword [ebp + 0x58]
push dword [ebp + 0x64]
call fcn.0041ab90
add esp, 0x24
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
jmp 0x41a7cc
cmp eax, 2
jne 0x41a74d
movzx eax, word [edi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x41a71d.11
jmp dword [eax*4 + 0x41ab6c]
cmp word [edi + 2], 0xa
lea eax, [edi + 2]
cmove edi, eax
mov al, 0xd
mov byte [ebp + 0x6e], al
jmp 0x41a777
mov al, 8
mov byte [ebp + 0x6e], al
jmp 0x41a777
mov al, 9
mov byte [ebp + 0x6e], al
jmp 0x41a777
mov byte [ebp + 0x6e], 0
jmp 0x41a7a1
mov eax, dword [ebp + 0x50]
or bl, bh
je 0x41a759
test eax, eax
jne 0x41a759
mov al, 1
jmp 0x41a75b
xor al, al
mov cx, word [edi]
lea edx, [ebp + 0x64]
push eax
push dword [0x5219f8]
call fcn.0041e4a0
add esp, 8
mov byte [ebp + 0x6e], al
test al, al
je 0x41a79e
push 0
push connect
push connect
push esi
push 0
push 2
push 1
push dword [ebp + 0x58]
xor edx, edx
mov cl, al
push dword [ebp + 0x64]
call fcn.0041ab90
add esp, 0x24
jmp 0x41a7cc
mov bl, byte [ebp + 0x64]
movzx ecx, word [edi]
test esi, esi
je 0x41a7b9
push 0
push ecx
push 0x102
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x41a7cc
or bl, bh
mov edx, 1
movzx eax, bl
push eax
call fcn.0041ad40
add esp, 4
xor bl, bl
mov byte [ebp + 0x64], bl
mov al, byte [ebp + 0x63]
add edi, 2
mov byte [0x5219a5], al
cmp word [edi], 0
jne 0x419d90
cmp dword [0x521a18], 0
je 0x41a890
or esi, 0xffffffff
cmp byte [0x521a0e], 0
mov dword [ebp + 0x44], esi
jne 0x41a850
cmp dword [0x521a00], 0
jbe 0x41a850
cmp byte [0x521a1c], 0
je 0x41a818
xor bl, bl
jmp 0x41a820
mov bl, byte [ebp + 0x62]
not bl
and bl, byte [ebp + 0x6d]
or bl, byte [0x5219a7]
mov dl, byte [0x521a0c]
or bl, bh
push 0xffc3d44d
push 1
push 1
push 0
mov cl, bl
call fcn.0041d310
add esp, 0x10
lea ecx, [ebp + 0x44]
mov dl, bl
call fcn.0041ccd0
mov esi, dword [ebp + 0x44]
cmp dword [0x521a18], 1
mov eax, 0x5dc
mov ecx, 0x1f4
cmove eax, ecx
cmp dword [0x521a04], eax
jbe 0x41a87a
push dword [0x51f658]
call fcn.004cfed0
add esp, 4
mov ecx, esi
mov dword [0x521a18], 0
call fcn.0041cee0
jmp 0x41a91c
cmp dword [0x51eaf8], 0
je 0x41a8a4
mov cl, byte [0x51f4cc]
mov dl, byte [ebp + 0x6d]
jmp 0x41a8cd
cmp dword [0x51cbf8], 0
jl 0x41a8c8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x52173c]
cmp eax, dword [0x51cbf8]
jb 0x41a8c8
mov dl, byte [ebp + 0x6d]
xor cl, cl
jmp 0x41a8cd
mov dl, byte [ebp + 0x6d]
mov cl, dl
or cl, byte [0x5219a7]
cmp byte [0x521a1c], 0
je 0x41a8ee
mov al, cl
xor al, dl
mov bl, al
and al, cl
and bl, dl
not bl
and bl, bh
or bl, al
jmp 0x41a8f7
mov bl, byte [ebp + 0x62]
not bl
and bl, cl
or bl, bh
push 0xffc3d44d
push 1
push 1
push dword [ebp + 0x7c]
xor cl, cl
call fcn.0041da40
or al, byte [0x51eb93]
mov cl, bl
mov dl, al
call fcn.0041d310
add esp, 0x10
cmp dword [0x51eaf8], 0
je 0x41a93f
mov cl, byte [0x51f4cd]
mov al, cl
xor al, byte [0x51f4ce]
and al, cl
not al
and cl, al
mov byte [0x51f4cd], cl
cmp dword [ebp + 0x1c], 1
jne 0x41a9d4
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x41a9d4
push 0x14
call esi
bt ax, 0xf
jae 0x41a97c
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 1
call fcn.0041b1b0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 2
call fcn.0041b1b0
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 [0x5203dc]
jne 0x41a9e0
mov edx, 1
mov dword [0x51b984], 0
or ecx, 0xffffffff
call fcn.00401860
mov dword [0x51b984], 1
jmp 0x41a9e0
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp byte [ebp + 0x61], 0
je 0x41a9f7
push 0
push dword [ebp + 0x18]
push dword [0x5203dc]
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp + 0x60], 0
je 0x41aa12
cmp byte [ebp + 0x4f], 0
jne 0x41aa12
push 0
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x51eb5e], 0
mov eax, dword [ebp + 0x78]
test eax, eax
jne 0x41aaa0
mov eax, dword [ebp + 0xc]
cmp dword [0x521780], eax
je 0x41aad5
cmp dword [0x51b984], 0
je 0x41aad5
cmp dword [0x51eaa8], 0
jne 0x41aad5
mov ecx, dword [0x51b98c]
cmp byte [ecx + 0xec], 0
jne 0x41aa91
cmp byte [ecx + 0xee], 0
jne 0x41aa88
cmp dword [ecx + 0xe0], 0xffffffff
jle 0x41aa88
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x51b98c]
sub eax, dword [ecx + 0xdc]
cmp eax, dword [ecx + 0xe0]
jb 0x41aa88
mov byte [ecx + 0xec], 1
cmp byte [ecx + 0xec], 0
je 0x41aad5
mov edx, 1
or ecx, 0xffffffff
call fcn.00401860
jmp 0x41aad5
cmp eax, 1
jne 0x41aad5
push 0
call esi
push eax
call ebx
cmp eax, dword [0x5203dc]
jne 0x41aad5
mov edx, 1
mov dword [0x51b984], 0
or ecx, 0xffffffff
call fcn.00401860
mov dword [0x51b984], 1
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x5c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x64], ecx
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x70]
pop ebp
ret