Function at 0x418250
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.0x4182c6.0
mov eax, dword [0x4e4788]
mov dword [ebp + 0x4c], eax
mov eax, dword [0x4ea5a4]
mov dword [ebp + 0x10], eax
xor al, al
mov byte [ebp + 0x6f], al
test esi, esi
jne 0x418304
push 6
push str.Blind
push ebx
call fcn.0049f9c2
add esp, 0xc
test eax, eax
jne 0x418301
movzx eax, word [ebx + 0xc]
add ebx, 0xc
mov byte [0x4ea808], 1
mov dword [ebp + 0x68], ebx
cmp eax, 0x7d
je 0x418315
mov dl, byte [ebp + 0x6f]
mov ecx, eax
movzx eax, cx
cmp eax, 0x5e
ja case.0x4182c6.1
movzx eax, byte [eax + 0x4194b0]
jmp dword [eax*4 + 0x419498]
or byte [ebp + 0x6f], 3
mov dl, byte [ebp + 0x6f]
jmp case.0x4182c6.1
or byte [ebp + 0x6f], 0x30
mov dl, byte [ebp + 0x6f]
jmp case.0x4182c6.1
or byte [ebp + 0x6f], 0xc
mov dl, byte [ebp + 0x6f]
jmp case.0x4182c6.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 0x4182b7
jmp 0x418315
mov al, byte [ebp + 0x6f]
mov byte [0x4ea808], 0
mov byte [ebp + 0x6f], al
mov dword [ebp + 0x68], ebx
test esi, esi
jne 0x418336
push 6
push 0x4d4274
push ebx
call fcn.0049f9c2
add esp, 0xc
test eax, eax
jne 0x418336
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 0x418356
cmp edi, 3
jne 0x418410
mov eax, dword [0x4ea768]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x418368
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 [0x4ea768], 0
mov ebx, eax
je 0x418392
mov dword [0x4ea768], esi
jmp 0x418399
test esi, esi
je 0x418399
push esi
call edi
cmp ebx, 0xb7
je 0x4183da
cmp dword [ebp + 0x54], 0
jne 0x4183cd
call fcn.004130b0
mov ebx, dword [ebp + 0x68]
test al, al
je 0x4183d0
mov edx, 0x4d4630
mov ecx, ebx
call fcn.004819f0
test eax, eax
jne 0x4183dd
mov edi, 1
mov dword [ebp + 0x78], edi
jmp 0x418410
mov ebx, dword [ebp + 0x68]
mov edi, 1
mov dword [ebp + 0x78], edi
jmp 0x418410
mov ebx, dword [ebp + 0x68]
cmp dword [ebp + 0x78], 3
jne 0x4183ed
mov edi, 2
mov dword [ebp + 0x78], edi
jmp 0x418410
mov ecx, dword [ebp + 0x4c]
xor edi, edi
mov dword [ebp + 0x78], edi
cmp dword [ecx + 0x6c], edi
jge 0x418404
cmp dword [ecx + 0x74], edi
jge 0x418404
or eax, 0xffffffff
jmp 0x418406
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 0x4184c8
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 0x41859d
cmp edi, dword [0x4e9e1c]
je 0x41859d
mov ecx, dword [0x4eb06c]
test cl, 1
jne 0x418476
push str.IsHungAppWindow
or ecx, 1
push str.user32
mov dword [0x4eb06c], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4eb070], eax
jmp 0x41847b
mov eax, dword [0x4eb070]
mov ecx, dword [ebp + 0x7c]
test eax, eax
je 0x418487
push ecx
call eax
jmp 0x4184a4
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 0x41859d
push 1
push edi
push dword [0x4e9e1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
mov esi, edi
setne byte [ebp + 0x5c]
jmp 0x41859d
test byte [0x4ea56a], 0xc0
je 0x41855b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ea560]
cmp eax, 0x32
jae 0x41855b
cmp edi, 2
je 0x41855b
cmp byte [0x4ea808], 0
jne 0x41855b
mov esi, dword [ebp + 0x54]
cmp esi, 2
je 0x41855b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4e9e1c]
jne 0x41855b
test esi, esi
je 0x4185ec
mov edi, ebx
test ebx, ebx
je 0x418551
movzx eax, word [ebx]
test ax, ax
je 0x418551
mov esi, eax
mov ecx, 0x4d4640
mov edx, 0x4c
nop dword [eax]
cmp si, dx
je 0x418553
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x418530
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x418522
xor edi, edi
test edi, edi
jne 0x41869d
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test eax, eax
je 0x418597
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 0x418597
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x418597
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 [0x4ea794], eax
call fcn.0041c7e0
mov cl, 1
mov dword [0x4ea7e8], eax
call fcn.0041c260
mov bl, al
and byte [0x4ea793], bl
cmp dword [0x4e8e6c], 0
je 0x4186e2
mov al, byte [0x4e8f7d]
mov ah, byte [0x4e8f7b]
mov cl, al
not al
and cl, ah
and al, ah
mov byte [ebp + 0x65], al
jmp 0x418708
mov esi, ebx
nop
test esi, esi
je 0x41855b
movzx eax, word [esi]
test ax, ax
je 0x41855b
mov edi, eax
nop word [eax + eax]
mov ecx, 0x4d4640
mov edx, 0x4c
nop word [eax + eax]
cmp di, dx
je 0x418646
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x418620
movzx eax, word [esi + 2]
add esi, 2
mov edi, eax
test ax, ax
jne 0x418610
jmp 0x41855b
add esi, 2
je 0x41869d
movzx eax, word [esi]
test ax, ax
je 0x41869d
mov edi, eax
nop word [eax + eax]
mov eax, 0x4d4648
mov edx, 0x7b
nop word [eax + eax]
cmp di, dx
je 0x418693
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x418670
movzx eax, word [esi + 2]
add esi, 2
mov edi, eax
test ax, ax
jne 0x418660
jmp 0x41869d
cmp word [esi], 0x7b
jne 0x4185f0
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call esi
bt ax, 0xf
jb 0x4186bd
push 0x5c
call esi
bt ax, 0xf
jae 0x41855b
mov edx, 1
mov dword [0x4e4780], 0
mov ecx, 0x8000012f
call fcn.00401600
mov dword [0x4e4780], 1
jmp 0x4186a3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ea560]
cmp eax, dword [0x4e4d00]
jae 0x418700
mov ah, byte [0x4ea56a]
and ah, bl
jmp 0x418702
xor ah, ah
mov cl, ah
mov byte [ebp + 0x65], 0
mov dl, byte [0x4ea792]
not cl
and cl, bl
mov byte [ebp + 0x6c], ah
and dl, cl
mov byte [ebp + 0x66], 0
cmp byte [0x4ea808], 0
mov byte [ebp + 0x6e], dl
mov byte [0x4ea792], dl
je 0x418751
mov al, byte [ebp + 0x6f]
mov cl, bl
mov byte [ebp + 0x6e], cl
mov byte [ebp + 0x5d], cl
test al, al
je 0x418754
mov cl, al
not cl
and cl, bl
mov al, cl
xor cl, bl
mov byte [ebp + 0x6e], al
mov byte [ebp + 0x5d], al
mov byte [ebp + 0x66], cl
jmp 0x418754
mov byte [ebp + 0x5d], dl
mov eax, dword [ebp + 0x4c]
cmp byte [eax + 0x98], 0
je 0x418780
cmp byte [0x4ea808], 0
jne 0x418780
cmp dword [ebp + 0x54], 2
je 0x418780
mov edx, 2
mov cl, 0x14
call fcn.0041ba50
mov dword [ebp + 0x24], eax
jmp 0x418787
mov dword [ebp + 0x24], 0
mov ecx, dword [ebp + 0x78]
mov eax, 0x1f4
mov dword [0x4ea804], ecx
mov edi, 0x5dc
test ecx, ecx
je 0x418800
cmp ecx, 1
mov edx, 0x2ee0
cmovne eax, edi
mov dword [0x4ea7f0], eax
mov eax, 0x36b0
cmovne eax, edx
call fcn.004b5ce0
mov eax, dword [0x4e5e24]
mov ecx, esp
mov byte [0x4ea7f8], bl
mov byte [0x4ea7f9], 0
mov dword [0x4ea7ec], 0
mov dword [eax], ecx
mov ecx, dword [ebp + 0x78]
mov dword [0x4ea7fc], 0x80000000
mov dword [0x4ea800], 0x80000000
mov byte [0x4ea7fa], 0
mov byte [0x4ea7fb], 1
mov al, byte [0x4e8c56]
mov byte [ebp + 0x5a], al
mov eax, dword [0x4e484c]
cmp eax, 7
je 0x418817
cmp eax, 9
jne 0x418837
mov esi, dword [ebp + 0x7c]
test ecx, ecx
jne 0x41883a
test esi, esi
jne 0x41883a
push 1
mov byte [ebp + 0x5b], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4e8c56], 1
jmp 0x41883e
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 0x41917f
jmp 0x418863
mov esi, dword [ebp + 0x7c]
cmp dword [0x4ea804], 0
mov byte [ebp + 0x67], 0
jne 0x4188ca
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [0x4e4788]
sub eax, dword [0x4ea5a4]
cmp eax, dword [ecx + 0x5c]
jbe 0x4188c7
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 0x4188c0
mov edx, 1
mov dword [0x4e4780], 0
or ecx, 0xffffffff
call fcn.00401600
mov dword [0x4e4780], 1
call edi
mov dword [0x4ea5a4], eax
mov dl, byte [ebp + 0x6f]
mov ecx, dword [ebp + 0x54]
test ecx, ecx
jne 0x419097
movzx eax, word [ebx]
push eax
push 0x4d4650
call fcn.0049d3cf
add esp, 8
test eax, eax
je 0x4190d4
movzx eax, word [ebx]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x418904.34
movzx eax, byte [eax + 0x41952c]
jmp dword [eax*4 + 0x419510]
test byte [ebp + 0x6e], 3
jne case.0x418904.34
mov dl, byte [ebp + 0x6f]
or dl, 1
jmp 0x41915f
test byte [ebp + 0x6e], 0x30
jne case.0x418904.34
mov dl, byte [ebp + 0x6f]
or dl, 0x10
jmp 0x41915f
test byte [ebp + 0x6e], 0xc
jne case.0x418904.34
mov dl, byte [ebp + 0x6f]
or dl, 4
jmp 0x41915f
test byte [ebp + 0x6e], 0xc0
jne case.0x418904.34
mov dl, byte [ebp + 0x6f]
or dl, 0x40
jmp 0x41915f
lea esi, [ebx + 2]
push 0x7d
push esi
call fcn.0049d3cf
add esp, 8
mov dword [ebp + 0x40], eax
test eax, eax
je case.0x418904.34
mov ebx, esi
nop word [eax + eax]
movzx ecx, word [ebx]
cmp ecx, 0x20
je 0x41898d
cmp ecx, 9
jne 0x418992
add ebx, 2
jmp 0x418980
mov edi, eax
sub edi, ebx
sar edi, 1
mov dword [ebp + 0x3c], edi
jne 0x418a33
lea ecx, [eax + 2]
movzx eax, word [ecx]
cmp eax, 0x7d
jne 0x4189bc
mov edi, 1
mov dword [ebp + 0x40], ecx
mov dword [ebp + 0x3c], edi
jmp 0x418a3f
cmp eax, 0x20
je 0x4189ca
cmp eax, 9
jne 0x419087
mov esi, ecx
nop dword [eax]
cmp ax, 0x20
je 0x4189dc
cmp ax, 9
jne 0x4189e5
movzx eax, word [esi + 2]
add esi, 2
jmp 0x4189d0
push 4
push str.Down
push esi
mov dword [ebp + 0x44], esi
call fcn.0049f9c2
add esp, 0xc
test eax, eax
je 0x418a14
push 2
push 0x4d34a4
push esi
call fcn.0049f9c2
add esp, 0xc
test eax, eax
jne 0x419087
push 0x7d
push esi
call fcn.0049d3cf
add esp, 8
mov dword [ebp + 0x40], eax
test eax, eax
je case.0x418904.34
mov edi, eax
sub edi, ebx
sar edi, 1
mov dword [ebp + 0x3c], edi
cmp edi, 0x400
jae 0x419087
lea esi, [edi + edi]
push esi
lea eax, [ebp - 0x854]
push ebx
push eax
call fcn.0049d480
xor eax, eax
push 5
mov word [ebp + esi - 0x854], ax
lea eax, [ebp - 0x854]
push str.Click
push eax
call fcn.0049f9c2
add esp, 0x18
test eax, eax
jne 0x418afb
lea ecx, [ebp - 0x84a]
nop
movzx eax, word [ecx]
cmp eax, 0x20
je 0x418a8d
cmp eax, 9
jne 0x418a92
add ecx, 2
jmp 0x418a80
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.0041a230
mov eax, dword [ebp + 0x38]
add esp, 0x14
push dword [ebp + 0x28]
cmp eax, 1
jge 0x418ae1
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.0041ae70
mov ebx, dword [ebp + 0x40]
add esp, 0xc
jmp 0x41915d
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 0x419079
lea eax, [ebp - 0x854]
push 0x4d466c
push eax
call fcn.0049f841
add esp, 8
test eax, eax
jne 0x418b22
mov ebx, dword [ebp + 0x40]
mov dword [ebp + 0x54], 1
jmp 0x41915d
lea eax, [ebp - 0x854]
push str.Text
push eax
call fcn.0049f841
add esp, 8
test eax, eax
jne 0x418b49
mov ebx, dword [ebp + 0x40]
mov dword [ebp + 0x54], 2
jmp 0x41915d
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 0x418d0d
movzx esi, ax
nop word [eax + eax]
mov edx, 0x4d4680
mov ecx, 0x20
nop word [eax + eax]
cmp si, cx
je 0x418c46
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
test ax, ax
jne 0x418b90
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x418b80
mov edi, dword [ebp + 0x50]
push dword [0x4ea794]
lea eax, [ebp + 0x61]
push eax
lea eax, [ebp + 0x14]
push eax
lea edx, [ebp + 0x6d]
lea ecx, [ebp - 0x854]
call fcn.0041cd80
add esp, 0xc
cmp edi, 1
jl 0x419087
mov bh, byte [ebp + 0x6d]
mov esi, dword [ebp + 0x14]
test bh, bh
jne 0x418fc4
test si, si
jne 0x418fc4
cmp dword [ebp + 0x2c], 1
jne 0x418d39
cmp dword [ebp + 0x68], 1
je 0x419087
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
je 0x418d17
test edi, edi
jle 0x419087
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 0x418c24
mov ebx, dword [ebp + 0x40]
jmp 0x41915d
test edi, edi
je 0x418bb5
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 0x418c72
cmp eax, 9
jne 0x418c77
add ebx, 2
jmp 0x418c65
mov eax, dword [ebp + 0x40]
sub eax, ebx
mov dword [ebp + 0x44], ebx
sar eax, 1
je 0x418bb5
push 4
push str.Down
push ebx
call fcn.0049f9c2
add esp, 0xc
test eax, eax
jne 0x418cde
push 4
lea esi, [ebx + 8]
mov dword [ebp + 0x68], eax
push str.Temp
push esi
call fcn.0049f9c2
add esp, 0xc
test eax, eax
jne 0x418cbd
mov dword [ebp + 0x48], eax
jmp 0x418bb5
xor eax, eax
cmp word [esi], 0x52
sete al
push eax
call fcn.004aa0c9
add esp, 4
neg eax
sbb ebx, ebx
neg ebx
inc ebx
mov dword [ebp + 0x48], ebx
jmp 0x418bb5
push 0x4d34a4
push ebx
call fcn.0049f841
add esp, 8
test eax, eax
jne 0x418cfc
mov dword [ebp + 0x68], 1
jmp 0x418bb5
mov ecx, ebx
call fcn.00481e40
mov edi, eax
mov dword [ebp + 0x38], edi
jmp 0x418bb8
mov edi, 1
jmp 0x418bb8
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.00419760
mov ebx, dword [ebp + 0x40]
add esp, 4
jmp 0x41915d
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.0041ce50
mov bl, al
add esp, 0xc
mov byte [ebp + 0x6d], bl
test bl, bl
je 0x418e4a
cmp dword [ebp + 0x7c], 0
mov esi, dword [ebp + 0x68]
jne 0x418d85
test esi, esi
jne 0x418d7e
mov byte [ebp + 0x67], bl
jmp 0x418d85
mov cl, bl
call fcn.00417f80
cmp dword [0x4ea804], 0
je 0x418d95
mov al, byte [0x4ea7f8]
jmp 0x418d9c
xor cl, cl
call fcn.0041c260
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.0041bb60
add esp, 0x10
test edi, edi
jle 0x419087
push 0xffc3d44d
push 1
push dword [ebp + 0x7c]
mov dl, bl
mov ecx, esi
push 0
call fcn.00419b50
add esp, 0x10
cmp dword [0x4ea804], 0
jne 0x418e3d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4e4788]
sub eax, dword [0x4ea5a4]
cmp eax, dword [ecx + 0x5c]
jbe 0x418e3d
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 0x418e32
mov edx, 1
mov dword [0x4e4780], 0
or ecx, 0xffffffff
call fcn.00401600
mov dword [0x4e4780], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4ea5a4], eax
sub edi, 1
jne 0x418dc3
mov ebx, dword [ebp + 0x40]
jmp 0x41915d
cmp esi, 4
jbe 0x418eb0
lea eax, [ebp - 0x854]
push 0x4d4694
push eax
call fcn.0049f841
mov edi, dword [ebp + 0x7c]
add esp, 8
test eax, eax
jne 0x418eb8
test edi, edi
jne 0x418eb8
mov ecx, dword [ebp + 0x44]
call fcn.00419870
cmp dword [0x4ea804], 2
mov eax, dword [0x4e4788]
jne 0x418e9a
mov ecx, dword [eax + 0x70]
call fcn.0041b6e0
mov al, byte [ebp + 0x5d]
mov ebx, dword [ebp + 0x40]
mov byte [ebp + 0x6e], al
jmp 0x41915d
mov ecx, dword [eax + 0x6c]
call fcn.0041b6e0
mov al, byte [ebp + 0x5d]
mov ebx, dword [ebp + 0x40]
mov byte [ebp + 0x6e], al
jmp 0x41915d
cmp esi, 2
jbe 0x418ea2
mov edi, dword [ebp + 0x7c]
push 2
lea eax, [ebp - 0x854]
push 0x4d469c
push eax
call fcn.0049f9c2
add esp, 0xc
test eax, eax
jne 0x418ea2
push 0x10
push eax
lea eax, [ebp - 0x850]
push eax
call fcn.004a5279
mov edx, eax
add esp, 0xc
cmp edx, 0x10000
jb 0x418f19
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 0x418f1e
movzx ecx, dx
xor esi, esi
mov al, byte [ebp + 0x5d]
mov byte [ebp + 0x6e], al
test edi, edi
je 0x418f51
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 0x418f96
push 0
movzx eax, si
push eax
push 0x102
push edi
call ebx
jmp 0x418f96
cmp dword [0x4ea804], 2
je 0x418f76
mov bl, byte [ebp + 0x61]
or bl, al
mov dl, bl
call fcn.00418000
test si, si
je 0x418f96
mov dl, bl
mov ecx, esi
call fcn.00418000
jmp 0x418f96
mov eax, 0x30
mov word [ebp - 8], ax
lea eax, [ebp - 6]
push 0xa
push eax
push edx
call fcn.004a437a
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.00419870
cmp dword [0x4ea804], 2
mov eax, dword [0x4e4788]
jne 0x418fb4
mov ecx, dword [eax + 0x70]
call fcn.0041b6e0
mov ebx, dword [ebp + 0x40]
jmp 0x41915d
mov ecx, dword [eax + 0x6c]
call fcn.0041b6e0
mov ebx, dword [ebp + 0x40]
jmp 0x41915d
push 0
mov edx, esi
mov cl, bh
call fcn.0041c4a0
mov bl, al
add esp, 4
mov eax, dword [ebp + 0x68]
mov byte [ebp + 0x1c], bl
test bl, bl
je 0x419060
cmp dword [ebp + 0x7c], 0
jne 0x419060
test eax, eax
jne 0x419022
mov ecx, dword [ebp + 0x48]
mov byte [ebp + 0x67], bh
cmp ecx, 1
jne 0x41900a
mov cl, byte [ebp + 0x6e]
or byte [0x4ea792], bl
or cl, bl
mov byte [ebp + 0x6e], cl
mov byte [ebp + 0x5d], cl
jmp 0x419060
cmp ecx, 2
jne 0x419015
or byte [0x4ea793], bl
mov cl, byte [ebp + 0x6e]
or cl, bl
mov byte [ebp + 0x6e], cl
mov byte [ebp + 0x5d], cl
jmp 0x419060
cmp eax, 1
jne 0x419060
mov cl, bh
call fcn.00417f80
not bl
and byte [0x4ea792], bl
and byte [0x4ea793], bl
and bl, byte [ebp + 0x6e]
mov al, bl
mov byte [ebp + 0x6e], al
mov byte [ebp + 0x5d], al
cmp bh, 0xa5
jne 0x41905d
cmp dword [0x4ea7e8], 3
jne 0x41905d
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.004195b0
add esp, 0x24
mov ebx, dword [ebp + 0x40]
jmp 0x41915d
mov dl, byte [ebp + 0x6f]
jmp 0x419165
cmp ecx, 2
jne 0x4190d7
movzx eax, word [ebx]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x4190a7.11
jmp dword [eax*4 + 0x41958c]
cmp word [ebx + 2], 0xa
lea eax, [ebx + 2]
cmove ebx, eax
mov al, 0xd
mov byte [ebp + 0x6d], al
jmp 0x419105
mov al, 8
mov byte [ebp + 0x6d], al
jmp 0x419105
mov al, 9
mov byte [ebp + 0x6d], al
jmp 0x419105
mov byte [ebp + 0x6d], 0
jmp 0x41912f
mov ecx, dword [ebp + 0x54]
mov al, byte [ebp + 0x6f]
or al, byte [ebp + 0x6e]
je 0x4190e7
test ecx, ecx
jne 0x4190e7
mov al, 1
jmp 0x4190e9
xor al, al
mov cx, word [ebx]
lea edx, [ebp + 0x61]
push eax
push dword [0x4ea794]
call fcn.0041ccb0
add esp, 8
mov byte [ebp + 0x6d], al
test al, al
je 0x41912c
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.004195b0
add esp, 0x24
jmp 0x41915d
mov dl, byte [ebp + 0x61]
movzx ecx, word [ebx]
test esi, esi
je 0x419149
push 0
mov eax, ecx
push eax
push 0x102
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x41915d
or dl, byte [ebp + 0x6e]
movzx eax, dl
mov edx, 1
push eax
call fcn.00419760
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 [0x4ea791], al
cmp word [ebx], 0
jne 0x418860
mov edi, 0x5dc
cmp dword [0x4ea804], 0
je 0x419226
or esi, 0xffffffff
cmp byte [0x4ea7fa], 0
mov dword [ebp + 0x48], esi
jne 0x4191eb
cmp dword [0x4ea7ec], 0
jbe 0x4191eb
cmp byte [0x4ea808], 0
je 0x4191b2
mov bl, byte [ebp + 0x66]
jmp 0x4191ba
mov bl, byte [ebp + 0x65]
not bl
and bl, byte [ebp + 0x6c]
or bl, byte [0x4ea793]
or bl, byte [ebp + 0x6e]
mov dl, byte [0x4ea7f8]
mov cl, bl
push 0xffc3d44d
push 1
push 1
push 0
call fcn.0041bb60
add esp, 0x10
lea ecx, [ebp + 0x48]
mov dl, bl
call fcn.0041b580
mov esi, dword [ebp + 0x48]
cmp dword [0x4ea804], 1
mov eax, 0x1f4
cmove edi, eax
cmp dword [0x4ea7f0], edi
jbe 0x419210
push dword [0x4e8fe4]
call fcn.0049f942
add esp, 4
mov ecx, esi
mov dword [0x4ea804], 0
call fcn.0041b6e0
jmp 0x4192b9
cmp dword [0x4e8e6c], 0
je 0x41923a
mov cl, byte [0x4e8f7b]
mov dl, byte [ebp + 0x6c]
jmp 0x419263
cmp dword [0x4e4d00], 0
jl 0x41925e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ea560]
cmp eax, dword [0x4e4d00]
jb 0x41925e
mov dl, byte [ebp + 0x6c]
xor cl, cl
jmp 0x419263
mov dl, byte [ebp + 0x6c]
mov cl, dl
or cl, byte [0x4ea793]
cmp byte [0x4ea808], 0
je 0x41928a
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 0x419294
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.0041c260
or al, byte [0x4e8f7a]
mov cl, bl
mov dl, al
call fcn.0041bb60
add esp, 0x10
cmp dword [0x4e8e6c], 0
je 0x4192dc
mov cl, byte [0x4e8f7c]
mov al, cl
xor al, byte [0x4e8f7d]
and al, cl
not al
and cl, al
mov byte [0x4e8f7c], cl
cmp dword [ebp + 0x24], 1
jne 0x419375
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x419375
push 0x14
call esi
bt ax, 0xf
jae 0x41931d
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 1
call fcn.00419b50
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 2
call fcn.00419b50
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 [0x4e9e1c]
jne 0x419381
mov edx, 1
mov dword [0x4e4780], 0
or ecx, 0xffffffff
call fcn.00401600
mov dword [0x4e4780], 1
jmp 0x419381
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp byte [ebp + 0x5c], 0
je 0x419398
push 0
push dword [ebp + 0x20]
push dword [0x4e9e1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp + 0x5b], 0
je 0x4193b3
cmp byte [ebp + 0x5a], 0
jne 0x4193b3
push 0
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4e8c56], 0
mov eax, dword [ebp + 0x78]
test eax, eax
jne 0x419445
mov eax, dword [ebp + 0x10]
cmp dword [0x4ea5a4], eax
je 0x41947a
cmp dword [0x4e4780], 0
je 0x41947a
cmp dword [0x4e8c1c], 0
jne 0x41947a
cmp dword [0x4e8c34], 0
je 0x419436
mov ecx, dword [0x4e4788]
cmp byte [ecx + 0x53], 0
jne 0x419436
cmp dword [ecx + 0x44], 0xffffffff
jle 0x419430
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4e4788]
sub eax, dword [ecx + 0x48]
cmp eax, dword [ecx + 0x44]
jb 0x419430
cmp dword [ecx + 0x40], 0
je 0x419430
cmp byte [ecx + 0x96], 0
mov byte [ecx + 0x53], 1
jne 0x419430
mov dword [ecx + 0x5c], 5
cmp byte [ecx + 0x53], 0
je 0x41947a
mov edx, 1
or ecx, 0xffffffff
call fcn.00401600
jmp 0x41947a
cmp eax, 1
jne 0x41947a
push 0
call esi
push eax
call ebx
cmp eax, dword [0x4e9e1c]
jne 0x41947a
mov edx, 1
mov dword [0x4e4780], 0
or ecx, 0xffffffff
call fcn.00401600
mov dword [0x4e4780], 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