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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0x1c], ebx
cmp word [esi], 0
je 0x41837e
mov edi, dword [0x4e30fc]
mov eax, dword fs:[0x24]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x48], eax
test ebx, ebx
jne 0x417384
push 7
push str.Blind
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x417384
mov byte [0x4e8b27], 1
add esi, 0xe
jmp 0x41738f
mov byte [0x4e8b27], 0
test ebx, ebx
jne 0x4173ae
push 6
push 0x4d06ac
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4173ae
mov dword [ebp - 0x1c], 2
add esi, 0xc
mov eax, dword [edi + 0x5c]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x68], eax
mov eax, dword [edi + 0x64]
mov dword [ebp - 0x54], eax
cmp ecx, 1
je 0x4173cb
cmp ecx, 3
jne 0x41747e
cmp dword [0x4e8a3c], 0
je 0x41744c
mov eax, dword [0x4e8a64]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4173e6
push eax
call edi
push str.AHK_Keybd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x4e8a64], 0
mov dword [ebp - 0x30], eax
je 0x417411
mov dword [0x4e8a64], ebx
jmp 0x417417
push ebx
call edi
mov eax, dword [ebp - 0x30]
cmp eax, 0xb7
je 0x417446
cmp dword [ebp - 0x1c], 0
jne 0x41743d
call fcn.00412910
test al, al
je 0x41743d
mov edx, str.Click
mov ecx, esi
call fcn.0049ca30
test eax, eax
jne 0x417446
mov dword [ebp + 8], 1
jmp 0x41747e
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
cmp ecx, 3
jne 0x41745a
mov dword [ebp + 8], 2
jmp 0x41747e
cmp dword [edi + 0x5c], 0
mov dword [ebp + 8], 0
jge 0x417472
cmp dword [edi + 0x64], 0
jge 0x417472
or eax, 0xffffffff
jmp 0x417474
xor eax, eax
mov dword [edi + 0x64], eax
mov dword [edi + 0x5c], 0xffffffff
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov byte [ebp - 0xb], 0
test ebx, ebx
je 0x4174d8
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x41757c
cmp eax, dword [0x4e7484]
je 0x41757c
mov ecx, ebx
call fcn.004a2410
test al, al
jne 0x41757c
mov ebx, dword [ebp - 0x38]
push 1
push ebx
push dword [0x4e7484]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
mov edi, ebx
setne byte [ebp - 0xb]
jmp 0x41757c
test byte [0x4e882a], 0xc0
je 0x417567
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4e8820]
cmp eax, 0x32
jae 0x417567
cmp dword [ebp + 8], 2
je 0x417567
cmp byte [0x4e8b27], 0
jne 0x417567
mov ebx, dword [ebp - 0x1c]
cmp ebx, 2
je 0x417567
cmp byte [0x4e8a2b], 0
je 0x417567
mov eax, dword [ebp - 0x48]
cmp eax, dword [0x4e7484]
jne 0x417567
mov edx, 0x4d090c
mov ecx, esi
call fcn.00406300
test ebx, ebx
jne 0x4175c3
test eax, eax
je 0x417567
nop dword [eax]
lea ecx, [eax + 2]
mov edx, 0x4d0914
call fcn.00406300
test eax, eax
je 0x4175c7
cmp word [eax], 0x7b
je 0x4175c7
mov edx, 0x4d090c
mov ecx, eax
call fcn.00406300
test eax, eax
jne 0x417540
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, eax
call fcn.0041b540
mov edi, eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
xor edx, edx
mov dword [0x4e8b08], eax
mov ecx, eax
call fcn.0041b5e0
mov cl, 1
mov dword [0x4e8b0c], eax
call fcn.0041af90
mov bl, al
and byte [0x4e8ab6], bl
cmp dword [0x4e5bc8], 0
je 0x417609
mov al, byte [0x4e657c]
mov cl, byte [0x4e5c56]
mov bh, al
not al
and bh, cl
and al, cl
jmp 0x41762d
test eax, eax
je 0x417567
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, 0x8000
push 0x5b
call edi
test bx, ax
jne 0x4175e4
push 0x5c
call edi
test bx, ax
je 0x417567
mov edx, 1
mov dword [0x4e30f4], 0
mov ecx, 0x8000012f
call fcn.00401a20
mov dword [0x4e30f4], 1
jmp 0x4175d2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4e8820]
cmp eax, dword [0x4e4348]
jae 0x417627
mov cl, byte [0x4e882a]
and cl, bl
jmp 0x417629
xor cl, cl
mov bh, cl
xor al, al
not bh
mov byte [ebp - 3], cl
and bh, byte [0x4e8ab5]
and bh, bl
mov byte [ebp - 6], al
cmp byte [0x4e8b27], 0
mov byte [ebp - 1], bh
mov byte [0x4e8ab5], bh
je 0x41765c
not bh
and bh, bl
mov al, bh
mov bh, bl
mov byte [ebp - 1], bh
jmp 0x41765e
xor al, al
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x28]
mov byte [ebp - 0x10], bh
cmp byte [eax + 0xf3], 0
je 0x417690
cmp byte [0x4e8b27], 0
jne 0x417690
cmp dword [ebp - 0x1c], 2
je 0x417690
mov edx, 2
mov cl, 0x14
call fcn.0041a830
mov dword [ebp - 0x30], eax
jmp 0x417697
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp + 8]
mov eax, 0x1f4
mov dword [0x4e8b28], ecx
mov edx, 0x5dc
test ecx, ecx
je 0x417710
cmp ecx, 1
cmovne eax, edx
mov edx, 0x2ee0
mov dword [0x4e8b14], eax
mov eax, 0x36b0
cmovne eax, edx
call fcn.004b7430
mov eax, dword [0x4e4ac4]
mov ecx, esp
mov byte [0x4e8ab7], bl
mov byte [0x4e8b24], 0
mov dword [0x4e8b10], 0
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [0x4e8b1c], 0x80000000
mov dword [0x4e8b20], 0x80000000
mov byte [0x4e8b25], 0
mov byte [0x4e8b26], 1
mov al, byte [0x4e5c22]
mov byte [ebp - 0x1d], al
mov eax, dword [0x4e359c]
cmp eax, 8
je 0x417727
cmp eax, 0xa
jne 0x41773f
mov edi, dword [ebp + 0xc]
test ecx, ecx
jne 0x417742
test edi, edi
jne 0x417742
mov cl, 1
mov byte [ebp - 0xc], 1
call fcn.00447460
jmp 0x417746
mov edi, dword [ebp + 0xc]
mov byte [ebp - 0xc], 0
xor bl, bl
cmp word [esi], 0
mov byte [ebp - 0xa], bl
je 0x4180d7
jmp 0x417763
mov edi, dword [ebp + 0xc]
cmp dword [0x4e8b28], 0
mov byte [ebp - 5], 0
jne 0x4177cf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4e30fc]
sub eax, dword [0x4e8864]
cmp eax, dword [ecx + 0xd8]
jbe 0x4177cf
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4177c4
mov edx, 1
mov dword [0x4e30f4], 0
or ecx, 0xffffffff
call fcn.00401a20
mov dword [0x4e30f4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4e8864], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x417ffe
movzx eax, word [esi]
push eax
push 0x4d091c
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
je 0x41803b
movzx eax, word [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x41780a.34
movzx eax, byte [eax + 0x4183a8]
jmp dword [eax*4 + 0x41838c]
test bh, 3
jne case.0x41780a.34
or bl, 1
jmp 0x4180bf
test bh, 0x30
jne case.0x41780a.34
or bl, 0x10
jmp 0x4180bf
test bh, 0xc
jne case.0x41780a.34
or bl, 4
jmp 0x4180bf
test bh, 0xc0
jne case.0x41780a.34
or bl, 0x40
jmp 0x4180bf
lea edi, [esi + 2]
push 0x7d
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x41780a.34
mov esi, edi
movzx ecx, word [esi]
cmp ecx, 0x20
je 0x41787e
cmp ecx, 9
jne 0x417883
add esi, 2
jmp 0x417871
mov edi, eax
sub edi, esi
sar edi, 1
mov dword [ebp - 0x34], edi
jne 0x417916
lea edi, [eax + 2]
movzx eax, word [edi]
cmp eax, 0x7d
jne 0x4178a5
mov dword [ebp - 0x18], edi
lea edi, [eax - 0x7c]
jmp 0x417913
cmp eax, 0x20
je 0x4178b3
cmp eax, 9
jne 0x417ff6
cmp ax, 0x20
je 0x4178bf
cmp ax, 9
jne 0x4178c8
movzx eax, word [edi + 2]
add edi, 2
jmp 0x4178b3
push 4
push str.Down
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4178f6
push 2
push 0x4cf63c
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x417ff6
push 0x7d
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x41780a.34
mov edi, eax
sub edi, esi
sar edi, 1
mov dword [ebp - 0x34], edi
push 5
push 0x4cdb38
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4179d6
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov word [eax], cx
lea ecx, [esi + 0xa]
nop word [eax + eax]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x41794d
cmp eax, 9
jne 0x417952
add ecx, 2
jmp 0x417940
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x44]
call fcn.00419010
mov eax, dword [ebp - 0x18]
add esp, 0x14
mov ecx, 0x7d
push dword [ebp - 0x4c]
mov word [eax], cx
mov eax, dword [ebp - 0x3c]
cmp eax, 1
jge 0x4179ac
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x44]
movzx eax, byte [eax + 0xef]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00419cd0
mov esi, dword [ebp - 0x18]
add esp, 0xc
jmp 0x4180bd
push dword [ebp - 0x50]
mov cl, byte [ebp - 2]
xor edx, edx
push dword [ebp - 0x44]
push dword [ebp + 0xc]
push 0
push dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xa]
call fcn.00418420
mov esi, dword [ebp - 0x18]
add esp, 0x24
jmp 0x4180bd
push 3
push 0x4d092c
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4179fa
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 1
jmp 0x4180bd
push 4
push str.Text
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x417a3c
lea ecx, [esi + 8]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x417a1f
cmp eax, 9
jne 0x417a24
add ecx, 2
jmp 0x417a12
cmp ecx, dword [ebp - 0x18]
jne 0x417ff6
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 2
jmp 0x4180bd
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov ebx, 1
mov dword [ebp - 0x14], 2
mov edx, 0x4d049c
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x3c], ebx
mov word [eax], cx
mov ecx, esi
mov dword [ebp - 0x40], edi
call fcn.00406300
mov dword [ebp - 0x58], eax
test eax, eax
je 0x417b23
movzx ecx, word [eax]
lea edi, [eax + 2]
mov dword [ebp - 0x5c], ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, eax
sub ecx, esi
sar ecx, 1
mov dword [ebp - 0x40], ecx
movzx eax, word [edi]
cmp eax, 0x20
je 0x417a94
cmp eax, 9
jne 0x417a99
add edi, 2
jmp 0x417a87
mov eax, dword [ebp - 0x18]
sub eax, edi
sar eax, 1
je 0x417b23
push 4
push str.Down
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x417afc
push 4
add edi, 8
mov dword [ebp - 0x14], eax
push str.Temp
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x417adb
mov dword [ebp - 0x2c], eax
jmp 0x417b23
xor eax, eax
cmp word [edi], 0x52
sete al
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
add esp, 4
mov edi, eax
neg edi
sbb edi, edi
neg edi
inc edi
mov dword [ebp - 0x2c], edi
jmp 0x417b23
push 0x4cf63c
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x417b14
mov dword [ebp - 0x14], ebx
jmp 0x417b23
mov ecx, edi
call fcn.00416fe0
mov ebx, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x3c], ebx
push dword [0x4e8b08]
lea eax, [ebp - 0xa]
mov ecx, esi
push eax
lea eax, [ebp - 0x60]
push eax
lea edx, [ebp - 2]
call fcn.0041bbc0
mov eax, dword [ebp - 0x58]
add esp, 0xc
test eax, eax
je 0x417b4b
mov ecx, dword [ebp - 0x5c]
mov word [eax], cx
mov eax, dword [ebp - 0x18]
mov ecx, 0x7d
mov word [eax], cx
cmp ebx, 1
jl 0x417ff3
mov bh, byte [ebp - 2]
mov edi, dword [ebp - 0x60]
test bh, bh
jne 0x417f34
test di, di
jne 0x417f34
movzx eax, byte [esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isdigit]
add esp, 4
test eax, eax
mov eax, dword [ebp - 0x40]
je 0x417c2e
cmp eax, 1
jbe 0x417c31
cmp dword [0x4e8b28], 0
je 0x417bc3
mov ecx, esi
call fcn.00416fe0
push eax
push 0
push 0
xor dl, dl
xor cl, cl
call fcn.0041a000
mov bh, byte [ebp - 1]
add esp, 0xc
mov esi, dword [ebp - 0x18]
jmp 0x4180bd
mov eax, dword [ebp - 0x48]
mov dword [0x4e30f4], 0
cmp dword [0x4e7484], eax
je 0x417c06
mov ecx, esi
call fcn.00416fe0
test eax, eax
js 0x417c06
mov ecx, esi
call fcn.00416fe0
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov bh, byte [ebp - 1]
mov esi, dword [ebp - 0x18]
mov dword [0x4e30f4], 1
jmp 0x4180bd
mov ecx, esi
call fcn.00416fe0
mov edx, 1
mov ecx, eax
call fcn.00401a20
mov bh, byte [ebp - 1]
mov esi, dword [ebp - 0x18]
mov dword [0x4e30f4], 1
jmp 0x4180bd
cmp eax, 1
jne 0x417c94
cmp dword [ebp - 0x14], 1
je 0x417ff3
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x417c72
mov ebx, dword [ebp - 0x24]
test ebx, ebx
jle 0x417ff3
nop
movzx eax, word [esi]
push 0
push eax
push 0x102
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
sub ebx, 1
jne 0x417c50
mov bh, byte [ebp - 1]
mov esi, dword [ebp - 0x18]
jmp 0x4180bd
mov al, byte [ebp - 0xa]
mov bh, byte [ebp - 1]
mov edx, dword [ebp - 0x24]
or al, bh
mov cx, word [esi]
movzx eax, al
push eax
call fcn.004185d0
mov esi, dword [ebp - 0x18]
add esp, 4
jmp 0x4180bd
mov ebx, dword [ebp + 0xc]
mov ecx, esi
mov edi, dword [ebp - 0x34]
test ebx, ebx
mov edx, edi
sete al
movzx eax, al
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041bc90
add esp, 0xc
mov byte [ebp - 2], al
test al, al
je 0x417db3
mov esi, dword [ebp - 0x14]
mov edi, ebx
test edi, edi
jne 0x417cdb
test esi, esi
jne 0x417cd4
mov byte [ebp - 5], al
jmp 0x417cdb
mov cl, al
call fcn.004171b0
cmp dword [0x4e8b28], 0
je 0x417ceb
mov al, byte [0x4e8ab7]
jmp 0x417cf2
xor cl, cl
call fcn.0041af90
push 0xffc3d44d
push 0
mov dl, al
mov al, byte [ebp - 0x10]
push 0
push edi
mov cl, al
mov byte [ebp - 1], al
call fcn.0041a940
mov ebx, dword [ebp - 0x24]
add esp, 0x10
test ebx, ebx
jle 0x417ff3
nop dword [eax]
mov dl, byte [ebp - 2]
mov ecx, esi
push 0xffc3d44d
push 1
push edi
push 0
call fcn.004189c0
add esp, 0x10
cmp dword [0x4e8b28], 0
jne 0x417d9f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4e30fc]
sub eax, dword [0x4e8864]
cmp eax, dword [ecx + 0xd8]
jbe 0x417d9f
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x417d94
mov edx, 1
mov dword [0x4e30f4], 0
or ecx, 0xffffffff
call fcn.00401a20
mov dword [0x4e30f4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4e8864], eax
sub ebx, 1
jne 0x417d20
mov bh, byte [ebp - 1]
mov esi, dword [ebp - 0x18]
jmp 0x4180bd
cmp edi, 4
jbe 0x417e25
push 4
push str.ASC
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x417e25
test ebx, ebx
jne 0x417e25
lea ecx, [esi + 6]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x417de1
cmp eax, 9
jne 0x417de6
add ecx, 2
jmp 0x417dd4
call fcn.004186e0
cmp dword [0x4e8b28], 2
mov eax, dword [0x4e30fc]
jne 0x417e0f
mov ecx, dword [eax + 0x60]
call fcn.0041a600
mov bh, byte [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov byte [ebp - 1], bh
jmp 0x4180bd
mov ecx, dword [eax + 0x5c]
call fcn.0041a600
mov bh, byte [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov byte [ebp - 1], bh
jmp 0x4180bd
cmp edi, 2
jbe 0x417e17
push 2
push 0x4d094c
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x417e17
push 0x10
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov edx, eax
add esp, 0xc
cmp edx, 0x10000
jb 0x417e84
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 0x417e89
movzx ecx, dx
xor esi, esi
mov edi, ebx
mov bh, byte [ebp - 0x10]
mov byte [ebp - 1], bh
test edi, edi
je 0x417ec0
push 0
movzx eax, cx
push eax
push 0x102
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
test si, si
je 0x417f06
push 0
movzx eax, si
push eax
push 0x102
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x417f06
cmp dword [0x4e8b28], 2
je 0x417ee5
mov bl, byte [ebp - 0xa]
or bl, bh
mov dl, bl
call fcn.00417230
test si, si
je 0x417f06
mov dl, bl
mov ecx, esi
call fcn.00417230
jmp 0x417f06
mov eax, 0x30
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push 0xa
push eax
push edx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
add esp, 0xc
lea ecx, [ebp - 0x7c]
call fcn.004186e0
cmp dword [0x4e8b28], 2
mov eax, dword [0x4e30fc]
jne 0x417f24
mov ecx, dword [eax + 0x60]
call fcn.0041a600
mov esi, dword [ebp - 0x18]
jmp 0x4180bd
mov ecx, dword [eax + 0x5c]
call fcn.0041a600
mov esi, dword [ebp - 0x18]
jmp 0x4180bd
push 0
mov edx, edi
mov cl, bh
call fcn.0041b180
mov esi, dword [ebp - 0x14]
mov bl, al
add esp, 4
mov byte [ebp - 0x64], bl
test bl, bl
je 0x417fcb
cmp dword [ebp + 0xc], 0
jne 0x417fcb
test esi, esi
jne 0x417f86
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 5], bh
cmp eax, 1
jne 0x417f74
mov al, byte [ebp - 1]
or byte [0x4e8ab5], bl
or al, bl
jmp 0x417fc5
cmp eax, 2
jne 0x417f7f
or byte [0x4e8ab6], bl
mov al, byte [ebp - 1]
or al, bl
jmp 0x417fc5
cmp esi, 1
jne 0x417fcb
mov cl, bh
call fcn.004171b0
mov cl, byte [ebp - 4]
not bl
and byte [0x4e8ab6], bl
mov al, bl
and al, byte [0x4e8ab5]
and cl, bl
mov byte [0x4e8ab5], al
mov byte [ebp - 4], cl
cmp bh, 0xa5
jne 0x417fc3
cmp dword [0x4e8b0c], 3
jne 0x417fc3
and cl, 0xfe
mov byte [ebp - 4], cl
or al, cl
mov byte [ebp - 0x10], al
mov byte [ebp - 1], al
push 0
push connect
push connect
push dword [ebp + 0xc]
mov edx, edi
mov cl, bh
push dword [ebp - 0x64]
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0xa]
call fcn.00418420
add esp, 0x24
mov bh, byte [ebp - 1]
mov esi, dword [ebp - 0x18]
jmp 0x4180bd
cmp eax, 2
jne 0x41803e
movzx eax, word [esi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x41800e.11
jmp dword [eax*4 + 0x418408]
cmp word [esi + 2], 0xa
lea eax, [esi + 2]
cmove esi, eax
mov al, 0xd
mov byte [ebp - 2], al
jmp 0x418068
mov al, 8
mov byte [ebp - 2], al
jmp 0x418068
mov al, 9
mov byte [ebp - 2], al
jmp 0x418068
mov byte [ebp - 2], 0
jmp 0x418092
mov eax, dword [ebp - 0x1c]
or bl, bh
je 0x41804a
test eax, eax
jne 0x41804a
mov al, 1
jmp 0x41804c
xor al, al
mov cx, word [esi]
lea edx, [ebp - 0xa]
push eax
push dword [0x4e8b08]
call fcn.0041bb00
add esp, 8
mov byte [ebp - 2], al
test al, al
je 0x41808f
push 0
push connect
push connect
push edi
push 0
push 2
push 1
push dword [ebp - 0x10]
xor edx, edx
mov cl, al
push dword [ebp - 0xa]
call fcn.00418420
add esp, 0x24
jmp 0x4180bd
mov bl, byte [ebp - 0xa]
movzx ecx, word [esi]
test edi, edi
je 0x4180aa
push 0
push ecx
push 0x102
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4180bd
or bl, bh
mov edx, 1
movzx eax, bl
push eax
call fcn.004185d0
add esp, 4
xor bl, bl
mov byte [ebp - 0xa], bl
mov al, byte [ebp - 5]
add esi, 2
mov byte [0x4e8ab4], al
cmp word [esi], 0
jne 0x417760
cmp dword [0x4e8b28], 0
je 0x418182
or esi, 0xffffffff
cmp byte [0x4e8b25], 0
mov dword [ebp - 0x2c], esi
jne 0x418141
cmp dword [0x4e8b10], 0
jbe 0x418141
cmp byte [0x4e8b27], 0
je 0x418109
xor bl, bl
jmp 0x418111
mov bl, byte [ebp - 6]
not bl
and bl, byte [ebp - 3]
or bl, byte [0x4e8ab6]
mov dl, byte [0x4e8ab7]
or bl, bh
push 0xffc3d44d
push 1
push 1
push 0
mov cl, bl
call fcn.0041a940
add esp, 0x10
lea ecx, [ebp - 0x2c]
mov dl, bl
call fcn.0041a3f0
mov esi, dword [ebp - 0x2c]
cmp dword [0x4e8b28], 1
mov eax, 0x5dc
mov ecx, 0x1f4
cmove eax, ecx
cmp dword [0x4e8b14], eax
jbe 0x41816c
push dword [0x4e6704]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, esi
mov dword [0x4e8b28], 0
call fcn.0041a600
jmp 0x418208
cmp dword [0x4e5bc8], 0
je 0x418196
mov cl, byte [0x4e5c56]
mov dl, byte [ebp - 3]
jmp 0x4181bf
cmp dword [0x4e4348], 0
jl 0x4181ba
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4e8820]
cmp eax, dword [0x4e4348]
jb 0x4181ba
mov dl, byte [ebp - 3]
xor cl, cl
jmp 0x4181bf
mov dl, byte [ebp - 3]
mov cl, dl
or cl, byte [0x4e8ab6]
cmp byte [0x4e8b27], 0
je 0x4181e0
mov al, cl
xor al, dl
mov bl, al
and al, cl
and bl, dl
not bl
and bl, bh
or bl, al
jmp 0x4181e9
mov bl, byte [ebp - 6]
not bl
and bl, cl
or bl, bh
push 0xffc3d44d
push 1
push 1
push dword [ebp + 0xc]
xor cl, cl
call fcn.0041af90
mov dl, al
mov cl, bl
call fcn.0041a940
add esp, 0x10
cmp dword [0x4e5bc8], 0
je 0x41822b
mov cl, byte [0x4e5c57]
mov al, cl
xor al, byte [0x4e657c]
and al, cl
not al
and cl, al
mov byte [0x4e5c57], cl
cmp dword [ebp - 0x30], 1
jne 0x4182c7
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x4182c7
push 0x14
call esi
mov ecx, 0x8000
test cx, ax
je 0x41826f
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 1
call fcn.004189c0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 2
call fcn.004189c0
mov ebx, dword [sym.imp.USER32.dll_GetForegroundWindow]
add esp, 0x10
push 0
call ebx
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call esi
cmp eax, dword [0x4e7484]
jne 0x4182d3
mov edx, 1
mov dword [0x4e30f4], 0
or ecx, 0xffffffff
call fcn.00401a20
mov dword [0x4e30f4], 1
jmp 0x4182d3
mov ebx, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp byte [ebp - 0xb], 0
je 0x4182ea
push 0
push dword [ebp - 0x38]
push dword [0x4e7484]
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 0xc], 0
je 0x418339
cmp byte [ebp - 0x1d], 0
jne 0x418339
mov eax, dword [0x4ea1cc]
test al, 1
jne 0x418325
push str.BlockInput
or eax, 1
push str.user32
mov dword [0x4ea1cc], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ea1d0], eax
jmp 0x41832a
mov eax, dword [0x4ea1d0]
test eax, eax
je 0x418332
push 0
call eax
mov byte [0x4e5c22], 0
cmp dword [ebp + 8], 1
jne 0x41836f
push 0
call ebx
push eax
call esi
cmp eax, dword [0x4e7484]
jne 0x41836f
mov edx, 1
mov dword [0x4e30f4], 0
or ecx, 0xffffffff
call fcn.00401a20
mov dword [0x4e30f4], 1
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x68]
mov dword [eax + 0x5c], ecx
mov ecx, dword [ebp - 0x54]
mov dword [eax + 0x64], ecx
lea esp, [ebp - 0xa4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret