Function at 0x4181c0
Capabilities:
Check for time delay via gettickcount
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x8c4
push ebx
mov ebx, ecx
push esi
mov esi, edx
push edi
cmp word [ebx], 0
mov dword [ebp + 0x54], esi
je case.0x418236.0
mov eax, dword [0x4e47f8]
mov dword [ebp + 0x4c], eax
mov eax, dword [0x4ea61c]
mov dword [ebp + 0x10], eax
xor al, al
mov byte [ebp + 0x6f], al
test esi, esi
jne 0x418274
push 6
push str.Blind
push ebx
call fcn.0049f042
add esp, 0xc
test eax, eax
jne 0x418271
movzx eax, word [ebx + 0xc]
add ebx, 0xc
mov byte [0x4ea89c], 1
mov dword [ebp + 0x68], ebx
cmp eax, 0x7d
je 0x418285
mov dl, byte [ebp + 0x6f]
mov ecx, eax
movzx eax, cx
cmp eax, 0x5e
ja case.0x418236.1
movzx eax, byte [eax + 0x419408]
jmp dword [eax*4 + 0x4193f0]
or byte [ebp + 0x6f], 3
mov dl, byte [ebp + 0x6f]
jmp case.0x418236.1
or byte [ebp + 0x6f], 0x30
mov dl, byte [ebp + 0x6f]
jmp case.0x418236.1
or byte [ebp + 0x6f], 0xc
mov dl, byte [ebp + 0x6f]
jmp case.0x418236.1
or dl, 0xc0
mov byte [ebp + 0x6f], dl
movzx eax, word [ebx + 2]
add ebx, 2
mov dword [ebp + 0x68], ebx
mov ecx, eax
cmp eax, 0x7d
jne 0x418227
jmp 0x418285
mov al, byte [ebp + 0x6f]
mov byte [0x4ea89c], 0
mov byte [ebp + 0x6f], al
mov dword [ebp + 0x68], ebx
test esi, esi
jne 0x4182a6
push 6
push 0x4d4284
push ebx
call fcn.0049f042
add esp, 0xc
test eax, eax
jne 0x4182a6
add ebx, 0xc
mov dword [ebp + 0x54], 2
mov dword [ebp + 0x68], ebx
mov ecx, dword [ebp + 0x4c]
mov edi, dword [ebp + 0x78]
mov eax, dword [ecx + 0x6c]
mov dword [ebp + 0xc], eax
mov eax, dword [ecx + 0x74]
mov dword [ebp + 0x34], eax
cmp edi, 1
je 0x4182c6
cmp edi, 3
jne 0x418380
mov eax, dword [0x4ea800]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4182d8
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 [0x4ea800], 0
mov ebx, eax
je 0x418302
mov dword [0x4ea800], esi
jmp 0x418309
test esi, esi
je 0x418309
push esi
call edi
cmp ebx, 0xb7
je 0x41834a
cmp dword [ebp + 0x54], 0
jne 0x41833d
call fcn.00412fb0
mov ebx, dword [ebp + 0x68]
test al, al
je 0x418340
mov edx, 0x4d4640
mov ecx, ebx
call fcn.00481b70
test eax, eax
jne 0x41834d
mov edi, 1
mov dword [ebp + 0x78], edi
jmp 0x418380
mov ebx, dword [ebp + 0x68]
mov edi, 1
mov dword [ebp + 0x78], edi
jmp 0x418380
mov ebx, dword [ebp + 0x68]
cmp dword [ebp + 0x78], 3
jne 0x41835d
mov edi, 2
mov dword [ebp + 0x78], edi
jmp 0x418380
mov ecx, dword [ebp + 0x4c]
xor edi, edi
mov dword [ebp + 0x78], edi
cmp dword [ecx + 0x6c], edi
jge 0x418374
cmp dword [ecx + 0x74], edi
jge 0x418374
or eax, 0xffffffff
jmp 0x418376
xor eax, eax
mov dword [ecx + 0x74], eax
mov dword [ecx + 0x6c], 0xffffffff
mov eax, dword [ebp + 0x7c]
xor esi, esi
mov byte [ebp + 0x5c], 0
test eax, eax
je 0x418438
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call edi
mov edi, eax
mov dword [ebp + 0x20], edi
test edi, edi
je 0x41850d
cmp edi, dword [0x4e9f18]
je 0x41850d
mov ecx, dword [0x4eb0fc]
test cl, 1
jne 0x4183e6
push str.IsHungAppWindow
or ecx, 1
push str.user32
mov dword [0x4eb0fc], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4eb100], eax
jmp 0x4183eb
mov eax, dword [0x4eb100]
mov ecx, dword [ebp + 0x7c]
test eax, eax
je 0x4183f7
push ecx
call eax
jmp 0x418414
lea eax, [ebp + 0x1c]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb eax, eax
inc eax
test eax, eax
jne 0x41850d
push 1
push edi
push dword [0x4e9f18]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
mov esi, edi
setne byte [ebp + 0x5c]
jmp 0x41850d
test byte [0x4ea5e2], 0xc0
je 0x4184cb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ea5d8]
cmp eax, 0x32
jae 0x4184cb
cmp edi, 2
je 0x4184cb
cmp byte [0x4ea89c], 0
jne 0x4184cb
mov esi, dword [ebp + 0x54]
cmp esi, 2
je 0x4184cb
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4e9f18]
jne 0x4184cb
test esi, esi
je 0x41855b
mov edi, ebx
test ebx, ebx
je 0x4184c1
movzx eax, word [ebx]
test ax, ax
je 0x4184c1
mov esi, eax
mov ecx, 0x4d4650
mov edx, 0x4c
nop dword [eax]
cmp si, dx
je 0x4184c3
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4184a0
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x418492
xor edi, edi
test edi, edi
jne 0x41860d
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test eax, eax
je 0x418507
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call edi
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 0x418507
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x418507
push 0
push eax
call edi
mov esi, eax
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x20], eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, eax
mov dword [0x4ea878], eax
call fcn.0041c770
mov cl, 1
mov dword [0x4ea87c], eax
call fcn.0041c1f0
mov bl, al
and byte [0x4ea827], bl
cmp dword [0x4e8ef4], 0
je 0x41864e
mov al, byte [0x4e9005]
mov dl, byte [0x4e8eff]
not al
and al, dl
mov byte [ebp + 0x6c], dl
mov byte [ebp + 0x65], al
jmp 0x418677
mov esi, ebx
nop dword [eax]
test esi, esi
je 0x4184cb
movzx eax, word [esi]
test ax, ax
je 0x4184cb
mov edi, eax
nop word [eax + eax]
mov ecx, 0x4d4650
mov edx, 0x4c
nop word [eax + eax]
cmp di, dx
je 0x4185b6
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x418590
movzx eax, word [esi + 2]
add esi, 2
mov edi, eax
test ax, ax
jne 0x418580
jmp 0x4184cb
add esi, 2
je 0x41860d
movzx eax, word [esi]
test ax, ax
je 0x41860d
mov edi, eax
nop word [eax + eax]
mov eax, 0x4d4658
mov edx, 0x7b
nop word [eax + eax]
cmp di, dx
je 0x418603
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x4185e0
movzx eax, word [esi + 2]
add esi, 2
mov edi, eax
test ax, ax
jne 0x4185d0
jmp 0x41860d
cmp word [esi], 0x7b
jne 0x418560
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call esi
test ax, ax
js 0x418629
push 0x5c
call esi
test ax, ax
jns 0x4184cb
mov edx, 1
mov dword [0x4e47f0], 0
mov ecx, 0x8000012f
call fcn.004015e0
mov dword [0x4e47f0], 1
jmp 0x418613
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ea5d8]
cmp eax, dword [0x4e4d70]
jae 0x41866f
mov dl, byte [0x4ea5e2]
and dl, bl
mov byte [ebp + 0x6c], dl
jmp 0x418673
mov byte [ebp + 0x6c], 0
mov byte [ebp + 0x65], 0
mov cl, byte [0x4ea826]
and cl, bl
mov byte [ebp + 0x66], 0
cmp byte [0x4ea89c], 0
mov byte [ebp + 0x6e], cl
mov byte [0x4ea826], cl
je 0x4186b9
mov al, byte [ebp + 0x6f]
mov cl, bl
mov byte [ebp + 0x6e], cl
mov byte [ebp + 0x5d], cl
test al, al
je 0x4186bc
mov dl, al
not dl
and dl, bl
mov al, dl
xor dl, bl
mov byte [ebp + 0x6e], al
mov byte [ebp + 0x5d], al
mov byte [ebp + 0x66], dl
jmp 0x4186bc
mov byte [ebp + 0x5d], cl
mov eax, dword [ebp + 0x4c]
cmp byte [eax + 0x98], 0
je 0x4186e8
cmp byte [0x4ea89c], 0
jne 0x4186e8
cmp dword [ebp + 0x54], 2
je 0x4186e8
mov edx, 2
mov cl, 0x14
call fcn.0041b9e0
mov dword [ebp + 0x24], eax
jmp 0x4186ef
mov dword [ebp + 0x24], 0
mov ecx, dword [ebp + 0x78]
mov eax, 0x1f4
mov dword [0x4ea898], ecx
mov edi, 0x5dc
test ecx, ecx
je 0x418768
cmp ecx, 1
mov edx, 0x2ee0
cmovne eax, edi
mov dword [0x4ea884], eax
mov eax, 0x36b0
cmovne eax, edx
call fcn.004b55a0
mov eax, dword [0x4e5ea4]
mov ecx, esp
mov byte [0x4ea88c], bl
mov byte [0x4ea88d], 0
mov dword [0x4ea880], 0
mov dword [eax], ecx
mov ecx, dword [ebp + 0x78]
mov dword [0x4ea890], 0x80000000
mov dword [0x4ea894], 0x80000000
mov byte [0x4ea88e], 0
mov byte [0x4ea88f], 1
mov al, byte [0x4e8cde]
mov byte [ebp + 0x5a], al
mov eax, dword [0x4e4c80]
cmp eax, 7
je 0x41877f
cmp eax, 9
jne 0x41879f
mov esi, dword [ebp + 0x7c]
test ecx, ecx
jne 0x4187a2
test esi, esi
jne 0x4187a2
push 1
mov byte [ebp + 0x5b], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4e8cde], 1
jmp 0x4187a6
mov esi, dword [ebp + 0x7c]
mov byte [ebp + 0x5b], 0
mov ebx, dword [ebp + 0x68]
xor dl, dl
mov byte [ebp + 0x6f], dl
mov byte [ebp + 0x61], dl
cmp word [ebx], 0
je 0x4190d8
jmp 0x4187c3
mov esi, dword [ebp + 0x7c]
cmp dword [0x4ea898], 0
mov byte [ebp + 0x67], 0
jne 0x41882a
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [0x4e47f8]
sub eax, dword [0x4ea61c]
cmp eax, dword [ecx + 0x5c]
jbe 0x418827
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x418820
mov edx, 1
mov dword [0x4e47f0], 0
or ecx, 0xffffffff
call fcn.004015e0
mov dword [0x4e47f0], 1
call edi
mov dword [0x4ea61c], eax
mov dl, byte [ebp + 0x6f]
mov ecx, dword [ebp + 0x54]
test ecx, ecx
jne 0x418ff7
movzx eax, word [ebx]
push eax
push 0x4d4660
call fcn.0049ca51
add esp, 8
test eax, eax
je 0x41902b
movzx eax, word [ebx]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x418864.34
movzx eax, byte [eax + 0x419484]
jmp dword [eax*4 + 0x419468]
test byte [ebp + 0x6e], 3
jne case.0x418864.34
mov dl, byte [ebp + 0x6f]
or dl, 1
jmp 0x4190b8
test byte [ebp + 0x6e], 0x30
jne case.0x418864.34
mov dl, byte [ebp + 0x6f]
or dl, 0x10
jmp 0x4190b8
test byte [ebp + 0x6e], 0xc
jne case.0x418864.34
mov dl, byte [ebp + 0x6f]
or dl, 4
jmp 0x4190b8
test byte [ebp + 0x6e], 0xc0
jne case.0x418864.34
mov dl, byte [ebp + 0x6f]
or dl, 0x40
jmp 0x4190b8
lea esi, [ebx + 2]
push 0x7d
push esi
call fcn.0049ca51
add esp, 8
mov dword [ebp + 0x40], eax
test eax, eax
je case.0x418864.34
mov ebx, esi
nop word [eax + eax]
movzx ecx, word [ebx]
cmp ecx, 0x20
je 0x4188ed
cmp ecx, 9
jne 0x4188f2
add ebx, 2
jmp 0x4188e0
mov edi, eax
sub edi, ebx
sar edi, 1
mov dword [ebp + 0x3c], edi
jne 0x418993
lea ecx, [eax + 2]
movzx eax, word [ecx]
cmp eax, 0x7d
jne 0x41891c
mov edi, 1
mov dword [ebp + 0x40], ecx
mov dword [ebp + 0x3c], edi
jmp 0x41899f
cmp eax, 0x20
je 0x41892a
cmp eax, 9
jne 0x418fe7
mov esi, ecx
nop dword [eax]
cmp ax, 0x20
je 0x41893c
cmp ax, 9
jne 0x418945
movzx eax, word [esi + 2]
add esi, 2
jmp 0x418930
push 4
push str.Down
push esi
mov dword [ebp + 0x44], esi
call fcn.0049f042
add esp, 0xc
test eax, eax
je 0x418974
push 2
push 0x4d34b4
push esi
call fcn.0049f042
add esp, 0xc
test eax, eax
jne 0x418fe7
push 0x7d
push esi
call fcn.0049ca51
add esp, 8
mov dword [ebp + 0x40], eax
test eax, eax
je case.0x418864.34
mov edi, eax
sub edi, ebx
sar edi, 1
mov dword [ebp + 0x3c], edi
cmp edi, 0x400
jae 0x418fe7
lea esi, [edi + edi]
push esi
lea eax, [ebp - 0x854]
push ebx
push eax
call fcn.0049cb00
xor eax, eax
push 5
mov word [ebp + esi - 0x854], ax
lea eax, [ebp - 0x854]
push str.Click
push eax
call fcn.0049f042
add esp, 0x18
test eax, eax
jne 0x418a5b
lea ecx, [ebp - 0x84a]
nop
movzx eax, word [ecx]
cmp eax, 0x20
je 0x4189ed
cmp eax, 9
jne 0x4189f2
add ecx, 2
jmp 0x4189e0
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x6d]
push eax
lea eax, [ebp + 0x18]
push eax
lea edx, [ebp + 0x30]
call fcn.0041a1a0
mov eax, dword [ebp + 0x38]
add esp, 0x14
push dword [ebp + 0x28]
cmp eax, 1
jge 0x418a41
mov eax, dword [ebp + 0x4c]
lea edx, [ebp + 0x18]
lea ecx, [ebp + 0x30]
movzx eax, byte [eax + 0x97]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0041adf0
mov ebx, dword [ebp + 0x40]
add esp, 0xc
jmp 0x4190b6
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x7c]
xor edx, edx
push dword [ebp + 0x30]
mov cl, byte [ebp + 0x6d]
push edi
push 0
push dword [ebp + 0x68]
push eax
jmp 0x418fd9
lea eax, [ebp - 0x854]
push 0x4d467c
push eax
call fcn.0049eec1
add esp, 8
test eax, eax
jne 0x418a82
mov ebx, dword [ebp + 0x40]
mov dword [ebp + 0x54], 1
jmp 0x4190b6
lea eax, [ebp - 0x854]
push str.Text
push eax
call fcn.0049eec1
add esp, 8
test eax, eax
jne 0x418aa9
mov ebx, dword [ebp + 0x40]
mov dword [ebp + 0x54], 2
jmp 0x4190b6
mov eax, 1
mov dword [ebp + 0x2c], edi
mov dword [ebp + 0x50], eax
lea edi, [ebp - 0x854]
mov dword [ebp + 0x38], eax
mov eax, dword [ebp - 0x854]
mov dword [ebp + 0x68], 2
test ax, ax
je 0x418c6d
movzx esi, ax
nop word [eax + eax]
mov edx, 0x4d4690
mov ecx, 0x20
nop word [eax + eax]
cmp si, cx
je 0x418ba6
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
test ax, ax
jne 0x418af0
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x418ae0
mov edi, dword [ebp + 0x50]
push dword [0x4ea878]
lea eax, [ebp + 0x61]
push eax
lea eax, [ebp + 0x14]
push eax
lea edx, [ebp + 0x6d]
lea ecx, [ebp - 0x854]
call fcn.0041cd10
add esp, 0xc
cmp edi, 1
jl 0x418fe7
mov bh, byte [ebp + 0x6d]
mov esi, dword [ebp + 0x14]
test bh, bh
jne 0x418f24
test si, si
jne 0x418f24
cmp dword [ebp + 0x2c], 1
jne 0x418c99
cmp dword [ebp + 0x68], 1
je 0x418fe7
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
je 0x418c77
test edi, edi
jle 0x418fe7
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
movzx eax, word [ebp - 0x854]
push 0
push eax
push 0x102
push ecx
call ebx
mov ecx, dword [ebp + 0x7c]
sub edi, 1
jne 0x418b84
mov ebx, dword [ebp + 0x40]
jmp 0x4190b6
test edi, edi
je 0x418b15
xor eax, eax
mov ebx, edi
mov word [edi], ax
lea eax, [ebp - 0x854]
sub ebx, eax
sar ebx, 1
mov dword [ebp + 0x2c], ebx
lea ebx, [edi + 2]
movzx eax, word [ebx]
cmp eax, 0x20
je 0x418bd2
cmp eax, 9
jne 0x418bd7
add ebx, 2
jmp 0x418bc5
mov eax, dword [ebp + 0x40]
sub eax, ebx
mov dword [ebp + 0x44], ebx
sar eax, 1
je 0x418b15
push 4
push str.Down
push ebx
call fcn.0049f042
add esp, 0xc
test eax, eax
jne 0x418c3e
push 4
lea esi, [ebx + 8]
mov dword [ebp + 0x68], eax
push str.Temp
push esi
call fcn.0049f042
add esp, 0xc
test eax, eax
jne 0x418c1d
mov dword [ebp + 0x48], eax
jmp 0x418b15
xor eax, eax
cmp word [esi], 0x52
sete al
push eax
call fcn.004a9929
add esp, 4
neg eax
sbb ebx, ebx
neg ebx
inc ebx
mov dword [ebp + 0x48], ebx
jmp 0x418b15
push 0x4d34b4
push ebx
call fcn.0049eec1
add esp, 8
test eax, eax
jne 0x418c5c
mov dword [ebp + 0x68], 1
jmp 0x418b15
mov ecx, ebx
call fcn.00481fa0
mov edi, eax
mov dword [ebp + 0x38], edi
jmp 0x418b18
mov edi, 1
jmp 0x418b18
mov al, byte [ebp + 0x61]
mov edx, edi
or al, byte [ebp + 0x6e]
mov ecx, dword [ebp - 0x854]
movzx eax, al
push eax
call fcn.004196b0
mov ebx, dword [ebp + 0x40]
add esp, 4
jmp 0x4190b6
cmp dword [ebp + 0x7c], 0
lea ecx, [ebp - 0x854]
mov esi, dword [ebp + 0x3c]
mov edx, esi
sete al
movzx eax, al
push eax
lea eax, [ebp + 0x5d]
push eax
lea eax, [ebp + 0x68]
push eax
call fcn.0041cde0
mov bl, al
add esp, 0xc
mov byte [ebp + 0x6d], bl
test bl, bl
je 0x418daa
cmp dword [ebp + 0x7c], 0
mov esi, dword [ebp + 0x68]
jne 0x418ce5
test esi, esi
jne 0x418cde
mov byte [ebp + 0x67], bl
jmp 0x418ce5
mov cl, bl
call fcn.00417ef0
cmp dword [0x4ea898], 0
je 0x418cf5
mov al, byte [0x4ea88c]
jmp 0x418cfc
xor cl, cl
call fcn.0041c1f0
mov ecx, dword [ebp + 0x7c]
mov dl, al
mov al, byte [ebp + 0x5d]
push 0xffc3d44d
push 0
push 0
push ecx
mov cl, al
mov byte [ebp + 0x6e], al
call fcn.0041baf0
add esp, 0x10
test edi, edi
jle 0x418fe7
push 0xffc3d44d
push 1
push dword [ebp + 0x7c]
mov dl, bl
mov ecx, esi
push 0
call fcn.00419aa0
add esp, 0x10
cmp dword [0x4ea898], 0
jne 0x418d9d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4e47f8]
sub eax, dword [0x4ea61c]
cmp eax, dword [ecx + 0x5c]
jbe 0x418d9d
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x418d92
mov edx, 1
mov dword [0x4e47f0], 0
or ecx, 0xffffffff
call fcn.004015e0
mov dword [0x4e47f0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4ea61c], eax
sub edi, 1
jne 0x418d23
mov ebx, dword [ebp + 0x40]
jmp 0x4190b6
cmp esi, 4
jbe 0x418e10
lea eax, [ebp - 0x854]
push 0x4d46a4
push eax
call fcn.0049eec1
mov edi, dword [ebp + 0x7c]
add esp, 8
test eax, eax
jne 0x418e18
test edi, edi
jne 0x418e18
mov ecx, dword [ebp + 0x44]
call fcn.004197c0
cmp dword [0x4ea898], 2
mov eax, dword [0x4e47f8]
jne 0x418dfa
mov ecx, dword [eax + 0x70]
call fcn.0041b660
mov al, byte [ebp + 0x5d]
mov ebx, dword [ebp + 0x40]
mov byte [ebp + 0x6e], al
jmp 0x4190b6
mov ecx, dword [eax + 0x6c]
call fcn.0041b660
mov al, byte [ebp + 0x5d]
mov ebx, dword [ebp + 0x40]
mov byte [ebp + 0x6e], al
jmp 0x4190b6
cmp esi, 2
jbe 0x418e02
mov edi, dword [ebp + 0x7c]
push 2
lea eax, [ebp - 0x854]
push 0x4d46ac
push eax
call fcn.0049f042
add esp, 0xc
test eax, eax
jne 0x418e02
push 0x10
push eax
lea eax, [ebp - 0x850]
push eax
call fcn.004a496d
mov edx, eax
add esp, 0xc
cmp edx, 0x10000
jb 0x418e79
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 0x418e7e
movzx ecx, dx
xor esi, esi
mov al, byte [ebp + 0x5d]
mov byte [ebp + 0x6e], al
test edi, edi
je 0x418eb1
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
push 0
movzx eax, cx
push eax
push 0x102
push edi
call ebx
test si, si
je 0x418ef6
push 0
movzx eax, si
push eax
push 0x102
push edi
call ebx
jmp 0x418ef6
cmp dword [0x4ea898], 2
je 0x418ed6
mov bl, byte [ebp + 0x61]
or bl, al
mov dl, bl
call fcn.00417f70
test si, si
je 0x418ef6
mov dl, bl
mov ecx, esi
call fcn.00417f70
jmp 0x418ef6
mov eax, 0x30
mov word [ebp - 8], ax
lea eax, [ebp - 6]
push 0xa
push eax
push edx
call fcn.004a3a61
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.004197c0
cmp dword [0x4ea898], 2
mov eax, dword [0x4e47f8]
jne 0x418f14
mov ecx, dword [eax + 0x70]
call fcn.0041b660
mov ebx, dword [ebp + 0x40]
jmp 0x4190b6
mov ecx, dword [eax + 0x6c]
call fcn.0041b660
mov ebx, dword [ebp + 0x40]
jmp 0x4190b6
push 0
mov edx, esi
mov cl, bh
call fcn.0041c430
mov bl, al
add esp, 4
mov eax, dword [ebp + 0x68]
mov byte [ebp + 0x1c], bl
test bl, bl
je 0x418fc0
cmp dword [ebp + 0x7c], 0
jne 0x418fc0
test eax, eax
jne 0x418f82
mov ecx, dword [ebp + 0x48]
mov byte [ebp + 0x67], bh
cmp ecx, 1
jne 0x418f6a
mov cl, byte [ebp + 0x6e]
or byte [0x4ea826], bl
or cl, bl
mov byte [ebp + 0x6e], cl
mov byte [ebp + 0x5d], cl
jmp 0x418fc0
cmp ecx, 2
jne 0x418f75
or byte [0x4ea827], bl
mov cl, byte [ebp + 0x6e]
or cl, bl
mov byte [ebp + 0x6e], cl
mov byte [ebp + 0x5d], cl
jmp 0x418fc0
cmp eax, 1
jne 0x418fc0
mov cl, bh
call fcn.00417ef0
not bl
and byte [0x4ea826], bl
and byte [0x4ea827], bl
and bl, byte [ebp + 0x6e]
mov al, bl
mov byte [ebp + 0x6e], al
mov byte [ebp + 0x5d], al
cmp bh, 0xa5
jne 0x418fbd
cmp dword [0x4ea87c], 3
jne 0x418fbd
and al, 0xfe
mov byte [ebp + 0x6e], al
mov byte [ebp + 0x5d], al
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x7c]
mov edx, esi
push 0
push connect
push connect
push ecx
push dword [ebp + 0x1c]
mov cl, bh
push eax
push edi
push dword [ebp + 0x5d]
push dword [ebp + 0x61]
call fcn.00419500
add esp, 0x24
mov ebx, dword [ebp + 0x40]
jmp 0x4190b6
mov dl, byte [ebp + 0x6f]
jmp 0x4190be
cmp ecx, 2
jne 0x41902e
movzx eax, word [ebx]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x419007.11
jmp dword [eax*4 + 0x4194e4]
cmp word [ebx + 2], 0xa
lea eax, [ebx + 2]
cmove ebx, eax
mov al, 0xd
jmp 0x419058
mov al, 8
jmp 0x419058
mov al, 9
jmp 0x419058
xor al, al
xor cl, cl
jmp 0x41905a
mov ecx, dword [ebp + 0x54]
mov al, byte [ebp + 0x6f]
or al, byte [ebp + 0x6e]
je 0x41903e
test ecx, ecx
jne 0x41903e
mov al, 1
jmp 0x419040
xor al, al
mov cx, word [ebx]
lea edx, [ebp + 0x61]
push eax
push dword [0x4ea878]
call fcn.0041cc40
mov dl, byte [ebp + 0x61]
add esp, 8
mov cl, al
mov byte [ebp + 0x6d], al
test cl, cl
je 0x419088
push 0
push connect
push connect
push esi
push 0
push 2
push 1
push dword [ebp + 0x5d]
xor edx, edx
mov cl, al
push dword [ebp + 0x61]
call fcn.00419500
add esp, 0x24
jmp 0x4190b6
movzx ecx, word [ebx]
test esi, esi
je 0x4190a2
push 0
mov eax, ecx
push eax
push 0x102
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4190b6
or dl, byte [ebp + 0x6e]
movzx eax, dl
mov edx, 1
push eax
call fcn.004196b0
add esp, 4
xor dl, dl
mov byte [ebp + 0x61], dl
mov byte [ebp + 0x6f], dl
mov al, byte [ebp + 0x67]
add ebx, 2
mov byte [0x4ea825], al
cmp word [ebx], 0
jne 0x4187c0
mov edi, 0x5dc
cmp dword [0x4ea898], 0
je 0x41917f
or esi, 0xffffffff
cmp byte [0x4ea88e], 0
mov dword [ebp + 0x48], esi
jne 0x419144
cmp dword [0x4ea880], 0
jbe 0x419144
cmp byte [0x4ea89c], 0
je 0x41910b
mov bl, byte [ebp + 0x66]
jmp 0x419113
mov bl, byte [ebp + 0x65]
not bl
and bl, byte [ebp + 0x6c]
or bl, byte [0x4ea827]
or bl, byte [ebp + 0x6e]
mov dl, byte [0x4ea88c]
mov cl, bl
push 0xffc3d44d
push 1
push 1
push 0
call fcn.0041baf0
add esp, 0x10
lea ecx, [ebp + 0x48]
mov dl, bl
call fcn.0041b4f0
mov esi, dword [ebp + 0x48]
cmp dword [0x4ea898], 1
mov eax, 0x1f4
cmove edi, eax
cmp dword [0x4ea884], edi
jbe 0x419169
push dword [0x4e906c]
call fcn.0049efc2
add esp, 4
mov ecx, esi
mov dword [0x4ea898], 0
call fcn.0041b660
jmp 0x419212
cmp dword [0x4e8ef4], 0
je 0x419193
mov cl, byte [0x4e8eff]
mov dl, byte [ebp + 0x6c]
jmp 0x4191bc
cmp dword [0x4e4d70], 0
jl 0x4191b7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ea5d8]
cmp eax, dword [0x4e4d70]
jb 0x4191b7
mov dl, byte [ebp + 0x6c]
xor cl, cl
jmp 0x4191bc
mov dl, byte [ebp + 0x6c]
mov cl, dl
or cl, byte [0x4ea827]
cmp byte [0x4ea89c], 0
je 0x4191e3
mov al, cl
xor al, dl
mov bl, al
and al, cl
and bl, dl
mov dl, byte [ebp + 0x6e]
or dl, byte [ebp + 0x66]
not bl
and bl, dl
or bl, al
jmp 0x4191ed
mov bl, byte [ebp + 0x65]
not bl
and bl, cl
or bl, byte [ebp + 0x6e]
push 0xffc3d44d
push 1
push 1
push dword [ebp + 0x7c]
xor cl, cl
call fcn.0041c1f0
or al, byte [0x4e8efe]
mov cl, bl
mov dl, al
call fcn.0041baf0
add esp, 0x10
cmp dword [0x4e8ef4], 0
je 0x419235
mov cl, byte [0x4e9004]
mov al, cl
xor al, byte [0x4e9005]
and al, cl
not al
and cl, al
mov byte [0x4e9004], cl
cmp dword [ebp + 0x24], 1
jne 0x4192cc
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x4192cc
push 0x14
call esi
test ax, ax
jns 0x419274
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 1
call fcn.00419aa0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 2
call fcn.00419aa0
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 [0x4e9f18]
jne 0x4192d8
mov edx, 1
mov dword [0x4e47f0], 0
or ecx, 0xffffffff
call fcn.004015e0
mov dword [0x4e47f0], 1
jmp 0x4192d8
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp byte [ebp + 0x5c], 0
je 0x4192ef
push 0
push dword [ebp + 0x20]
push dword [0x4e9f18]
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp + 0x5b], 0
je 0x41930a
cmp byte [ebp + 0x5a], 0
jne 0x41930a
push 0
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4e8cde], 0
mov eax, dword [ebp + 0x78]
test eax, eax
jne 0x41939c
mov eax, dword [ebp + 0x10]
cmp dword [0x4ea61c], eax
je 0x4193d1
cmp dword [0x4e47f0], 0
je 0x4193d1
cmp dword [0x4e8ca4], 0
jne 0x4193d1
cmp dword [0x4e8cbc], 0
je 0x41938d
mov ecx, dword [0x4e47f8]
cmp byte [ecx + 0x53], 0
jne 0x41938d
cmp dword [ecx + 0x44], 0xffffffff
jle 0x419387
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4e47f8]
sub eax, dword [ecx + 0x48]
cmp eax, dword [ecx + 0x44]
jb 0x419387
cmp dword [ecx + 0x40], 0
je 0x419387
cmp byte [ecx + 0x96], 0
mov byte [ecx + 0x53], 1
jne 0x419387
mov dword [ecx + 0x5c], 5
cmp byte [ecx + 0x53], 0
je 0x4193d1
mov edx, 1
or ecx, 0xffffffff
call fcn.004015e0
jmp 0x4193d1
cmp eax, 1
jne 0x4193d1
push 0
call esi
push eax
call ebx
cmp eax, dword [0x4e9f18]
jne 0x4193d1
mov edx, 1
mov dword [0x4e47f0], 0
or ecx, 0xffffffff
call fcn.004015e0
mov dword [0x4e47f0], 1
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x6c], ecx
mov ecx, dword [ebp + 0x34]
mov dword [eax + 0x74], ecx
lea esp, [ebp - 0x860]
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x70]
pop ebp
ret