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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0
push esi
push edi
je 0x417a02
mov edi, dword [ebp + 0xc]
mov esi, dword [0x4b7a70]
mov eax, dword [0x4bcb08]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x58], eax
test edi, edi
jne 0x4168a3
push 7
push str.Blind
push ebx
call fcn.00493bee
add esp, 0xc
test eax, eax
jne 0x4168a3
add ebx, 7
mov byte [0x4ba3b5], 1
mov dword [ebp + 8], ebx
jmp 0x4168ae
mov byte [0x4ba3b5], 0
test edi, edi
jne 0x4168d2
push 6
push 0x4aa3d8
push ebx
call fcn.00493bee
add esp, 0xc
test eax, eax
jne 0x4168d2
mov dword [ebp + 0xc], 2
mov edi, dword [ebp + 0xc]
add ebx, 6
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x64]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], edx
cmp eax, 1
je 0x4168eb
cmp eax, 3
jne 0x416948
call fcn.00410a60
test al, al
jne 0x41691d
test edi, edi
jne 0x416914
call fcn.00410ad0
test al, al
je 0x416914
push str.Click
mov eax, ebx
call fcn.00480160
add esp, 4
test eax, eax
jne 0x41691d
mov dword [ebp + 0x10], 1
jmp 0x416948
cmp dword [ebp + 0x10], 3
jne 0x41692c
mov dword [ebp + 0x10], 2
jmp 0x416948
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x41693e
cmp dword [esi + 0x64], eax
jge 0x41693e
or eax, 0xffffffff
mov dword [esi + 0x64], eax
mov dword [esi + 0x5c], 0xffffffff
xor ebx, ebx
mov byte [ebp - 0xf], 0
cmp dword [ebp + 0x14], ebx
je 0x4169a4
mov eax, dword [ebp + 0x14]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
mov dword [ebp - 0x4c], edi
test edi, edi
je 0x416ad3
cmp edi, dword [0x4bc4b0]
je 0x416ad3
mov esi, dword [ebp + 0x14]
call fcn.00484ec0
test al, al
jne 0x416ad0
mov ecx, dword [0x4bc4b0]
push 1
push edi
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xf]
mov ebx, edi
jmp 0x416ad0
test byte [0x4bcac5], 0xc0
je 0x416a8b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4bcabc]
cmp eax, 0x32
jae 0x416a8b
cmp dword [ebp + 0x10], 2
je 0x416a8b
cmp byte [0x4ba3b5], bl
jne 0x416a8b
cmp edi, 2
je 0x416a8b
cmp byte [0x4bccb6], bl
je 0x416a8b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4bc4b0]
jne 0x416a8b
mov eax, dword [ebp + 8]
test edi, edi
mov edi, 0x4aa688
je 0x416a60
call fcn.00405520
test eax, eax
setne al
test al, al
je 0x416a8b
xor ebx, ebx
lea edi, [ebx + 1]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call esi
mov edx, 0x8000
test dx, ax
jne 0x416a44
push 0x5c
call esi
mov ecx, 0x8000
test cx, ax
je 0x416a8b
push edi
push 0x8000012f
mov dword [0x4b79dc], ebx
call fcn.004014b0
add esp, 8
mov dword [0x4b79dc], edi
jmp 0x416a22
call fcn.00405520
test eax, eax
je 0x416a8b
inc eax
mov edi, 0x4aa68c
call fcn.00405520
test eax, eax
je 0x416a1d
cmp byte [eax], 0x7b
je 0x416a1d
mov edi, 0x4aa688
call fcn.00405520
test eax, eax
jne 0x416a69
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
test eax, eax
je 0x416ad0
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push ebx
push eax
call esi
lea edx, [ebp - 0xb0]
mov ebx, eax
push edx
push ebx
mov dword [ebp - 0xb0], 0x30
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x416ad0
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x416ad0
push 0
push eax
call esi
mov ebx, eax
mov esi, dword [ebp - 0x2c]
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4ba3dc], eax
push eax
xor eax, eax
call fcn.0041aea0
add esp, 4
push 1
mov dword [0x4ba3d8], eax
call fcn.0041a900
mov bl, al
and byte [0x4bbd0a], bl
add esp, 4
cmp dword [0x4bb5dc], 0
mov byte [ebp - 8], bl
je 0x416b29
mov cl, byte [0x4bb4a9]
mov dl, byte [0x4bb4ab]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 9], cl
jmp 0x416b54
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4bcabc]
cmp eax, dword [0x4b79d4]
jae 0x416b49
mov al, byte [0x4bcac5]
and al, bl
mov byte [ebp - 2], al
jmp 0x416b50
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 9], 0
mov cl, byte [0x4bbcf7]
not al
and al, bl
and cl, al
mov al, byte [0x4ba3b5]
mov byte [0x4bbcf7], cl
test al, al
je 0x416b7b
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 7], bl
jmp 0x416b82
mov byte [ebp - 3], 0
mov byte [ebp - 7], cl
cmp byte [esi + 0xd3], 0
je 0x416ba9
test al, al
jne 0x416ba9
cmp dword [ebp + 0xc], 2
je 0x416ba9
push 2
mov bl, 0x14
call fcn.0041a140
mov bl, byte [ebp - 8]
add esp, 4
mov dword [ebp - 0x48], eax
jmp 0x416bb0
mov dword [ebp - 0x48], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4bbd80], esi
test esi, esi
je 0x416c22
cmp esi, 1
jne 0x416bd3
mov eax, 0x36b0
mov dword [0x4ba3cc], 0x1f4
jmp 0x416be2
mov eax, 0x2ee0
mov dword [0x4ba3cc], 0x5dc
call fcn.0049cca0
mov eax, esp
mov dword [0x4ba3d4], eax
mov eax, connect
mov byte [0x4ba3bd], bl
mov dword [0x4ba3c0], eax
mov dword [0x4ba3c4], eax
mov byte [0x4ba3bc], 0
mov dword [0x4ba3d0], 0
mov byte [0x4ba3b7], 0
mov byte [0x4ba3b6], 1
mov al, byte [0x4bbcc1]
mov byte [ebp - 0x1e], al
mov eax, dword [0x4b7a80]
cmp eax, 8
je 0x416c3d
cmp eax, 0xa
jne 0x416d1b
test esi, esi
jne 0x416d1b
cmp dword [ebp + 0x14], esi
jne 0x416d1b
push 1
mov byte [ebp - 8], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4bbcc1], 1
mov ecx, dword [ebp + 8]
xor bl, bl
mov byte [ebp - 1], bl
cmp byte [ecx], bl
je 0x417646
cmp dword [0x4bbd80], 0
mov esi, dword [ebp + 8]
mov byte [ebp - 0xa], 0
jne 0x416cda
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x4bcb0c]
mov edx, dword [0x4b7a70]
cmp eax, dword [edx + 0xb8]
jbe 0x416cda
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x416cd3
push 1
push 0xffffffffffffffff
mov dword [0x4b79dc], 0
call fcn.004014b0
add esp, 8
mov dword [0x4b79dc], 1
call edi
mov dword [0x4bcb0c], eax
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x41755b
movsx eax, byte [esi]
push eax
push str._
call fcn.004949a1
add esp, 8
test eax, eax
je 0x4175b0
movsx eax, byte [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x416d14.34
movzx ecx, byte [eax + 0x417a2c]
jmp dword [ecx*4 + 0x417a10]
mov byte [ebp - 8], 0
jmp 0x416c61
test byte [ebp - 7], 3
jne case.0x416d14.34
or bl, 1
jmp 0x41762a
test byte [ebp - 7], 0x30
jne case.0x416d14.34
or bl, 0x10
jmp 0x41762a
test byte [ebp - 7], 0xc
jne case.0x416d14.34
or bl, 4
jmp 0x41762a
test byte [ebp - 7], 0xc0
jne case.0x416d14.34
or bl, 0x40
jmp 0x41762a
mov esi, dword [ebp + 8]
inc esi
push 0x7d
push esi
call fcn.004949a1
mov edi, eax
add esp, 8
mov dword [ebp - 0x1c], edi
test edi, edi
je case.0x416d14.34
mov al, byte [esi]
cmp al, 0x20
je 0x416d92
cmp al, 9
jne 0x416d95
inc esi
jmp 0x416d88
mov eax, edi
sub eax, esi
mov dword [ebp - 0x14], esi
mov dword [ebp + 8], esi
mov dword [ebp - 0x28], eax
jne 0x416e1b
mov al, byte [edi + 1]
inc edi
cmp al, 0x7d
jne 0x416db8
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], 1
jmp 0x416e18
cmp al, 0x20
je 0x416dc4
cmp al, 9
jne 0x417550
mov al, byte [edi]
cmp al, 0x20
je 0x416dce
cmp al, 9
jne 0x416dd1
inc edi
jmp 0x416dc4
push 4
push str.Down
push edi
call fcn.00493bee
add esp, 0xc
test eax, eax
je 0x416dfd
push 2
push 0x4a8cd4
push edi
call fcn.00493bee
add esp, 0xc
test eax, eax
jne 0x417550
push 0x7d
push edi
call fcn.004949a1
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je case.0x416d14.34
sub eax, esi
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x1c]
push 5
push 0x4a9b00
push esi
call fcn.00493bee
add esp, 0xc
test eax, eax
jne 0x416ed3
mov byte [edi], al
lea eax, [esi + 5]
mov cl, byte [eax]
cmp cl, 0x20
je 0x416e44
cmp cl, 9
jne 0x416e47
inc eax
jmp 0x416e38
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0xe]
push ecx
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00418b10
mov ecx, dword [ebp - 0x24]
add esp, 0x18
mov byte [edi], 0x7d
cmp ecx, 1
jge 0x416e9e
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax + 0xcf]
mov edx, dword [ebp - 0x34]
push edx
push ecx
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x3c]
call fcn.00419710
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x417628
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x3c]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x18]
push edx
mov edx, dword [ebp - 7]
push 0
push eax
mov eax, dword [ebp - 0xe]
push edx
push 0
push eax
mov al, bl
call fcn.00417ab0
mov eax, dword [ebp - 0x1c]
add esp, 0x24
mov dword [ebp + 8], eax
jmp 0x417628
push 3
push 0x4aa698
push esi
call fcn.00493bee
add esp, 0xc
test eax, eax
jne 0x416ef9
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], eax
jmp 0x417628
push 4
push str.Text
push esi
call fcn.00493bee
add esp, 0xc
test eax, eax
jne 0x416f37
add esi, 4
mov al, byte [esi]
cmp al, 0x20
je 0x416f1a
cmp al, 9
jne 0x416f1d
inc esi
jmp 0x416f10
cmp esi, edi
jne 0x417550
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], eax
jmp 0x417628
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov edi, 0x4aa2bc
mov eax, esi
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x24], 1
mov dword [ebp + 8], ecx
mov byte [edx], 0
call fcn.00405520
mov ebx, eax
test ebx, ebx
je 0x41700c
mov al, byte [ebx]
mov byte [ebp - 0x1d], al
mov eax, ebx
sub eax, esi
mov byte [ebx], 0
mov dword [ebp + 8], eax
lea edi, [ebx + 1]
lea esp, [esp]
mov al, byte [edi]
cmp al, 0x20
je 0x416f8a
cmp al, 9
jne 0x416f8d
inc edi
jmp 0x416f80
mov ecx, dword [ebp - 0x1c]
sub ecx, edi
je 0x41700c
push 4
push str.Down
push edi
call fcn.00493bee
add esp, 0xc
test eax, eax
jne 0x416fe4
push 4
add edi, 4
push str.Temp
push edi
mov dword [ebp - 0x18], eax
call fcn.00493bee
add esp, 0xc
test eax, eax
jne 0x416fc7
mov dword [ebp - 0x38], eax
jmp 0x41700c
xor edx, edx
cmp byte [edi], 0x52
sete dl
push edx
call fcn.0049575e
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp - 0x38], eax
jmp 0x41700c
push 0x4a8cd4
push edi
call fcn.004932c1
add esp, 8
test eax, eax
jne 0x416fff
mov dword [ebp - 0x18], 1
jmp 0x41700c
mov esi, edi
call fcn.004162a0
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0xe]
push eax
mov eax, dword [0x4ba3dc]
lea ecx, [ebp - 1]
lea edi, [ebp - 0x30]
mov edx, esi
call fcn.0041b3d0
add esp, 4
test ebx, ebx
je 0x41702e
mov cl, byte [ebp - 0x1d]
mov byte [ebx], cl
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov eax, 1
mov byte [edx], 0x7d
cmp edi, eax
jl 0x417550
mov bl, byte [ebp - 0xe]
test bl, bl
jne 0x41749a
cmp word [ebp - 0x30], 0
jne 0x41749a
cmp dword [ebp + 8], eax
jne 0x4170bc
cmp dword [ebp - 0x18], eax
je 0x417550
cmp dword [ebp + 0x14], 0
je 0x417099
test edi, edi
jle 0x417550
movsx eax, byte [esi]
mov ecx, dword [ebp + 0x14]
push 0
push eax
push 0x102
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
dec edi
jne 0x417076
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x417628
mov dl, byte [ebp - 1]
or dl, byte [ebp - 7]
movzx ecx, byte [esi]
movzx eax, dl
push eax
push ecx
mov eax, edi
call fcn.00417f10
mov eax, dword [ebp - 0x1c]
add esp, 8
mov dword [ebp + 8], eax
jmp 0x417628
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x14]
lea edx, [ebp - 7]
push edx
lea eax, [ebp - 0x18]
sete bl
push eax
call fcn.0041b480
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x4172fd
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x4170fa
cmp dword [ebp - 0x18], edi
jne 0x4170f5
mov byte [ebp - 0xa], al
jmp 0x4170fa
call fcn.00416470
cmp dword [0x4bbd80], 0
je 0x41710d
mov al, byte [0x4ba3bd]
jmp 0x41724d
cmp dword [0x4bb5dc], 0
je 0x417120
mov al, byte [0x4bb4a9]
jmp 0x41724d
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [ebp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x41713f
mov byte [ebp + 0xb], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x417154
or byte [ebp + 0xb], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x417169
or byte [ebp + 0xb], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x41717e
or byte [ebp + 0xb], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x417193
or byte [ebp + 0xb], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x4171a8
or byte [ebp + 0xb], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x4171ba
or byte [ebp + 0xb], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x4171cc
or byte [ebp + 0xb], 0x80
cmp dword [0x4bb5dc], 0
je 0x417249
mov bl, byte [ebp + 0xb]
not bl
and bl, byte [0x4bb4a9]
cmp byte [0x4bb4ce], 0
je 0x417203
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ba390]
cmp eax, 0x14
jae 0x417203
mov al, byte [0x4bb4ce]
not al
and bl, al
test bl, bl
je 0x417249
mov cl, byte [0x4bb4ab]
mov al, bl
not al
and byte [0x4bb4a9], al
and byte [0x4bb4aa], al
and cl, al
mov al, cl
mov byte [0x4bb4ab], cl
mov ecx, 0x4bb4d0
call fcn.0041aa60
mov eax, dword [0x4ba3b0]
test eax, eax
je 0x417249
test byte [eax + 8], bl
je 0x417249
mov dword [0x4ba3b0], 0
movzx eax, byte [ebp + 0xb]
mov ecx, dword [ebp - 7]
push 0
push 0
push edi
push eax
push ecx
mov esi, 0xffc3d44d
call fcn.0041a250
mov eax, dword [ebp - 0x24]
add esp, 0x14
test eax, eax
jle 0x417550
mov esi, dword [ebp - 0xe]
mov ebx, eax
mov edx, dword [ebp - 0x18]
push 0xffc3d44d
push 1
push edi
push 0
push esi
push edx
call fcn.00418480
add esp, 0x18
cmp dword [0x4bbd80], 0
jne 0x4172ef
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4bcb0c]
mov ecx, dword [0x4b7a70]
cmp eax, dword [ecx + 0xb8]
jbe 0x4172ef
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x80]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4172e4
push 1
push 0xffffffffffffffff
mov dword [0x4b79dc], 0
call fcn.004014b0
add esp, 8
mov dword [0x4b79dc], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4bcb0c], eax
dec ebx
jne 0x417274
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x417628
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
cmp edi, 4
jbe 0x41737a
push 4
push str.ASC
push esi
call fcn.00493bee
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x41737d
test ebx, ebx
jne 0x41737d
lea edi, [esi + 3]
mov al, byte [edi]
cmp al, 0x20
je 0x417330
cmp al, 9
jne 0x417333
inc edi
jmp 0x417326
call fcn.00418040
cmp dword [0x4bbd80], 2
jne 0x41735d
mov eax, dword [0x4b7a70]
mov eax, dword [eax + 0x60]
push eax
call fcn.00419e80
mov eax, dword [ebp - 0x1c]
add esp, 4
mov dword [ebp + 8], eax
jmp 0x417628
mov ecx, dword [0x4b7a70]
mov eax, dword [ecx + 0x5c]
push eax
call fcn.00419e80
mov eax, dword [ebp - 0x1c]
add esp, 4
mov dword [ebp + 8], eax
jmp 0x417628
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x417550
push 2
push 0x4aa6ac
push esi
call fcn.00493bee
add esp, 0xc
test eax, eax
jne 0x417550
push 0x10
push eax
add esi, 2
push esi
call fcn.004947dc
add esp, 0xc
cmp eax, 0x10000
jb 0x4173e0
sub eax, 0x10000
mov edx, eax
shr edx, 0xa
and edx, 0x3ff
mov ecx, eax
sub edx, 0x2800
and ecx, 0x3ff
sub ecx, 0x2400
movzx edi, dx
movzx esi, cx
jmp 0x4173e5
movzx edi, ax
xor esi, esi
test ebx, ebx
je 0x417412
movzx edx, di
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push edx
push 0x102
push ebx
call edi
test si, si
je 0x417458
push 0
movzx eax, si
push eax
push 0x102
push ebx
call edi
jmp 0x417458
cmp dword [0x4bbd80], 2
je 0x41743d
movzx ebx, byte [ebp - 1]
or bl, byte [ebp - 7]
push ebx
call fcn.004164f0
add esp, 4
test si, si
je 0x417458
push ebx
mov edi, esi
call fcn.004164f0
add esp, 4
jmp 0x417458
push 0xa
lea ecx, [ebp - 0x5f]
push ecx
push eax
mov byte [ebp - 0x60], 0x30
call fcn.00492f52
add esp, 0xc
lea edi, [ebp - 0x60]
call fcn.00418040
cmp dword [0x4bbd80], 2
jne 0x41747e
mov edx, dword [0x4b7a70]
mov eax, dword [edx + 0x60]
push eax
call fcn.00419e80
mov eax, dword [ebp - 0x1c]
add esp, 4
mov dword [ebp + 8], eax
jmp 0x417628
mov eax, dword [0x4b7a70]
mov eax, dword [eax + 0x5c]
push eax
call fcn.00419e80
mov eax, dword [ebp - 0x1c]
add esp, 4
mov dword [ebp + 8], eax
jmp 0x417628
mov esi, dword [ebp - 0x30]
xor ecx, ecx
mov edx, esi
mov al, bl
call fcn.0041ab30
mov byte [ebp - 0x40], al
test al, al
je 0x417522
cmp dword [ebp + 0x14], 0
jne 0x417522
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x4174e2
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 0xa], bl
cmp ecx, 1
jne 0x4174d2
or byte [0x4bbcf7], al
or byte [ebp - 7], al
jmp 0x417522
cmp ecx, 2
jne 0x4174dd
or byte [0x4bbd0a], al
or byte [ebp - 7], al
jmp 0x417522
cmp ecx, 1
jne 0x417522
mov al, bl
call fcn.00416470
mov al, byte [ebp - 0x40]
mov cl, byte [0x4bbcf7]
not al
and byte [0x4bbd0a], al
and byte [ebp - 3], al
and cl, al
mov byte [0x4bbcf7], cl
cmp bl, 0xa5
jne 0x41751c
cmp dword [0x4ba3d8], 3
jne 0x41751c
and byte [ebp - 3], 0xfe
or cl, byte [ebp - 3]
mov byte [ebp - 7], cl
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x18]
push 0
push connect
push connect
push ecx
mov ecx, dword [ebp - 7]
push edx
mov edx, dword [ebp - 0xe]
push eax
mov al, byte [ebp - 1]
push ecx
push esi
push edx
mov ecx, edi
call fcn.00417ab0
add esp, 0x24
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x417628
cmp edi, 2
jne 0x4175b0
movsx eax, byte [esi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x41756b.11
jmp dword [eax*4 + 0x417a8c]
cmp byte [esi + 1], 0xa
jne case.0x41756b.10
inc esi
mov dword [ebp + 8], esi
mov byte [ebp - 0xe], 0xd
jmp 0x4175e1
mov byte [ebp - 0xe], 8
jmp 0x4175e1
mov byte [ebp - 0xe], 9
jmp 0x4175e1
mov byte [ebp - 0xe], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x417610
movsx edx, byte [ecx]
push 0
push edx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x417628
or bl, byte [ebp - 7]
je 0x4175bd
test edi, edi
jne 0x4175bd
mov al, 1
jmp 0x4175bf
xor al, al
mov ecx, dword [0x4ba3dc]
mov edx, dword [ebp + 8]
mov bl, byte [edx]
push eax
push ecx
lea edi, [ebp - 1]
call fcn.0041b310
mov bl, byte [ebp - 1]
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x417592
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 7]
mov edx, dword [ebp - 0xe]
push 0
push connect
push connect
push eax
push 0
push 2
push ecx
push 0
push edx
mov ecx, 1
mov al, bl
call fcn.00417ab0
add esp, 0x24
jmp 0x417628
or bl, byte [ebp - 7]
movzx edx, byte [ecx]
movzx eax, bl
push eax
push edx
mov eax, 1
call fcn.00417f10
add esp, 8
xor bl, bl
mov byte [ebp - 1], bl
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0xa]
inc eax
cmp byte [eax], 0
mov dword [ebp + 8], eax
mov byte [0x4bbcf6], cl
jne 0x416c71
mov eax, dword [0x4bbd80]
test eax, eax
je 0x417703
cmp byte [0x4ba3b7], 0
mov dword [ebp + 8], 0xffffffff
jne 0x4176c2
cmp dword [0x4ba3d0], 0
jbe 0x4176c2
cmp byte [0x4ba3b5], 0
je 0x417679
xor eax, eax
jmp 0x417685
movzx eax, byte [ebp - 9]
movzx edx, byte [ebp - 2]
not eax
and eax, edx
or al, byte [0x4bbd0a]
push 1
or al, byte [ebp - 7]
push 1
mov byte [ebp - 0x14], al
movzx eax, byte [0x4ba3bd]
mov edi, dword [ebp - 0x14]
push 0
push eax
push edi
mov esi, 0xffc3d44d
call fcn.0041a250
add esp, 0x14
lea ecx, [ebp + 8]
push edi
push ecx
call fcn.00419d30
mov eax, dword [0x4bbd80]
add esp, 8
dec eax
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4ba3cc], eax
jbe 0x4176e8
mov edx, dword [0x4ba3d4]
push edx
call fcn.004932d8
add esp, 4
mov eax, dword [ebp + 8]
push eax
mov dword [0x4bbd80], 0
call fcn.00419e80
add esp, 4
jmp 0x4178cf
cmp dword [0x4bb5dc], 0
je 0x417714
mov cl, byte [0x4bb4ab]
jmp 0x417738
cmp dword [0x4b79d4], 0
jl 0x417735
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4bcabc]
cmp eax, dword [0x4b79d4]
jb 0x417735
xor cl, cl
jmp 0x417738
mov cl, byte [ebp - 2]
or cl, byte [0x4bbd0a]
cmp byte [0x4ba3b5], 0
je 0x417760
mov dl, byte [ebp - 2]
mov al, cl
xor al, dl
mov bl, al
and bl, dl
not bl
and bl, byte [ebp - 7]
and al, cl
or bl, al
mov byte [ebp - 0x14], bl
jmp 0x41776d
mov al, byte [ebp - 9]
not al
and al, cl
or al, byte [ebp - 7]
mov byte [ebp - 0x14], al
cmp dword [0x4bb5dc], 0
je 0x417780
mov al, byte [0x4bb4a9]
jmp 0x4178ac
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [ebp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x41779f
mov byte [ebp + 0xb], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x4177b4
or byte [ebp + 0xb], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x4177c9
or byte [ebp + 0xb], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x4177de
or byte [ebp + 0xb], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x4177f3
or byte [ebp + 0xb], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x417808
or byte [ebp + 0xb], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x41781a
or byte [ebp + 0xb], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x41782c
or byte [ebp + 0xb], 0x80
cmp dword [0x4bb5dc], 0
je 0x4178a9
mov bl, byte [ebp + 0xb]
not bl
and bl, byte [0x4bb4a9]
cmp byte [0x4bb4ce], 0
je 0x417863
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ba390]
cmp eax, 0x14
jae 0x417863
mov al, byte [0x4bb4ce]
not al
and bl, al
test bl, bl
je 0x4178a9
mov cl, byte [0x4bb4ab]
mov al, bl
not al
and byte [0x4bb4a9], al
and byte [0x4bb4aa], al
and cl, al
mov al, cl
mov byte [0x4bb4ab], cl
mov ecx, 0x4bb4d0
call fcn.0041aa60
mov eax, dword [0x4ba3b0]
test eax, eax
je 0x4178a9
test byte [eax + 8], bl
je 0x4178a9
mov dword [0x4ba3b0], 0
mov al, byte [ebp + 0xb]
or al, byte [0x4bb4cc]
mov ecx, dword [ebp + 0x14]
push 1
push 1
movzx edx, al
mov eax, dword [ebp - 0x14]
push ecx
push edx
push eax
mov esi, 0xffc3d44d
call fcn.0041a250
add esp, 0x14
xor edi, edi
cmp dword [0x4bb5dc], edi
je 0x4178f1
mov al, byte [0x4bb4aa]
mov cl, al
xor cl, byte [0x4bb4a9]
and cl, al
not cl
and al, cl
mov byte [0x4bb4aa], al
mov ebx, 1
cmp dword [ebp - 0x48], ebx
jne 0x41796b
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test bl, al
jne 0x41796b
push 0x14
call esi
mov edx, 0x8000
test dx, ax
je 0x41792a
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push ebx
call fcn.00418480
add esp, 0x18
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.00418480
add esp, 0x18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4bc4b0]
jne 0x41796b
push ebx
push 0xffffffffffffffff
mov dword [0x4b79dc], edi
call fcn.004014b0
add esp, 8
mov dword [0x4b79dc], ebx
cmp byte [ebp - 0xf], 0
je 0x417983
mov eax, dword [ebp - 0x4c]
mov ecx, dword [0x4bc4b0]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 8], 0
je 0x41799d
cmp byte [ebp - 0x1e], 0
jne 0x41799d
push edi
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4bbcc1], 0
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x4179c2
mov edx, dword [ebp - 0x58]
cmp dword [0x4bcb08], edx
je 0x4179f3
call fcn.00403b90
test eax, eax
je 0x4179f3
push ebx
push 0xffffffffffffffff
call fcn.004014b0
jmp 0x4179f0
cmp eax, ebx
jne 0x4179f3
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4bc4b0]
jne 0x4179f3
push ebx
push 0xffffffffffffffff
mov dword [0x4b79dc], edi
call fcn.004014b0
mov dword [0x4b79dc], ebx
add esp, 8
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x54]
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x64], edx
lea esp, [ebp - 0xc0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret