Function at 0x4178c0
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, 0x94
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], 0
push esi
push edi
je 0x418aea
cmp dword [ebp + 0xc], 0
mov esi, dword [0x4e4b24]
mov edi, dword fs:[0x24]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x58], edi
jne 0x417916
push 7
push str.Blind
push ebx
call dword [sym.imp.MSVCR100.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x417916
add ebx, 0xe
mov byte [0x4e6d9f], 1
mov dword [ebp + 8], ebx
jmp 0x417923
cmp dword [ebp + 0xc], 0
mov byte [0x4e6d9f], 0
jne 0x417945
push 6
push 0x4bff04
push ebx
call dword [sym.imp.MSVCR100.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x417945
add ebx, 0xc
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], ecx
cmp ebx, 1
je 0x41795e
cmp ebx, 3
jne 0x4179c3
cmp dword [0x4eaea4], 0
je 0x417999
call fcn.00412870
test al, al
jne 0x417999
cmp dword [ebp + 0xc], 0
jne 0x417990
call fcn.004128d0
test al, al
je 0x417990
mov ecx, dword [ebp + 8]
mov eax, str.Click
call fcn.0049e990
test eax, eax
jne 0x417999
mov dword [ebp + 0x10], 1
jmp 0x4179c3
cmp ebx, 3
jne 0x4179a7
mov dword [ebp + 0x10], 2
jmp 0x4179c3
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x4179b9
cmp dword [esi + 0x64], eax
jge 0x4179b9
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 0x417a71
mov edx, dword [ebp + 0x14]
push ebx
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
mov dword [ebp - 0x50], edi
test edi, edi
je 0x417a14
cmp edi, dword [0x4ea158]
je 0x417a14
mov esi, dword [ebp + 0x14]
call fcn.004a4790
test al, al
jne 0x417a11
mov eax, dword [0x4ea158]
push 1
push edi
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xf]
mov ebx, edi
mov esi, dword [ebp - 0x2c]
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4e6dc4], eax
push eax
xor eax, eax
call fcn.0041c0e0
add esp, 4
push 1
mov dword [0x4e6dc0], eax
call fcn.0041b9f0
mov bl, al
and byte [0x4e890b], bl
add esp, 4
cmp dword [0x4e8020], 0
mov byte [ebp - 8], bl
je 0x417b79
mov cl, byte [0x4e7ee7]
mov dl, byte [0x4e7eeb]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 0xa], cl
jmp 0x417ba4
test byte [0x4eacaa], 0xc0
je 0x417b65
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4eaca0]
cmp eax, 0x32
jae 0x417b65
cmp dword [ebp + 0x10], 2
je 0x417b65
cmp byte [0x4e6d9f], bl
jne 0x417b65
mov eax, dword [ebp + 0xc]
cmp eax, 2
je 0x417b65
cmp byte [0x4eae8e], bl
je 0x417b65
cmp edi, dword [0x4ea158]
jne 0x417b65
test eax, eax
mov eax, dword [ebp + 8]
mov ebx, 0x4c0164
je 0x417b37
call fcn.00405590
test eax, eax
setne al
test al, al
je 0x417b65
jmp 0x417af0
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
jne 0x417b12
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x417b65
push 1
push 0x8000012f
mov dword [0x4e4a2c], 0
call fcn.00401510
add esp, 8
mov dword [0x4e4a2c], 1
jmp 0x417af0
call fcn.00405590
test eax, eax
je 0x417b65
add eax, 2
mov ebx, 0x4c016c
call fcn.00405590
test eax, eax
je 0x417af0
cmp word [eax], 0x7b
je 0x417af0
mov ebx, 0x4c0164
call fcn.00405590
test eax, eax
jne 0x417b40
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, eax
call fcn.0041bf80
mov ebx, eax
jmp 0x417a14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4eaca0]
cmp eax, dword [0x4e4a20]
jae 0x417b99
mov al, byte [0x4eacaa]
and al, bl
mov byte [ebp - 2], al
jmp 0x417ba0
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4e890a]
not al
and al, bl
and cl, al
mov al, byte [0x4e6d9f]
mov byte [0x4e890a], cl
test al, al
je 0x417bcb
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 7], bl
jmp 0x417bd2
mov byte [ebp - 3], 0
mov byte [ebp - 7], cl
cmp byte [esi + 0xf3], 0
je 0x417bf9
test al, al
jne 0x417bf9
cmp dword [ebp + 0xc], 2
je 0x417bf9
push 2
mov bl, 0x14
call fcn.0041b240
mov bl, byte [ebp - 8]
add esp, 4
mov dword [ebp - 0x40], eax
jmp 0x417c00
mov dword [ebp - 0x40], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4e899c], esi
test esi, esi
je 0x417c72
cmp esi, 1
jne 0x417c23
mov eax, 0x36b0
mov dword [0x4e6db4], 0x1f4
jmp 0x417c32
mov eax, 0x2ee0
mov dword [0x4e6db4], 0x5dc
call fcn.004b9db0
mov eax, esp
mov dword [0x4e6dbc], eax
mov eax, connect
mov byte [0x4e6da7], bl
mov dword [0x4e6da8], eax
mov dword [0x4e6dac], eax
mov byte [0x4e6da6], 0
mov dword [0x4e6db8], 0
mov byte [0x4e6da5], 0
mov byte [0x4e6da4], 1
mov al, byte [0x4e8900]
mov byte [ebp - 0x1d], al
mov eax, dword [0x4e4b34]
cmp eax, 8
je 0x417c89
cmp eax, 0xa
jne 0x417cc4
test esi, esi
jne 0x417cc4
cmp dword [ebp + 0x14], esi
jne 0x417cc4
test byte [0x4eafa0], 1
mov byte [ebp - 8], 1
jne 0x417cca
or dword [0x4eafa0], 1
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4eaf9c], eax
jmp 0x417ccf
mov byte [ebp - 8], 0
jmp 0x417cde
mov eax, dword [0x4eaf9c]
test eax, eax
je 0x417cd7
push 1
call eax
mov byte [0x4e8900], 1
mov ecx, dword [ebp + 8]
cmp word [ecx], 0
mov byte [ebp - 1], 0
je 0x418752
nop
cmp dword [0x4e899c], 0
mov esi, dword [ebp + 8]
mov byte [ebp - 9], 0
jne 0x417d5c
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x4eace4]
mov edx, dword [0x4e4b24]
cmp eax, dword [edx + 0xd8]
jbe 0x417d5c
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 0x417d55
push 1
push 0xffffffffffffffff
mov dword [0x4e4a2c], 0
call fcn.00401510
add esp, 8
mov dword [0x4e4a2c], 1
call edi
mov dword [0x4eace4], eax
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x418657
movzx ecx, word [esi]
mov esi, dword [sym.imp.MSVCR100.dll_wcschr]
push ecx
push 0x4c0174
call esi
add esp, 8
test eax, eax
je 0x4186b9
mov edx, dword [ebp + 8]
movzx eax, word [edx]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x417d9c.34
movzx eax, byte [eax + 0x418b14]
jmp dword [eax*4 + 0x418af8]
test byte [ebp - 7], 3
jne case.0x417d9c.34
or byte [ebp - 1], 1
jmp case.0x417d9c.34
test byte [ebp - 7], 0x30
jne case.0x417d9c.34
or byte [ebp - 1], 0x10
jmp case.0x417d9c.34
test byte [ebp - 7], 0xc
jne case.0x417d9c.34
or byte [ebp - 1], 4
jmp case.0x417d9c.34
test byte [ebp - 7], 0xc0
jne case.0x417d9c.34
or byte [ebp - 1], 0x40
jmp case.0x417d9c.34
mov ebx, dword [ebp + 8]
add ebx, 2
push 0x7d
push ebx
call esi
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x417d9c.34
mov eax, ebx
call fcn.00413050
mov esi, dword [ebp - 0x18]
mov edi, eax
mov ebx, esi
sub ebx, edi
sar ebx, 1
mov dword [ebp + 8], edi
mov dword [ebp - 0x24], ebx
jne 0x417ea7
movzx ecx, word [esi + 2]
lea eax, [esi + 2]
cmp ecx, 0x7d
jne 0x417e3e
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 1
jmp 0x417ea1
cmp ecx, 0x20
je 0x417e4c
cmp ecx, 9
jne 0x41864c
call fcn.00413050
mov esi, dword [sym.imp.MSVCR100.dll__wcsnicmp]
push 4
mov edi, eax
push str.Down
push edi
call esi
add esp, 0xc
test eax, eax
je 0x417e7f
push 2
push 0x4bd3c0
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x41864c
push 0x7d
push edi
call dword [sym.imp.MSVCR100.dll_wcschr]
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x417d9c.34
sub eax, dword [ebp + 8]
mov edi, dword [ebp + 8]
sar eax, 1
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x18]
push 5
push 0x4bee10
push edi
call dword [sym.imp.MSVCR100.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x417f4e
xor ecx, ecx
lea edx, [ebp - 0x48]
push edx
mov word [esi], cx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xe]
push edx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea eax, [edi + 0xa]
call fcn.00413050
call fcn.00419b30
mov ecx, dword [ebp - 0x28]
add esp, 0x18
mov edx, 0x7d
mov word [esi], dx
cmp ecx, 1
jge 0x417f29
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0xef]
mov eax, dword [ebp - 0x48]
push eax
push edx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x4c]
call fcn.0041a6f0
mov ecx, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp + 8], ecx
jmp 0x418732
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
push edx
mov edx, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp + 0x14]
push edx
mov edx, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 7]
push 0
push edx
mov edx, dword [ebp - 0xe]
push eax
push 0
push edx
jmp 0x418641
push 3
push 0x4c0184
push edi
call dword [sym.imp.MSVCR100.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x417f75
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], ecx
jmp 0x418732
push 4
push str.Text
push edi
call dword [sym.imp.MSVCR100.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x417fac
lea eax, [edi + 8]
call fcn.00413050
cmp eax, esi
jne 0x41864c
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], ecx
jmp 0x418732
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov word [ecx], ax
mov esi, 1
mov dword [ebp - 0x3c], ebx
mov ebx, 0x4bfcf4
mov eax, edi
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x28], esi
call fcn.00405590
mov ebx, eax
test ebx, ebx
je 0x41808f
movzx edx, word [ebx]
xor eax, eax
mov word [ebx], ax
mov eax, ebx
sub eax, edi
sar eax, 1
mov dword [ebp - 0x3c], eax
lea eax, [ebx + 2]
mov dword [ebp - 0x60], edx
call fcn.00413050
mov ecx, dword [ebp - 0x18]
sub ecx, eax
sar ecx, 1
mov dword [ebp - 0x30], eax
je 0x41808f
push 4
mov edx, eax
push str.Down
push edx
call dword [sym.imp.MSVCR100.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x418067
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x30]
push 4
add eax, 8
push str.Temp
push eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.MSVCR100.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x418045
mov dword [ebp - 0x34], eax
jmp 0x41808f
mov ecx, dword [ebp - 0x34]
xor eax, eax
cmp word [ecx], 0x52
sete al
push eax
call dword [sym.imp.MSVCR100.dll_toupper]
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp - 0x34], eax
jmp 0x41808f
mov edx, dword [ebp - 0x30]
push 0x4bd3c0
push edx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x418082
mov dword [ebp - 0x14], esi
jmp 0x41808f
mov esi, dword [ebp - 0x30]
call fcn.00417490
mov dword [ebp - 0x28], eax
mov esi, eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [0x4e6dc4]
lea ecx, [ebp - 0xe]
push ecx
lea ecx, [ebp - 1]
mov edx, edi
call fcn.0041c630
add esp, 8
test ebx, ebx
je 0x4180b4
mov dx, word [ebp - 0x60]
mov word [ebx], dx
mov ecx, dword [ebp - 0x18]
mov eax, 0x7d
mov word [ecx], ax
cmp esi, 1
jl 0x41864c
mov bl, byte [ebp - 0xe]
test bl, bl
jne 0x418591
cmp word [ebp - 0x38], 0
jne 0x418591
movzx edx, byte [edi]
push edx
call dword [sym.imp.MSVCR100.dll_isdigit]
add esp, 4
mov ebx, 1
test eax, eax
je 0x41818c
cmp dword [ebp - 0x3c], ebx
jbe 0x41818f
cmp dword [0x4e899c], 0
je 0x41812d
mov esi, edi
call fcn.00417490
push eax
push 0
push 0
push 0
push 0
call fcn.0041a940
mov ecx, dword [ebp - 0x18]
add esp, 0x14
mov dword [ebp + 8], ecx
jmp 0x418732
mov eax, dword [ebp - 0x58]
mov dword [0x4e4a2c], 0
cmp dword [0x4ea158], eax
je 0x41816a
mov esi, edi
call fcn.00417490
test eax, eax
js 0x41816a
call fcn.00417490
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x18]
mov dword [0x4e4a2c], ebx
mov dword [ebp + 8], ecx
jmp 0x418732
push ebx
mov esi, edi
call fcn.00417490
push eax
call fcn.00401510
mov ecx, dword [ebp - 0x18]
add esp, 8
mov dword [0x4e4a2c], ebx
mov dword [ebp + 8], ecx
jmp 0x418732
cmp dword [ebp - 0x3c], ebx
jne 0x4181f2
cmp dword [ebp - 0x14], ebx
je 0x41864c
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x4181d0
test esi, esi
jle 0x41864c
lea esp, [esp]
movzx ecx, word [edi]
push 0
push ecx
push 0x102
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
dec esi
jne 0x4181b0
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
jmp 0x418732
mov dl, byte [ebp - 1]
or dl, byte [ebp - 7]
mov ecx, esi
movzx eax, dl
push eax
mov ax, word [edi]
call fcn.00418f40
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x418732
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 7]
push ecx
lea edx, [ebp - 0x14]
sete bl
push edx
call fcn.0041c6f0
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x4183f1
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x41822d
cmp dword [ebp - 0x14], edi
jne 0x418228
mov byte [ebp - 9], al
jmp 0x41822d
call fcn.00417640
cmp dword [0x4e899c], 0
je 0x418241
mov bl, byte [0x4e6da7]
jmp 0x418333
cmp dword [0x4e8020], 0
je 0x418255
mov bl, byte [0x4e7ee7]
jmp 0x418333
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x418270
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x418284
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x418298
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x4182ac
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x4182c0
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x4182d4
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x4182e5
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x4182f6
or bl, 0x80
cmp dword [0x4e8020], 0
je 0x418333
mov al, bl
not al
and al, byte [0x4e7ee7]
je 0x418333
mov cl, byte [0x4e7eeb]
not al
and byte [0x4e7ee7], al
and byte [0x4e7eea], al
and cl, al
mov al, cl
mov byte [0x4e7eeb], cl
mov ecx, 0x4e7f10
call fcn.0041baf0
mov eax, dword [ebp - 7]
push 0
push 0
push edi
push ebx
push eax
mov esi, 0xffc3d44d
call fcn.0041b350
mov eax, dword [ebp - 0x28]
add esp, 0x14
test eax, eax
jle 0x41864c
mov ebx, dword [ebp - 0xe]
mov edi, eax
lea ebx, [ebx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
push 0xffc3d44d
push 1
push ecx
push 0
push ebx
push edx
call fcn.00419440
add esp, 0x18
cmp dword [0x4e899c], 0
jne 0x4183df
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4eace4]
mov ecx, dword [0x4e4b24]
cmp eax, dword [ecx + 0xd8]
jbe 0x4183df
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4183d8
push 1
push 0xffffffffffffffff
mov dword [0x4e4a2c], 0
call fcn.00401510
add esp, 8
mov dword [0x4e4a2c], 1
call esi
mov dword [0x4eace4], eax
dec edi
jne 0x418360
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
jmp 0x418732
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp + 8]
cmp edi, 4
jbe 0x418469
push 4
push str.ASC
push esi
call dword [sym.imp.MSVCR100.dll__wcsnicmp]
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x41846c
test ebx, ebx
jne 0x41846c
lea eax, [esi + 6]
call fcn.00413050
mov edi, eax
call fcn.00419050
cmp dword [0x4e899c], 2
jne 0x41844c
mov eax, dword [0x4e4b24]
mov eax, dword [eax + 0x60]
push eax
call fcn.0041af10
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x418732
mov ecx, dword [0x4e4b24]
mov eax, dword [ecx + 0x5c]
push eax
call fcn.0041af10
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x418732
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x41864c
push 2
push 0x4c01a4
push esi
call dword [sym.imp.MSVCR100.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x41864c
push 0x10
push eax
add esi, 4
push esi
call dword [sym.imp.MSVCR100.dll_wcstol]
add esp, 0xc
cmp eax, 0x10000
jb 0x4184d1
sub eax, 0x10000
mov edx, eax
shr edx, 0xa
and edx, 0x3ff
sub edx, 0x2800
movzx ecx, dx
mov edx, eax
and edx, 0x3ff
sub edx, 0x2400
movzx esi, dx
jmp 0x4184d6
movzx ecx, ax
xor esi, esi
test ebx, ebx
je 0x418503
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
movzx eax, cx
push eax
push 0x102
push ebx
call edi
test si, si
je 0x41854f
push 0
movzx ecx, si
push ecx
push 0x102
push ebx
call edi
jmp 0x41854f
cmp dword [0x4e899c], 2
je 0x41852e
movzx ebx, byte [ebp - 1]
or bl, byte [ebp - 7]
push ebx
push ecx
call fcn.004176c0
add esp, 8
test si, si
je 0x41854f
push ebx
push esi
call fcn.004176c0
add esp, 8
jmp 0x41854f
push 0xa
lea ecx, [ebp - 0x72]
push ecx
mov edx, 0x30
push eax
mov word [ebp - 0x74], dx
call dword [sym.imp.MSVCR100.dll__itow]
add esp, 0xc
lea edi, [ebp - 0x74]
call fcn.00419050
cmp dword [0x4e899c], 2
jne 0x418575
mov edx, dword [0x4e4b24]
mov eax, dword [edx + 0x60]
push eax
call fcn.0041af10
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x418732
mov eax, dword [0x4e4b24]
mov eax, dword [eax + 0x5c]
push eax
call fcn.0041af10
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x418732
mov edx, dword [ebp - 0x38]
xor ecx, ecx
mov al, bl
call fcn.0041bbc0
mov byte [ebp - 0x1c], al
test al, al
je 0x41861b
cmp dword [ebp + 0x14], 0
jne 0x41861b
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x4185db
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 9], bl
cmp ecx, 1
jne 0x4185cb
or byte [0x4e890a], al
or byte [ebp - 7], al
jmp 0x41861b
cmp ecx, 2
jne 0x4185d6
or byte [0x4e890b], al
or byte [ebp - 7], al
jmp 0x41861b
cmp ecx, 1
jne 0x41861b
mov al, bl
call fcn.00417640
mov al, byte [ebp - 0x1c]
mov cl, byte [0x4e890a]
not al
and byte [0x4e890b], al
and byte [ebp - 3], al
and cl, al
mov byte [0x4e890a], cl
cmp bl, 0xa5
jne 0x418615
cmp dword [0x4e6dc0], 3
jne 0x418615
and byte [ebp - 3], 0xfe
or cl, byte [ebp - 3]
mov byte [ebp - 7], cl
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
push 0
push connect
push connect
push ecx
mov ecx, dword [ebp - 7]
push edx
mov edx, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0xe]
push ecx
push edx
push eax
mov ecx, esi
mov al, byte [ebp - 1]
call fcn.00418b90
add esp, 0x24
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
jmp 0x418732
cmp edi, 2
jne 0x4186b9
movzx eax, word [esi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x418667.11
jmp dword [eax*4 + 0x418b74]
cmp word [esi + 2], 0xa
jne case.0x418667.10
add esi, 2
mov dword [ebp + 8], esi
mov byte [ebp - 0xe], 0xd
jmp 0x4186eb
mov byte [ebp - 0xe], 8
jmp 0x4186eb
mov byte [ebp - 0xe], 9
jmp 0x4186eb
mov byte [ebp - 0xe], 0
mov ecx, dword [ebp + 0x14]
mov al, byte [ebp - 1]
mov edx, dword [ebp + 8]
test ecx, ecx
je 0x41871b
movzx eax, word [edx]
push 0
push eax
push 0x102
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x418732
mov al, byte [ebp - 1]
or al, byte [ebp - 7]
je 0x4186c9
test edi, edi
jne 0x4186c9
mov al, 1
jmp 0x4186cb
xor al, al
mov edx, dword [0x4e6dc4]
push eax
mov eax, dword [ebp + 8]
mov si, word [eax]
push edx
lea edi, [ebp - 1]
call fcn.0041c570
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x418691
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 7]
mov eax, dword [ebp - 0xe]
push 0
push connect
push connect
push ecx
push 0
push 2
push edx
push 0
push eax
mov al, byte [ebp - 1]
mov ecx, 1
call fcn.00418b90
add esp, 0x24
jmp 0x418732
or al, byte [ebp - 7]
movzx ecx, al
mov ax, word [edx]
push ecx
mov ecx, 1
call fcn.00418f40
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 [0x4e8907], cl
jne 0x417cf0
cmp dword [0x4e899c], 0
je 0x418816
cmp byte [0x4e6da5], 0
mov dword [ebp - 0x1c], 0xffffffff
jne 0x4187c9
cmp dword [0x4e6db8], 0
jbe 0x4187c9
cmp byte [0x4e6d9f], 0
je 0x418785
xor eax, eax
jmp 0x418791
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 2]
not eax
and eax, edx
or al, byte [0x4e890b]
push 1
or al, byte [ebp - 7]
push 1
mov byte [ebp + 8], al
movzx eax, byte [0x4e6da7]
mov edi, dword [ebp + 8]
push 0
push eax
push edi
mov esi, 0xffc3d44d
call fcn.0041b350
add esp, 0x14
lea ecx, [ebp - 0x1c]
push edi
push ecx
call fcn.0041ad10
add esp, 8
mov eax, dword [0x4e899c]
mov edi, 1
sub eax, edi
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4e6db4], eax
jbe 0x4187fb
mov edx, dword [0x4e6dbc]
push edx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov dword [0x4e899c], 0
call fcn.0041af10
add esp, 4
jmp 0x41899a
cmp dword [0x4e8020], 0
je 0x418827
mov cl, byte [0x4e7eeb]
jmp 0x41884b
cmp dword [0x4e4a20], 0
jl 0x418848
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4eaca0]
cmp eax, dword [0x4e4a20]
jb 0x418848
xor cl, cl
jmp 0x41884b
mov cl, byte [ebp - 2]
or cl, byte [0x4e890b]
cmp byte [0x4e6d9f], 0
je 0x418873
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 + 8], bl
jmp 0x418880
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 7]
mov byte [ebp + 8], al
cmp dword [0x4e8020], 0
je 0x418897
mov cl, byte [0x4e7ee7]
mov byte [ebp - 0x1c], cl
jmp 0x418978
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov edx, 0x8000
test dx, ax
je 0x4188b2
mov bl, 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x4188c6
or bl, 0x20
push 0xa2
call esi
mov edx, 0x8000
test dx, ax
je 0x4188da
or bl, 1
push 0xa3
call esi
mov ecx, 0x8000
test cx, ax
je 0x4188ee
or bl, 2
push 0xa4
call esi
mov edx, 0x8000
test dx, ax
je 0x418902
or bl, 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x418916
or bl, 8
push 0x5b
call esi
mov edx, 0x8000
test dx, ax
je 0x418927
or bl, 0x40
push 0x5c
call esi
mov ecx, 0x8000
test cx, ax
je 0x418938
or bl, 0x80
cmp dword [0x4e8020], 0
je 0x418975
mov al, bl
not al
and al, byte [0x4e7ee7]
je 0x418975
mov cl, byte [0x4e7eeb]
not al
and byte [0x4e7ee7], al
and byte [0x4e7eea], al
and cl, al
mov al, cl
mov byte [0x4e7eeb], cl
mov ecx, 0x4e7f10
call fcn.0041baf0
mov byte [ebp - 0x1c], bl
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push 1
push 1
push edx
push eax
push ecx
mov esi, 0xffc3d44d
call fcn.0041b350
add esp, 0x14
mov edi, 1
cmp dword [0x4e8020], 0
je 0x4189bb
mov al, byte [0x4e7eea]
mov dl, al
xor dl, byte [0x4e7ee7]
and dl, al
not dl
and al, dl
mov byte [0x4e7eea], al
cmp dword [ebp - 0x40], edi
jne 0x418a3f
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x418a3f
push 0x14
call esi
mov ecx, 0x8000
test cx, ax
je 0x4189f6
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push edi
call fcn.00419440
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push 2
call fcn.00419440
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ea158]
jne 0x418a3f
push edi
push 0xffffffffffffffff
mov dword [0x4e4a2c], 0
call fcn.00401510
add esp, 8
mov dword [0x4e4a2c], edi
cmp byte [ebp - 0xf], 0
je 0x418a57
mov edx, dword [ebp - 0x50]
mov eax, dword [0x4ea158]
push 0
push edx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 8], 0
je 0x418aa4
cmp byte [ebp - 0x1d], 0
jne 0x418aa4
test byte [0x4eafa0], 1
jne 0x418a90
or dword [0x4eafa0], edi
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4eaf9c], eax
jmp 0x418a95
mov eax, dword [0x4eaf9c]
test eax, eax
je 0x418a9d
push 0
call eax
mov byte [0x4e8900], 0
cmp dword [ebp + 0x10], edi
jne 0x418adb
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ea158]
jne 0x418adb
push edi
push 0xffffffffffffffff
mov dword [0x4e4a2c], 0
call fcn.00401510
add esp, 8
mov dword [0x4e4a2c], edi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x54]
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x64], edx
lea esp, [ebp - 0xa0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret