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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0
je 0x415ad0
mov ebx, dword [ebp + 0xc]
mov esi, dword [0x4d5b14]
mov eax, dword [0x4db1c8]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x5c], eax
test ebx, ebx
jne 0x414974
push 7
push str.Blind
push edi
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne 0x414974
add edi, 0xe
mov byte [0x4d85ab], 1
mov dword [ebp + 8], edi
jmp 0x41497f
mov byte [0x4d85ab], 0
test ebx, ebx
jne 0x4149a3
push 6
push str.Text
push edi
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne 0x4149a3
mov dword [ebp + 0xc], 2
mov ebx, dword [ebp + 0xc]
add edi, 0xc
mov dword [ebp + 8], edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x64]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edx
cmp eax, 1
je 0x4149bc
cmp eax, 3
jne 0x414a16
call fcn.0040e700
test al, al
jne 0x4149eb
test ebx, ebx
jne 0x4149e2
call fcn.0040e770
test al, al
je 0x4149e2
mov eax, str.Click
mov ecx, edi
call fcn.0047fb20
test eax, eax
jne 0x4149eb
mov dword [ebp + 0x10], 1
jmp 0x414a16
cmp dword [ebp + 0x10], 3
jne 0x4149fa
mov dword [ebp + 0x10], 2
jmp 0x414a16
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x414a0c
cmp dword [esi + 0x64], eax
jge 0x414a0c
or eax, 0xffffffff
mov dword [esi + 0x64], eax
mov dword [esi + 0x5c], 0xffffffff
xor edi, edi
mov byte [ebp - 0xf], 0
cmp dword [ebp + 0x14], edi
je 0x414ac5
mov eax, dword [ebp + 0x14]
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov dword [ebp - 0x60], ebx
test ebx, ebx
je 0x414a68
cmp ebx, dword [0x4da6a8]
je 0x414a68
mov esi, dword [ebp + 0x14]
call fcn.00484a50
test al, al
jne 0x414a65
mov ecx, dword [0x4da6a8]
push 1
push ebx
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xf]
mov edi, ebx
mov esi, dword [ebp - 0x28]
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4d85d0], eax
push eax
xor eax, eax
call fcn.00419040
add esp, 4
push 1
mov dword [0x4d85cc], eax
call fcn.00418970
mov bl, al
and byte [0x4d9f21], bl
add esp, 4
cmp dword [0x4d97d0], 0
mov byte [ebp - 8], bl
je 0x414c1b
mov cl, byte [0x4d969d]
mov dl, byte [0x4d969f]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 0xa], cl
jmp 0x414c46
test byte [0x4db186], 0xc0
je 0x414bc5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4db17c]
cmp eax, 0x32
jae 0x414bc5
cmp dword [ebp + 0x10], 2
je 0x414bc5
cmp byte [0x4d85ab], 0
jne 0x414bc5
cmp ebx, 2
je 0x414bc5
cmp byte [0x4db396], 0
je 0x414bc5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4da6a8]
jne 0x414bc5
mov eax, dword [ebp + 8]
test ebx, ebx
mov ebx, 0x4b41d8
je 0x414b8b
call fcn.004054ea
test eax, eax
setne al
test al, al
je 0x414bc5
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call edi
mov edx, 0x8000
test dx, ax
jne 0x414b66
push 0x5c
call edi
mov ecx, 0x8000
test cx, ax
je 0x414bc5
push 1
push 0x8000012f
mov dword [0x4d5a1c], 0
call fcn.004014c0
add esp, 8
mov dword [0x4d5a1c], 1
jmp 0x414b44
call fcn.004054ea
test eax, eax
je 0x414bc5
jmp 0x414ba0
add eax, 2
mov ebx, 0x4b41e0
call fcn.004054ea
test eax, eax
je 0x414b44
cmp word [eax], 0x7b
je 0x414b44
mov ebx, 0x4b41d8
call fcn.004054ea
test eax, eax
jne 0x414ba0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
test eax, eax
je 0x414a68
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push edi
push eax
call ebx
lea edx, [ebp - 0xc0]
mov edi, eax
push edx
push edi
mov dword [ebp - 0xc0], 0x30
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x414a68
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x414a68
push 0
push eax
call ebx
mov edi, eax
jmp 0x414a68
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4db17c]
cmp eax, dword [0x4d5a14]
jae 0x414c3b
mov al, byte [0x4db186]
and al, bl
mov byte [ebp - 2], al
jmp 0x414c42
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4d9f20]
not al
and al, bl
and cl, al
mov al, byte [0x4d85ab]
mov byte [0x4d9f20], cl
test al, al
je 0x414c6d
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 7], bl
jmp 0x414c74
mov byte [ebp - 3], 0
mov byte [ebp - 7], cl
cmp byte [esi + 0xf3], 0
je 0x414c9b
test al, al
jne 0x414c9b
cmp dword [ebp + 0xc], 2
je 0x414c9b
push 2
mov bl, 0x14
call fcn.004181b0
mov bl, byte [ebp - 8]
add esp, 4
mov dword [ebp - 0x44], eax
jmp 0x414ca2
mov dword [ebp - 0x44], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4d9f78], esi
test esi, esi
je 0x414d14
cmp esi, 1
jne 0x414cc5
mov eax, 0x36b0
mov dword [0x4d85c0], 0x1f4
jmp 0x414cd4
mov eax, 0x2ee0
mov dword [0x4d85c0], 0x5dc
call fcn.004a2a60
mov eax, esp
mov dword [0x4d85c8], eax
mov eax, connect
mov byte [0x4d85b3], bl
mov dword [0x4d85b4], eax
mov dword [0x4d85b8], eax
mov byte [0x4d85b2], 0
mov dword [0x4d85c4], 0
mov byte [0x4d85b1], 0
mov byte [0x4d85b0], 1
mov al, byte [0x4d9eb4]
mov byte [ebp - 0x19], al
mov eax, dword [0x4d5b24]
cmp eax, 8
je 0x414d2f
cmp eax, 0xa
jne 0x414e1d
test esi, esi
jne 0x414e1d
cmp dword [ebp + 0x14], esi
jne 0x414e1d
push 1
mov byte [ebp - 8], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4d9eb4], 1
mov ecx, dword [ebp + 8]
cmp word [ecx], 0
mov byte [ebp - 1], 0
je 0x41573d
jmp 0x414d70
cmp dword [0x4d9f78], 0
mov byte [ebp - 9], 0
jne 0x414dd9
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4db1cc]
mov edx, dword [0x4d5b14]
cmp eax, dword [edx + 0xd8]
jbe 0x414dd9
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x414dd2
push 1
push 0xffffffffffffffff
mov dword [0x4d5a1c], 0
call fcn.004014c0
add esp, 8
mov dword [0x4d5a1c], 1
call esi
mov dword [0x4db1cc], eax
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x41563c
mov esi, dword [ebp + 8]
movzx ecx, word [esi]
push ecx
push 0x4b41e8
call fcn.0049a399
add esp, 8
test eax, eax
je 0x4156a1
movzx eax, word [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x414e16.34
movzx edx, byte [eax + 0x415afc]
jmp dword [edx*4 + 0x415ae0]
mov byte [ebp - 8], 0
jmp 0x414d53
test byte [ebp - 7], 3
jne case.0x414e16.34
or byte [ebp - 1], 1
jmp case.0x414e16.34
test byte [ebp - 7], 0x30
jne case.0x414e16.34
or byte [ebp - 1], 0x10
jmp case.0x414e16.34
test byte [ebp - 7], 0xc
jne case.0x414e16.34
or byte [ebp - 1], 4
jmp case.0x414e16.34
test byte [ebp - 7], 0xc0
jne case.0x414e16.34
or byte [ebp - 1], 0x40
jmp case.0x414e16.34
mov esi, dword [ebp + 8]
add esi, 2
push 0x7d
push esi
call fcn.0049a399
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
test edi, edi
je case.0x414e16.34
mov eax, esi
call fcn.0040eef0
mov esi, eax
mov ebx, edi
sub ebx, esi
sar ebx, 1
mov dword [ebp + 8], esi
mov dword [ebp - 0x20], ebx
jne 0x414f2d
movzx eax, word [edi + 2]
add edi, 2
cmp eax, 0x7d
jne 0x414ec3
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 1
jmp 0x414f27
cmp eax, 0x20
je 0x414ed1
cmp eax, 9
jne 0x415631
mov eax, edi
call fcn.0040eef0
push 4
mov esi, eax
push str.Down
push esi
call fcn.00499b8a
add esp, 0xc
test eax, eax
je 0x414f06
push 2
push 0x4b11c0
push esi
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne 0x415631
push 0x7d
push esi
call fcn.0049a399
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
je case.0x414e16.34
sub eax, dword [ebp + 8]
mov esi, dword [ebp + 8]
sar eax, 1
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
push 5
push 0x4b2c04
push esi
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne 0x414fd1
lea ecx, [ebp - 0x40]
push ecx
mov word [edi], ax
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xe]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [esi + 0xa]
call fcn.0040eef0
call fcn.00416b50
mov ecx, 0x7d
mov word [edi], cx
mov ecx, dword [ebp - 0x14]
add esp, 0x18
cmp ecx, 1
jge 0x414fac
mov eax, dword [ebp - 0x28]
movzx ecx, byte [eax + 0xef]
mov edx, dword [ebp - 0x40]
push edx
push ecx
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x38]
call fcn.00417750
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x41571d
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x38]
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
jmp 0x415626
push 3
push 0x4b41f8
push esi
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne 0x414ff7
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], eax
jmp 0x41571d
push 4
push 0x4b4148
push esi
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne 0x41502d
lea eax, [esi + 8]
call fcn.0040eef0
cmp eax, edi
jne 0x415631
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], eax
jmp 0x41571d
mov eax, dword [ebp + 8]
xor ecx, ecx
mov esi, 1
mov dword [ebp - 0x30], ebx
mov ebx, 0x4b3b04
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x14], esi
mov word [edi], cx
call fcn.004054ea
mov ebx, eax
test ebx, ebx
je 0x4150f7
movzx edx, word [ebx]
xor eax, eax
mov word [ebx], ax
mov eax, ebx
sub eax, dword [ebp + 8]
mov dword [ebp - 0x58], edx
sar eax, 1
mov dword [ebp - 0x30], eax
lea eax, [ebx + 2]
call fcn.0040eef0
sub edi, eax
sar edi, 1
mov dword [ebp - 0x54], eax
je 0x4150f7
push 4
mov edi, eax
push str.Down
push edi
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne 0x4150d4
push 4
add edi, 8
push str.Temp
push edi
mov dword [ebp - 0x18], eax
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne 0x4150b6
mov dword [ebp - 0x34], eax
jmp 0x4150f7
xor ecx, ecx
cmp word [edi], 0x52
sete cl
push ecx
call fcn.0049bb77
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp - 0x34], eax
jmp 0x4150f7
push 0x4b11c0
push edi
call fcn.00499409
add esp, 8
test eax, eax
jne 0x4150eb
mov dword [ebp - 0x18], esi
jmp 0x4150f7
mov esi, edi
call fcn.00414390
mov dword [ebp - 0x14], eax
mov esi, eax
mov eax, dword [0x4d85d0]
lea edx, [ebp - 0xe]
push edx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 1]
lea edi, [ebp - 0x48]
call fcn.004195c0
add esp, 4
test ebx, ebx
je 0x41511c
mov ax, word [ebp - 0x58]
mov word [ebx], ax
mov edx, dword [ebp - 0x24]
mov ecx, 0x7d
mov word [edx], cx
cmp esi, 1
jl 0x415631
mov bl, byte [ebp - 0xe]
mov edi, dword [ebp - 0x48]
test bl, bl
jne 0x41557e
test di, di
jne 0x41557e
mov eax, 1
cmp dword [ebp - 0x30], eax
jne 0x4151b8
cmp dword [ebp - 0x18], eax
je 0x415631
cmp dword [ebp + 0x14], 0
je 0x415193
test esi, esi
jle 0x415631
mov edi, dword [ebp + 8]
jmp 0x415170
movzx eax, word [edi]
mov ecx, dword [ebp + 0x14]
push 0
push eax
push 0x102
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
dec esi
jne 0x415170
mov eax, dword [ebp - 0x24]
mov dword [ebp + 8], eax
jmp 0x41571d
mov dl, byte [ebp - 1]
or dl, byte [ebp - 7]
mov ecx, esi
movzx eax, dl
mov edx, dword [ebp + 8]
push eax
mov ax, word [edx]
call fcn.00415f90
mov eax, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], eax
jmp 0x41571d
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
lea eax, [ebp - 7]
push eax
lea ecx, [ebp - 0x18]
sete bl
push ecx
call fcn.00419670
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x4153e1
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x4151f6
cmp dword [ebp - 0x18], edi
jne 0x4151f1
mov byte [ebp - 9], al
jmp 0x4151f6
call fcn.00414560
cmp dword [0x4d9f78], 0
je 0x415209
mov al, byte [0x4d85b3]
jmp 0x415324
cmp dword [0x4d97d0], 0
je 0x41521c
mov al, byte [0x4d969d]
jmp 0x415324
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [ebp + 0xb], 0
call esi
mov edx, 0x8000
test dx, ax
je 0x41523b
mov byte [ebp + 0xb], 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x415250
or byte [ebp + 0xb], 0x20
push 0xa2
call esi
mov edx, 0x8000
test dx, ax
je 0x415265
or byte [ebp + 0xb], 1
push 0xa3
call esi
mov ecx, 0x8000
test cx, ax
je 0x41527a
or byte [ebp + 0xb], 2
push 0xa4
call esi
mov edx, 0x8000
test dx, ax
je 0x41528f
or byte [ebp + 0xb], 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x4152a4
or byte [ebp + 0xb], 8
push 0x5b
call esi
mov edx, 0x8000
test dx, ax
je 0x4152b6
or byte [ebp + 0xb], 0x40
push 0x5c
call esi
mov ecx, 0x8000
test cx, ax
je 0x4152c8
or byte [ebp + 0xb], 0x80
cmp dword [0x4d97d0], 0
je 0x415320
mov bl, byte [ebp + 0xb]
not bl
and bl, byte [0x4d969d]
je 0x415320
mov cl, byte [0x4d969f]
mov al, bl
not al
and byte [0x4d969d], al
and byte [0x4d969e], al
and cl, al
mov al, cl
mov byte [0x4d969f], cl
mov ecx, 0x4d96c8
call fcn.00418aa0
mov eax, dword [0x4d85a4]
test eax, eax
je 0x415320
test byte [eax + 8], bl
je 0x415320
mov dword [0x4d85a4], 0
movzx eax, byte [ebp + 0xb]
mov edx, dword [ebp - 7]
push 0
push 0
push edi
push eax
push edx
mov esi, 0xffc3d44d
call fcn.004182c0
mov eax, dword [ebp - 0x14]
add esp, 0x14
test eax, eax
jle 0x415631
mov ebx, dword [ebp - 0xe]
mov edi, eax
jmp 0x415350
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
push 0xffc3d44d
push 1
push eax
push 0
push ebx
push ecx
call fcn.004164c0
add esp, 0x18
cmp dword [0x4d9f78], 0
jne 0x4153cf
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4db1cc]
mov edx, dword [0x4d5b14]
cmp eax, dword [edx + 0xd8]
jbe 0x4153cf
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4153c8
push 1
push 0xffffffffffffffff
mov dword [0x4d5a1c], 0
call fcn.004014c0
add esp, 8
mov dword [0x4d5a1c], 1
call esi
mov dword [0x4db1cc], eax
dec edi
jne 0x415350
mov eax, dword [ebp - 0x24]
mov dword [ebp + 8], eax
jmp 0x41571d
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
cmp edi, 4
jbe 0x415459
push 4
push str.ASC
push esi
call fcn.00499b8a
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x41545c
test ebx, ebx
jne 0x41545c
lea eax, [esi + 6]
call fcn.0040eef0
mov edi, eax
call fcn.004160a0
cmp dword [0x4d9f78], 2
jne 0x41543c
mov ecx, dword [0x4d5b14]
mov eax, dword [ecx + 0x60]
push eax
call fcn.00417ec0
mov eax, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], eax
jmp 0x41571d
mov edx, dword [0x4d5b14]
mov eax, dword [edx + 0x5c]
push eax
call fcn.00417ec0
mov eax, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], eax
jmp 0x41571d
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x415631
push 2
push 0x4b4218
push esi
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne 0x415631
push 0x10
push eax
add esi, 4
push esi
call fcn.0049ba2d
add esp, 0xc
cmp eax, 0x10000
jb 0x4154bf
sub eax, 0x10000
mov ecx, eax
shr ecx, 0xa
and ecx, 0x3ff
mov edx, eax
sub ecx, 0x2800
and edx, 0x3ff
sub edx, 0x2400
movzx edi, cx
movzx esi, dx
jmp 0x4154c4
movzx edi, ax
xor esi, esi
test ebx, ebx
je 0x4154f1
movzx eax, di
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push eax
push 0x102
push ebx
call edi
test si, si
je 0x41553c
push 0
movzx ecx, si
push ecx
push 0x102
push ebx
call edi
jmp 0x41553c
cmp dword [0x4d9f78], 2
je 0x41551c
movzx ebx, byte [ebp - 1]
or bl, byte [ebp - 7]
push ebx
call fcn.004145e0
add esp, 4
test si, si
je 0x41553c
push ebx
mov edi, esi
call fcn.004145e0
add esp, 4
jmp 0x41553c
push 0xa
lea ecx, [ebp - 0x72]
push ecx
mov edx, 0x30
push eax
mov word [ebp - 0x74], dx
call fcn.00499185
add esp, 0xc
lea edi, [ebp - 0x74]
call fcn.004160a0
cmp dword [0x4d9f78], 2
jne 0x415562
mov edx, dword [0x4d5b14]
mov eax, dword [edx + 0x60]
push eax
call fcn.00417ec0
mov eax, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], eax
jmp 0x41571d
mov eax, dword [0x4d5b14]
mov eax, dword [eax + 0x5c]
push eax
call fcn.00417ec0
mov eax, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], eax
jmp 0x41571d
xor ecx, ecx
mov edx, edi
mov al, bl
call fcn.00418b70
mov byte [ebp - 0x3c], al
test al, al
je 0x415603
cmp dword [ebp + 0x14], 0
jne 0x415603
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x4155c3
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 9], bl
cmp ecx, 1
jne 0x4155b3
or byte [0x4d9f20], al
or byte [ebp - 7], al
jmp 0x415603
cmp ecx, 2
jne 0x4155be
or byte [0x4d9f21], al
or byte [ebp - 7], al
jmp 0x415603
cmp ecx, 1
jne 0x415603
mov al, bl
call fcn.00414560
mov al, byte [ebp - 0x3c]
mov cl, byte [0x4d9f20]
not al
and byte [0x4d9f21], al
and byte [ebp - 3], al
and cl, al
mov byte [0x4d9f20], cl
cmp bl, 0xa5
jne 0x4155fd
cmp dword [0x4d85cc], 3
jne 0x4155fd
and byte [ebp - 3], 0xfe
or cl, byte [ebp - 3]
mov byte [ebp - 7], cl
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x3c]
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
push ecx
push edi
push edx
mov ecx, esi
mov al, byte [ebp - 1]
call fcn.00415b80
add esp, 0x24
mov eax, dword [ebp - 0x24]
mov dword [ebp + 8], eax
jmp 0x41571d
cmp edi, 2
jne 0x4156a1
mov ecx, dword [ebp + 8]
movzx eax, word [ecx]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x41564f.11
jmp dword [eax*4 + 0x415b5c]
cmp word [ecx + 2], 0xa
jne case.0x41564f.10
add ecx, 2
mov dword [ebp + 8], ecx
mov byte [ebp - 0xe], 0xd
jmp 0x4156d3
mov byte [ebp - 0xe], 8
jmp 0x4156d3
mov byte [ebp - 0xe], 9
jmp 0x4156d3
mov byte [ebp - 0xe], 0
mov ecx, dword [ebp + 0x14]
mov al, byte [ebp - 1]
test ecx, ecx
je 0x415703
mov eax, dword [ebp + 8]
movzx edx, word [eax]
push 0
push edx
push 0x102
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x41571d
mov al, byte [ebp - 1]
or al, byte [ebp - 7]
je 0x4156b1
test edi, edi
jne 0x4156b1
mov al, 1
jmp 0x4156b3
xor al, al
mov ecx, dword [0x4d85d0]
mov edx, dword [ebp + 8]
mov si, word [edx]
push eax
push ecx
lea edi, [ebp - 1]
call fcn.00419500
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x415679
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 7]
mov edx, dword [ebp - 0xe]
push 0
push connect
push connect
push eax
mov al, byte [ebp - 1]
push 0
push 2
push ecx
push 0
push edx
mov ecx, 1
call fcn.00415b80
add esp, 0x24
jmp 0x41571d
or al, byte [ebp - 7]
mov edx, dword [ebp + 8]
movzx eax, al
push eax
mov ax, word [edx]
mov ecx, 1
call fcn.00415f90
add esp, 4
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 9]
add eax, 2
cmp word [eax], 0
mov dword [ebp + 8], eax
mov byte [0x4d9efb], cl
jne 0x414d70
xor edi, edi
cmp dword [0x4d9f78], edi
je 0x4157fe
cmp byte [0x4d85b1], 0
mov dword [ebp + 8], 0xffffffff
jne 0x4157b6
cmp dword [0x4d85c4], edi
jbe 0x4157b6
cmp byte [0x4d85ab], 0
je 0x415770
xor eax, eax
jmp 0x41577c
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 2]
not eax
and eax, edx
or al, byte [0x4d9f21]
push 1
or al, byte [ebp - 7]
push 1
mov byte [ebp - 0x14], al
movzx eax, byte [0x4d85b3]
mov edi, dword [ebp - 0x14]
push 0
push eax
push edi
mov esi, 0xffc3d44d
call fcn.004182c0
add esp, 0x14
lea ecx, [ebp + 8]
push edi
push ecx
call fcn.00417d70
add esp, 8
xor edi, edi
mov eax, dword [0x4d9f78]
mov ebx, 1
sub eax, ebx
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4d85c0], eax
jbe 0x4157e7
mov edx, dword [0x4d85c8]
push edx
call fcn.0049996d
add esp, 4
mov eax, dword [ebp + 8]
push eax
mov dword [0x4d9f78], edi
call fcn.00417ec0
add esp, 4
jmp 0x4159a4
cmp dword [0x4d97d0], edi
je 0x41580e
mov cl, byte [0x4d969f]
jmp 0x415831
cmp dword [0x4d5a14], edi
jl 0x41582e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4db17c]
cmp eax, dword [0x4d5a14]
jb 0x41582e
xor cl, cl
jmp 0x415831
mov cl, byte [ebp - 2]
or cl, byte [0x4d9f21]
cmp byte [0x4d85ab], 0
je 0x415859
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 0x415866
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 7]
mov byte [ebp - 0x14], al
cmp dword [0x4d97d0], edi
je 0x415878
mov al, byte [0x4d969d]
jmp 0x41597a
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [ebp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x415897
mov byte [ebp + 0xb], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x4158ac
or byte [ebp + 0xb], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x4158c1
or byte [ebp + 0xb], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x4158d6
or byte [ebp + 0xb], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x4158eb
or byte [ebp + 0xb], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x415900
or byte [ebp + 0xb], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x415912
or byte [ebp + 0xb], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x415924
or byte [ebp + 0xb], 0x80
cmp dword [0x4d97d0], edi
je 0x415977
mov bl, byte [ebp + 0xb]
not bl
and bl, byte [0x4d969d]
je 0x415977
mov cl, byte [0x4d969f]
mov al, bl
not al
and byte [0x4d969d], al
and byte [0x4d969e], al
and cl, al
mov al, cl
mov byte [0x4d969f], cl
mov ecx, 0x4d96c8
call fcn.00418aa0
mov eax, dword [0x4d85a4]
cmp eax, edi
je 0x415977
test byte [eax + 8], bl
je 0x415977
mov dword [0x4d85a4], edi
mov al, byte [ebp + 0xb]
or al, byte [0x4d96c0]
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.004182c0
add esp, 0x14
mov ebx, 1
xor edi, edi
cmp dword [0x4d97d0], edi
je 0x4159c4
mov al, byte [0x4d969e]
mov cl, al
xor cl, byte [0x4d969d]
and cl, al
not cl
and al, cl
mov byte [0x4d969e], al
cmp dword [ebp - 0x44], ebx
jne 0x415a39
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x415a39
push 0x14
call esi
mov edx, 0x8000
test dx, ax
je 0x4159f8
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push ebx
call fcn.004164c0
add esp, 0x18
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.004164c0
add esp, 0x18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4da6a8]
jne 0x415a39
push ebx
push 0xffffffffffffffff
mov dword [0x4d5a1c], edi
call fcn.004014c0
add esp, 8
mov dword [0x4d5a1c], ebx
cmp byte [ebp - 0xf], 0
je 0x415a51
mov eax, dword [ebp - 0x60]
mov ecx, dword [0x4da6a8]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 8], 0
je 0x415a6b
cmp byte [ebp - 0x19], 0
jne 0x415a6b
push edi
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4d9eb4], 0
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x415a90
mov edx, dword [ebp - 0x5c]
cmp dword [0x4db1c8], edx
je 0x415ac1
call fcn.00403c40
test eax, eax
je 0x415ac1
push ebx
push 0xffffffffffffffff
call fcn.004014c0
jmp 0x415abe
cmp eax, ebx
jne 0x415ac1
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4da6a8]
jne 0x415ac1
push ebx
push 0xffffffffffffffff
mov dword [0x4d5a1c], edi
call fcn.004014c0
mov dword [0x4d5a1c], ebx
add esp, 8
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x64], edx
lea esp, [ebp - 0xd0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret