Function at 0x414870
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
mov esi, dword [ebp + 8]
cmp word [esi], 0
push edi
je 0x4159fc
mov ebx, dword [ebp + 0xc]
mov edi, dword [0x4d5b14]
mov eax, dword [0x4db230]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x5c], eax
test ebx, ebx
jne 0x4148c4
push 7
push str.Blind
push esi
call fcn.0049a3aa
add esp, 0xc
test eax, eax
jne 0x4148c4
add esi, 0xe
mov byte [0x4d8617], 1
mov dword [ebp + 8], esi
jmp 0x4148cf
mov byte [0x4d8617], 0
test ebx, ebx
jne 0x4148f3
push 6
push str.Text
push esi
call fcn.0049a3aa
add esp, 0xc
test eax, eax
jne 0x4148f3
mov dword [ebp + 0xc], 2
mov ebx, dword [ebp + 0xc]
add esi, 0xc
mov dword [ebp + 8], esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi + 0x5c]
mov edx, dword [edi + 0x64]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edx
cmp eax, 1
je 0x41490c
cmp eax, 3
jne 0x414966
call fcn.0040e740
test al, al
jne 0x41493b
test ebx, ebx
jne 0x414932
call fcn.0040e7b0
test al, al
je 0x414932
mov eax, str.Click
mov ecx, esi
call fcn.00480360
test eax, eax
jne 0x41493b
mov dword [ebp + 0x10], 1
jmp 0x414966
cmp dword [ebp + 0x10], 3
jne 0x41494a
mov dword [ebp + 0x10], 2
jmp 0x414966
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [edi + 0x5c], eax
jge 0x41495c
cmp dword [edi + 0x64], eax
jge 0x41495c
or eax, 0xffffffff
mov dword [edi + 0x64], eax
mov dword [edi + 0x5c], 0xffffffff
mov eax, dword [ebp + 0x14]
xor edi, edi
mov byte [ebp - 0xf], 0
test eax, eax
je 0x4149c0
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov dword [ebp - 0x60], ebx
test ebx, ebx
je 0x414afa
cmp ebx, dword [0x4da710]
je 0x414afa
mov esi, dword [ebp + 0x14]
call fcn.00485270
test al, al
jne 0x414afa
mov eax, dword [0x4da710]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xf]
mov edi, ebx
jmp 0x414afa
test byte [0x4db1ee], 0xc0
je 0x414ab5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4db1e4]
cmp eax, 0x32
jae 0x414ab5
cmp dword [ebp + 0x10], 2
je 0x414ab5
cmp byte [0x4d8617], 0
jne 0x414ab5
cmp ebx, 2
je 0x414ab5
cmp byte [0x4db3fe], 0
je 0x414ab5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4da710]
jne 0x414ab5
test ebx, ebx
mov eax, esi
mov ebx, 0x4b41a0
je 0x414a87
call fcn.0040558a
test eax, eax
setne al
test al, al
je 0x414ab5
lea ebx, [ebx]
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
jne 0x414a62
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x414ab5
push 1
push 0x8000012f
mov dword [0x4d5a1c], 0
call fcn.004014c0
add esp, 8
mov dword [0x4d5a1c], 1
jmp 0x414a40
call fcn.0040558a
test eax, eax
je 0x414ab5
add eax, 2
mov ebx, 0x4b41a8
call fcn.0040558a
test eax, eax
je 0x414a40
cmp word [eax], 0x7b
je 0x414a40
mov ebx, 0x4b41a0
call fcn.0040558a
test eax, eax
jne 0x414a90
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
test eax, eax
je 0x414afa
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push edi
push eax
call ebx
mov edi, eax
lea eax, [ebp - 0xc0]
push eax
push edi
mov dword [ebp - 0xc0], 0x30
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x414afa
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x414afa
push 0
push eax
call ebx
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4d863c], eax
push eax
xor eax, eax
call fcn.00419000
add esp, 4
push 1
mov dword [0x4d8638], eax
call fcn.00418900
mov bl, al
and byte [0x4d9f6a], bl
add esp, 4
cmp dword [0x4d983c], 0
mov byte [ebp - 8], bl
je 0x414b50
mov cl, byte [0x4d9709]
mov dl, byte [0x4d970b]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 0xa], cl
jmp 0x414b7b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4db1e4]
cmp eax, dword [0x4d5a14]
jae 0x414b70
mov al, byte [0x4db1ee]
and al, bl
mov byte [ebp - 2], al
jmp 0x414b77
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4d9f57]
not al
and al, bl
and cl, al
mov al, byte [0x4d8617]
mov byte [0x4d9f57], cl
test al, al
je 0x414ba2
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 7], bl
jmp 0x414ba9
mov byte [ebp - 3], 0
mov byte [ebp - 7], cl
mov ecx, dword [ebp - 0x28]
cmp byte [ecx + 0xf3], 0
je 0x414bd3
test al, al
jne 0x414bd3
cmp dword [ebp + 0xc], 2
je 0x414bd3
push 2
mov bl, 0x14
call fcn.00418140
mov bl, byte [ebp - 8]
add esp, 4
mov dword [ebp - 0x44], eax
jmp 0x414bda
mov dword [ebp - 0x44], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4d9fe0], esi
test esi, esi
je 0x414c4c
cmp esi, 1
jne 0x414bfd
mov eax, 0x36b0
mov dword [0x4d862c], 0x1f4
jmp 0x414c0c
mov eax, 0x2ee0
mov dword [0x4d862c], 0x5dc
call fcn.004a2b50
mov eax, esp
mov dword [0x4d8634], eax
mov eax, connect
mov byte [0x4d861f], bl
mov dword [0x4d8620], eax
mov dword [0x4d8624], eax
mov byte [0x4d861e], 0
mov dword [0x4d8630], 0
mov byte [0x4d861d], 0
mov byte [0x4d861c], 1
mov eax, dword [0x4d5b24]
mov dl, byte [0x4d9f21]
mov byte [ebp - 0x19], dl
cmp eax, 8
je 0x414c68
cmp eax, 0xa
jne 0x414d50
test esi, esi
jne 0x414d50
cmp dword [ebp + 0x14], esi
jne 0x414d50
push 1
mov byte [ebp - 8], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov esi, dword [0x4d9fe0]
mov byte [0x4d9f21], 1
mov eax, dword [ebp + 8]
cmp word [eax], 0
mov byte [ebp - 1], 0
je 0x415645
cmp dword [0x4d9fe0], 0
mov byte [ebp - 9], 0
jne 0x414d0c
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4db234]
mov ecx, dword [0x4d5b14]
cmp eax, dword [ecx + 0xd8]
jbe 0x414d0c
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 0x414d05
push 1
push 0xffffffffffffffff
mov dword [0x4d5a1c], 0
call fcn.004014c0
add esp, 8
mov dword [0x4d5a1c], 1
call esi
mov dword [0x4db234], eax
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x415548
mov esi, dword [ebp + 8]
movzx eax, word [esi]
push eax
push str._
call fcn.0049a90e
add esp, 8
test eax, eax
je 0x4155a6
movzx eax, word [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x414d49.34
movzx ecx, byte [eax + 0x415a28]
jmp dword [ecx*4 + 0x415a0c]
mov byte [ebp - 8], 0
jmp 0x414c92
test byte [ebp - 7], 3
jne case.0x414d49.34
or byte [ebp - 1], 1
jmp case.0x414d49.34
test byte [ebp - 7], 0x30
jne case.0x414d49.34
or byte [ebp - 1], 0x10
jmp case.0x414d49.34
test byte [ebp - 7], 0xc
jne case.0x414d49.34
or byte [ebp - 1], 4
jmp case.0x414d49.34
test byte [ebp - 7], 0xc0
jne case.0x414d49.34
or byte [ebp - 1], 0x40
jmp case.0x414d49.34
mov esi, dword [ebp + 8]
add esi, 2
push 0x7d
push esi
call fcn.0049a90e
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
test edi, edi
je case.0x414d49.34
mov eax, esi
call fcn.00403ff0
mov esi, eax
mov ebx, edi
sub ebx, esi
sar ebx, 1
mov dword [ebp + 8], esi
mov dword [ebp - 0x20], ebx
jne 0x414e60
movzx eax, word [edi + 2]
add edi, 2
cmp eax, 0x7d
jne 0x414df6
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 1
jmp 0x414e5a
cmp eax, 0x20
je 0x414e04
cmp eax, 9
jne 0x41553d
mov eax, edi
call fcn.00403ff0
push 4
mov esi, eax
push str.Down
push esi
call fcn.0049a3aa
add esp, 0xc
test eax, eax
je 0x414e39
push 2
push 0x4b1188
push esi
call fcn.0049a3aa
add esp, 0xc
test eax, eax
jne 0x41553d
push 0x7d
push esi
call fcn.0049a90e
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
je case.0x414d49.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 0x4b2bcc
push esi
call fcn.0049a3aa
add esp, 0xc
test eax, eax
jne 0x414f06
xor edx, edx
lea eax, [ebp - 0x40]
push eax
mov word [edi], dx
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0xe]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [esi + 0xa]
call fcn.00403ff0
call fcn.00416ae0
mov ecx, dword [ebp - 0x14]
add esp, 0x18
mov eax, 0x7d
mov word [edi], ax
cmp ecx, 1
jge 0x414ee1
mov edx, dword [ebp - 0x28]
movzx eax, byte [edx + 0xef]
mov ecx, dword [ebp - 0x40]
push ecx
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x38]
call fcn.004176e0
mov ecx, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp + 8], ecx
jmp 0x41561f
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x2c]
push edx
mov edx, dword [ebp - 0x38]
push eax
mov eax, dword [ebp + 0x14]
push edx
mov edx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 7]
push 0
push edx
mov edx, dword [ebp - 0xe]
push eax
push 0
push edx
jmp 0x415532
push 3
push 0x4b41c0
push esi
call fcn.0049a3aa
add esp, 0xc
test eax, eax
jne 0x414f2c
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], ecx
jmp 0x41561f
push 4
push 0x4b4110
push esi
call fcn.0049a3aa
add esp, 0xc
test eax, eax
jne 0x414f62
lea eax, [esi + 8]
call fcn.00403ff0
cmp eax, edi
jne 0x41553d
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], ecx
jmp 0x41561f
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp + 8]
mov esi, 1
mov dword [ebp - 0x30], ebx
mov ebx, 0x4b3acc
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x14], esi
call fcn.0040558a
mov ebx, eax
test ebx, ebx
je 0x41502a
sub eax, dword [ebp + 8]
movzx ecx, word [ebx]
sar eax, 1
xor edx, edx
mov dword [ebp - 0x30], eax
lea eax, [ebx + 2]
mov dword [ebp - 0x58], ecx
mov word [ebx], dx
call fcn.00403ff0
sub edi, eax
sar edi, 1
mov dword [ebp - 0x54], eax
je 0x41502a
push 4
mov edi, eax
push str.Down
push edi
call fcn.0049a3aa
add esp, 0xc
test eax, eax
jne 0x415007
push 4
add edi, 8
push str.Temp
push edi
mov dword [ebp - 0x18], eax
call fcn.0049a3aa
add esp, 0xc
test eax, eax
jne 0x414fe9
mov dword [ebp - 0x34], eax
jmp 0x41502a
xor eax, eax
cmp word [edi], 0x52
sete al
push eax
call fcn.0049c0e7
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp - 0x34], eax
jmp 0x41502a
push 0x4b1188
push edi
call fcn.00499c29
add esp, 8
test eax, eax
jne 0x41501e
mov dword [ebp - 0x18], esi
jmp 0x41502a
mov esi, edi
call fcn.004142c0
mov dword [ebp - 0x14], eax
mov esi, eax
mov eax, dword [0x4d863c]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xe]
push ecx
lea ecx, [ebp - 1]
lea edi, [ebp - 0x48]
call fcn.00419580
add esp, 4
test ebx, ebx
je 0x41504f
mov dx, word [ebp - 0x58]
mov word [ebx], dx
mov ecx, dword [ebp - 0x24]
mov eax, 0x7d
mov word [ecx], ax
cmp esi, 1
jl 0x41553d
mov bl, byte [ebp - 0xe]
mov edi, dword [ebp - 0x48]
test bl, bl
jne 0x41548a
test di, di
jne 0x41548a
mov eax, 1
cmp dword [ebp - 0x30], eax
jne 0x4150e8
cmp dword [ebp - 0x18], eax
je 0x41553d
cmp dword [ebp + 0x14], 0
je 0x4150c3
test esi, esi
jle 0x41553d
mov edi, dword [ebp + 8]
mov edi, edi
movzx edx, word [edi]
mov eax, dword [ebp + 0x14]
push 0
push edx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
dec esi
jne 0x4150a0
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
jmp 0x41561f
mov cl, byte [ebp - 1]
or cl, byte [ebp - 7]
mov eax, dword [ebp + 8]
mov ax, word [eax]
movzx edx, cl
push edx
mov ecx, esi
call fcn.00415f00
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x41561f
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 7]
push ecx
lea edx, [ebp - 0x18]
sete bl
push edx
call fcn.00419630
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x415330
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x415126
cmp dword [ebp - 0x18], edi
jne 0x415121
mov byte [ebp - 9], al
jmp 0x415126
call fcn.00414490
cmp dword [0x4d9fe0], 0
je 0x415139
mov al, byte [0x4d861f]
jmp 0x415279
cmp dword [0x4d983c], 0
je 0x41514c
mov al, byte [0x4d9709]
jmp 0x415279
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [ebp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x41516b
mov byte [ebp + 0xb], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x415180
or byte [ebp + 0xb], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x415195
or byte [ebp + 0xb], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x4151aa
or byte [ebp + 0xb], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x4151bf
or byte [ebp + 0xb], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x4151d4
or byte [ebp + 0xb], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x4151e6
or byte [ebp + 0xb], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x4151f8
or byte [ebp + 0xb], 0x80
cmp dword [0x4d983c], 0
je 0x415275
mov bl, byte [ebp + 0xb]
not bl
and bl, byte [0x4d9709]
cmp byte [0x4d972e], 0
je 0x41522f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4d85f0]
cmp eax, 0x14
jae 0x41522f
mov al, byte [0x4d972e]
not al
and bl, al
test bl, bl
je 0x415275
mov cl, byte [0x4d970b]
mov al, bl
not al
and byte [0x4d9709], al
and byte [0x4d970a], al
and cl, al
mov al, cl
mov byte [0x4d970b], cl
mov ecx, 0x4d9730
call fcn.00418a60
mov eax, dword [0x4d8610]
test eax, eax
je 0x415275
test byte [eax + 8], bl
je 0x415275
mov dword [0x4d8610], 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.00418250
mov eax, dword [ebp - 0x14]
add esp, 0x14
test eax, eax
jle 0x41553d
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.00416450
add esp, 0x18
cmp dword [0x4d9fe0], 0
jne 0x41531e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4db234]
mov ecx, dword [0x4d5b14]
cmp eax, dword [ecx + 0xd8]
jbe 0x41531e
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 0x415313
push 1
push 0xffffffffffffffff
mov dword [0x4d5a1c], 0
call fcn.004014c0
add esp, 8
mov dword [0x4d5a1c], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4db234], eax
dec ebx
jne 0x4152a0
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
jmp 0x41561f
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
cmp edi, 4
jbe 0x415365
push 4
push str.ASC
push esi
call fcn.0049a3aa
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x415368
test ebx, ebx
jne 0x415368
lea eax, [esi + 6]
call fcn.00403ff0
mov edi, eax
jmp 0x415443
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x41553d
push 2
push 0x4b41e0
push esi
call fcn.0049a3aa
add esp, 0xc
test eax, eax
jne 0x41553d
push 0x10
push eax
add esi, 4
push esi
call fcn.0049bf9d
add esp, 0xc
cmp eax, 0x10000
jb 0x4153cb
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 0x4153d0
movzx edi, ax
xor esi, esi
test ebx, ebx
je 0x4153fd
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 0x415448
push 0
movzx eax, si
push eax
push 0x102
push ebx
call edi
jmp 0x415448
cmp dword [0x4d9fe0], 2
je 0x415428
movzx ebx, byte [ebp - 1]
or bl, byte [ebp - 7]
push ebx
call fcn.00414510
add esp, 4
test si, si
je 0x415448
push ebx
mov edi, esi
call fcn.00414510
add esp, 4
jmp 0x415448
push 0xa
lea edx, [ebp - 0x72]
push edx
mov ecx, 0x30
push eax
mov word [ebp - 0x74], cx
call fcn.004999a5
add esp, 0xc
lea edi, [ebp - 0x74]
call fcn.00416010
cmp dword [0x4d9fe0], 2
jne 0x41546d
mov eax, dword [0x4d5b14]
mov eax, dword [eax + 0x60]
push eax
call fcn.00417e50
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x41561f
mov ecx, dword [0x4d5b14]
mov eax, dword [ecx + 0x5c]
push eax
call fcn.00417e50
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x41561f
xor ecx, ecx
mov edx, edi
mov al, bl
call fcn.00418b30
mov byte [ebp - 0x3c], al
test al, al
je 0x41550f
cmp dword [ebp + 0x14], 0
jne 0x41550f
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x4154cf
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 9], bl
cmp ecx, 1
jne 0x4154bf
or byte [0x4d9f57], al
or byte [ebp - 7], al
jmp 0x41550f
cmp ecx, 2
jne 0x4154ca
or byte [0x4d9f6a], al
or byte [ebp - 7], al
jmp 0x41550f
cmp ecx, 1
jne 0x41550f
mov al, bl
call fcn.00414490
mov al, byte [ebp - 0x3c]
mov cl, byte [0x4d9f57]
not al
and byte [0x4d9f6a], al
and byte [ebp - 3], al
and cl, al
mov byte [0x4d9f57], cl
cmp bl, 0xa5
jne 0x415509
cmp dword [0x4d8638], 3
jne 0x415509
and byte [ebp - 3], 0xfe
or cl, byte [ebp - 3]
mov byte [ebp - 7], cl
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
push 0
push connect
push connect
push edx
mov edx, dword [ebp - 7]
push eax
mov eax, dword [ebp - 0xe]
push ecx
push edx
push edi
push eax
mov ecx, esi
mov al, byte [ebp - 1]
call fcn.00415aa0
add esp, 0x24
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
jmp 0x41561f
cmp edi, 2
jne 0x4155a6
mov ecx, dword [ebp + 8]
movzx eax, word [ecx]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x41555b.11
jmp dword [eax*4 + 0x415a88]
cmp word [ecx + 2], 0xa
jne case.0x41555b.10
add ecx, 2
mov dword [ebp + 8], ecx
mov byte [ebp - 0xe], 0xd
jmp 0x4155d8
mov byte [ebp - 0xe], 8
jmp 0x4155d8
mov byte [ebp - 0xe], 9
jmp 0x4155d8
mov byte [ebp - 0xe], 0
mov ecx, dword [ebp + 0x14]
mov al, byte [ebp - 1]
mov edx, dword [ebp + 8]
test ecx, ecx
je 0x415608
movzx eax, word [edx]
push 0
push eax
push 0x102
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x41561f
mov al, byte [ebp - 1]
or al, byte [ebp - 7]
je 0x4155b6
test edi, edi
jne 0x4155b6
mov al, 1
jmp 0x4155b8
xor al, al
mov edx, dword [0x4d863c]
push eax
mov eax, dword [ebp + 8]
mov si, word [eax]
push edx
lea edi, [ebp - 1]
call fcn.004194c0
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x415585
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.00415aa0
add esp, 0x24
jmp 0x41561f
or al, byte [ebp - 7]
movzx ecx, al
mov ax, word [edx]
push ecx
mov ecx, 1
call fcn.00415f00
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 [0x4d9f56], cl
jne 0x414ca3
mov esi, dword [0x4d9fe0]
xor edi, edi
cmp esi, edi
je 0x415705
cmp byte [0x4d861d], 0
mov dword [ebp + 8], 0xffffffff
jne 0x4156c0
cmp dword [0x4d8630], edi
jbe 0x4156c0
cmp byte [0x4d8617], 0
je 0x415674
xor eax, eax
jmp 0x415680
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 2]
not eax
and eax, edx
or al, byte [0x4d9f6a]
push 1
or al, byte [ebp - 7]
push 1
mov byte [ebp - 0x14], al
movzx eax, byte [0x4d861f]
mov edi, dword [ebp - 0x14]
push 0
push eax
push edi
mov esi, 0xffc3d44d
call fcn.00418250
add esp, 0x14
lea ecx, [ebp + 8]
push edi
push ecx
call fcn.00417d00
mov esi, dword [0x4d9fe0]
add esp, 8
xor edi, edi
mov ebx, 1
sub esi, ebx
neg esi
sbb esi, esi
and esi, 0x3e8
add esi, 0x1f4
cmp dword [0x4d862c], esi
jbe 0x4156ee
mov edx, dword [0x4d8634]
push edx
call fcn.0049a18d
add esp, 4
mov eax, dword [ebp + 8]
push eax
mov dword [0x4d9fe0], edi
call fcn.00417e50
add esp, 4
jmp 0x4158d0
cmp dword [0x4d983c], edi
je 0x415715
mov cl, byte [0x4d970b]
jmp 0x415738
cmp dword [0x4d5a14], edi
jl 0x415735
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4db1e4]
cmp eax, dword [0x4d5a14]
jb 0x415735
xor cl, cl
jmp 0x415738
mov cl, byte [ebp - 2]
or cl, byte [0x4d9f6a]
cmp byte [0x4d8617], 0
je 0x415760
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 0x41576d
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 7]
mov byte [ebp - 0x14], al
cmp dword [0x4d983c], edi
je 0x41577f
mov al, byte [0x4d9709]
jmp 0x4158a6
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [ebp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x41579e
mov byte [ebp + 0xb], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x4157b3
or byte [ebp + 0xb], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x4157c8
or byte [ebp + 0xb], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x4157dd
or byte [ebp + 0xb], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x4157f2
or byte [ebp + 0xb], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x415807
or byte [ebp + 0xb], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x415819
or byte [ebp + 0xb], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x41582b
or byte [ebp + 0xb], 0x80
cmp dword [0x4d983c], edi
je 0x4158a3
mov bl, byte [ebp + 0xb]
not bl
and bl, byte [0x4d9709]
cmp byte [0x4d972e], 0
je 0x415861
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4d85f0]
cmp eax, 0x14
jae 0x415861
mov al, byte [0x4d972e]
not al
and bl, al
test bl, bl
je 0x4158a3
mov cl, byte [0x4d970b]
mov al, bl
not al
and byte [0x4d9709], al
and byte [0x4d970a], al
and cl, al
mov al, cl
mov byte [0x4d970b], cl
mov ecx, 0x4d9730
call fcn.00418a60
mov eax, dword [0x4d8610]
cmp eax, edi
je 0x4158a3
test byte [eax + 8], bl
je 0x4158a3
mov dword [0x4d8610], edi
mov al, byte [ebp + 0xb]
or al, byte [0x4d972c]
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.00418250
add esp, 0x14
mov ebx, 1
xor edi, edi
cmp dword [0x4d983c], edi
je 0x4158f0
mov al, byte [0x4d970a]
mov cl, al
xor cl, byte [0x4d9709]
and cl, al
not cl
and al, cl
mov byte [0x4d970a], al
cmp dword [ebp - 0x44], ebx
jne 0x415965
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x415965
push 0x14
call esi
mov edx, 0x8000
test dx, ax
je 0x415924
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push ebx
call fcn.00416450
add esp, 0x18
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.00416450
add esp, 0x18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4da710]
jne 0x415965
push ebx
push 0xffffffffffffffff
mov dword [0x4d5a1c], edi
call fcn.004014c0
add esp, 8
mov dword [0x4d5a1c], ebx
cmp byte [ebp - 0xf], 0
je 0x41597d
mov eax, dword [ebp - 0x60]
mov ecx, dword [0x4da710]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 8], 0
je 0x415997
cmp byte [ebp - 0x19], 0
jne 0x415997
push edi
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4d9f21], 0
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x4159bc
mov edx, dword [ebp - 0x5c]
cmp dword [0x4db230], edx
je 0x4159ed
call fcn.00403c50
test eax, eax
je 0x4159ed
push ebx
push 0xffffffffffffffff
call fcn.004014c0
jmp 0x4159ea
cmp eax, ebx
jne 0x4159ed
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4da710]
jne 0x4159ed
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