Function at 0x4147d0
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 0x415980
mov ebx, dword [ebp + 0xc]
mov esi, dword [0x4d5b14]
mov eax, dword [0x4db230]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x5c], eax
test ebx, ebx
jne 0x414824
push 7
push str.Blind
push edi
call fcn.0049a29a
add esp, 0xc
test eax, eax
jne 0x414824
add edi, 0xe
mov byte [0x4d8613], 1
mov dword [ebp + 8], edi
jmp 0x41482f
mov byte [0x4d8613], 0
test ebx, ebx
jne 0x414853
push 6
push str.Text
push edi
call fcn.0049a29a
add esp, 0xc
test eax, eax
jne 0x414853
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 0x41486c
cmp eax, 3
jne 0x4148c6
call fcn.0040e6d0
test al, al
jne 0x41489b
test ebx, ebx
jne 0x414892
call fcn.0040e740
test al, al
je 0x414892
mov eax, str.Click
mov ecx, edi
call fcn.00480250
test eax, eax
jne 0x41489b
mov dword [ebp + 0x10], 1
jmp 0x4148c6
cmp dword [ebp + 0x10], 3
jne 0x4148aa
mov dword [ebp + 0x10], 2
jmp 0x4148c6
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x4148bc
cmp dword [esi + 0x64], eax
jge 0x4148bc
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 0x414975
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 0x414918
cmp ebx, dword [0x4da710]
je 0x414918
mov esi, dword [ebp + 0x14]
call fcn.00485160
test al, al
jne 0x414915
mov ecx, dword [0x4da710]
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 [0x4d8638], eax
push eax
xor eax, eax
call fcn.00418ef0
add esp, 4
push 1
mov dword [0x4d8634], eax
call fcn.00418820
mov bl, al
and byte [0x4d9f89], bl
add esp, 4
cmp dword [0x4d9838], 0
mov byte [ebp - 8], bl
je 0x414acb
mov cl, byte [0x4d9705]
mov dl, byte [0x4d9707]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 0xa], cl
jmp 0x414af6
test byte [0x4db1ee], 0xc0
je 0x414a75
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4db1e4]
cmp eax, 0x32
jae 0x414a75
cmp dword [ebp + 0x10], 2
je 0x414a75
cmp byte [0x4d8613], 0
jne 0x414a75
cmp ebx, 2
je 0x414a75
cmp byte [0x4db3fe], 0
je 0x414a75
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4da710]
jne 0x414a75
mov eax, dword [ebp + 8]
test ebx, ebx
mov ebx, 0x4b41a0
je 0x414a3b
call fcn.0040557a
test eax, eax
setne al
test al, al
je 0x414a75
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call edi
mov edx, 0x8000
test dx, ax
jne 0x414a16
push 0x5c
call edi
mov ecx, 0x8000
test cx, ax
je 0x414a75
push 1
push 0x8000012f
mov dword [0x4d5a1c], 0
call fcn.004014c0
add esp, 8
mov dword [0x4d5a1c], 1
jmp 0x4149f4
call fcn.0040557a
test eax, eax
je 0x414a75
jmp 0x414a50
add eax, 2
mov ebx, 0x4b41a8
call fcn.0040557a
test eax, eax
je 0x4149f4
cmp word [eax], 0x7b
je 0x4149f4
mov ebx, 0x4b41a0
call fcn.0040557a
test eax, eax
jne 0x414a50
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
test eax, eax
je 0x414918
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 0x414918
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x414918
push 0
push eax
call ebx
mov edi, eax
jmp 0x414918
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4db1e4]
cmp eax, dword [0x4d5a14]
jae 0x414aeb
mov al, byte [0x4db1ee]
and al, bl
mov byte [ebp - 2], al
jmp 0x414af2
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4d9f88]
not al
and al, bl
and cl, al
mov al, byte [0x4d8613]
mov byte [0x4d9f88], cl
test al, al
je 0x414b1d
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 7], bl
jmp 0x414b24
mov byte [ebp - 3], 0
mov byte [ebp - 7], cl
cmp byte [esi + 0xf3], 0
je 0x414b4b
test al, al
jne 0x414b4b
cmp dword [ebp + 0xc], 2
je 0x414b4b
push 2
mov bl, 0x14
call fcn.00418060
mov bl, byte [ebp - 8]
add esp, 4
mov dword [ebp - 0x44], eax
jmp 0x414b52
mov dword [ebp - 0x44], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4d9fe0], esi
test esi, esi
je 0x414bc4
cmp esi, 1
jne 0x414b75
mov eax, 0x36b0
mov dword [0x4d8628], 0x1f4
jmp 0x414b84
mov eax, 0x2ee0
mov dword [0x4d8628], 0x5dc
call fcn.004a2a40
mov eax, esp
mov dword [0x4d8630], eax
mov eax, connect
mov byte [0x4d861b], bl
mov dword [0x4d861c], eax
mov dword [0x4d8620], eax
mov byte [0x4d861a], 0
mov dword [0x4d862c], 0
mov byte [0x4d8619], 0
mov byte [0x4d8618], 1
mov al, byte [0x4d9f1c]
mov byte [ebp - 0x19], al
mov eax, dword [0x4d5b24]
cmp eax, 8
je 0x414bdf
cmp eax, 0xa
jne 0x414ccd
test esi, esi
jne 0x414ccd
cmp dword [ebp + 0x14], esi
jne 0x414ccd
push 1
mov byte [ebp - 8], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4d9f1c], 1
mov ecx, dword [ebp + 8]
cmp word [ecx], 0
mov byte [ebp - 1], 0
je 0x4155ed
jmp 0x414c20
cmp dword [0x4d9fe0], 0
mov byte [ebp - 9], 0
jne 0x414c89
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4db234]
mov edx, dword [0x4d5b14]
cmp eax, dword [edx + 0xd8]
jbe 0x414c89
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 0x414c82
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 0x4154ec
mov esi, dword [ebp + 8]
movzx ecx, word [esi]
push ecx
push str._
call fcn.0049a7fe
add esp, 8
test eax, eax
je 0x415551
movzx eax, word [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x414cc6.34
movzx edx, byte [eax + 0x4159ac]
jmp dword [edx*4 + 0x415990]
mov byte [ebp - 8], 0
jmp 0x414c03
test byte [ebp - 7], 3
jne case.0x414cc6.34
or byte [ebp - 1], 1
jmp case.0x414cc6.34
test byte [ebp - 7], 0x30
jne case.0x414cc6.34
or byte [ebp - 1], 0x10
jmp case.0x414cc6.34
test byte [ebp - 7], 0xc
jne case.0x414cc6.34
or byte [ebp - 1], 4
jmp case.0x414cc6.34
test byte [ebp - 7], 0xc0
jne case.0x414cc6.34
or byte [ebp - 1], 0x40
jmp case.0x414cc6.34
mov esi, dword [ebp + 8]
add esi, 2
push 0x7d
push esi
call fcn.0049a7fe
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
test edi, edi
je case.0x414cc6.34
mov eax, esi
call fcn.00403fe0
mov esi, eax
mov ebx, edi
sub ebx, esi
sar ebx, 1
mov dword [ebp + 8], esi
mov dword [ebp - 0x20], ebx
jne 0x414ddd
movzx eax, word [edi + 2]
add edi, 2
cmp eax, 0x7d
jne 0x414d73
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 1
jmp 0x414dd7
cmp eax, 0x20
je 0x414d81
cmp eax, 9
jne 0x4154e1
mov eax, edi
call fcn.00403fe0
push 4
mov esi, eax
push str.Down
push esi
call fcn.0049a29a
add esp, 0xc
test eax, eax
je 0x414db6
push 2
push 0x4b1188
push esi
call fcn.0049a29a
add esp, 0xc
test eax, eax
jne 0x4154e1
push 0x7d
push esi
call fcn.0049a7fe
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
je case.0x414cc6.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.0049a29a
add esp, 0xc
test eax, eax
jne 0x414e81
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.00403fe0
call fcn.00416a00
mov ecx, 0x7d
mov word [edi], cx
mov ecx, dword [ebp - 0x14]
add esp, 0x18
cmp ecx, 1
jge 0x414e5c
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.00417600
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x4155cd
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 0x4154d6
push 3
push 0x4b41c0
push esi
call fcn.0049a29a
add esp, 0xc
test eax, eax
jne 0x414ea7
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], eax
jmp 0x4155cd
push 4
push 0x4b4110
push esi
call fcn.0049a29a
add esp, 0xc
test eax, eax
jne 0x414edd
lea eax, [esi + 8]
call fcn.00403fe0
cmp eax, edi
jne 0x4154e1
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], eax
jmp 0x4155cd
mov eax, dword [ebp + 8]
xor ecx, ecx
mov esi, 1
mov dword [ebp - 0x30], ebx
mov ebx, 0x4b3acc
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x14], esi
mov word [edi], cx
call fcn.0040557a
mov ebx, eax
test ebx, ebx
je 0x414fa7
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.00403fe0
sub edi, eax
sar edi, 1
mov dword [ebp - 0x54], eax
je 0x414fa7
push 4
mov edi, eax
push str.Down
push edi
call fcn.0049a29a
add esp, 0xc
test eax, eax
jne 0x414f84
push 4
add edi, 8
push str.Temp
push edi
mov dword [ebp - 0x18], eax
call fcn.0049a29a
add esp, 0xc
test eax, eax
jne 0x414f66
mov dword [ebp - 0x34], eax
jmp 0x414fa7
xor ecx, ecx
cmp word [edi], 0x52
sete cl
push ecx
call fcn.0049bfd7
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp - 0x34], eax
jmp 0x414fa7
push 0x4b1188
push edi
call fcn.00499b19
add esp, 8
test eax, eax
jne 0x414f9b
mov dword [ebp - 0x18], esi
jmp 0x414fa7
mov esi, edi
call fcn.00414240
mov dword [ebp - 0x14], eax
mov esi, eax
mov eax, dword [0x4d8638]
lea edx, [ebp - 0xe]
push edx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 1]
lea edi, [ebp - 0x48]
call fcn.00419470
add esp, 4
test ebx, ebx
je 0x414fcc
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 0x4154e1
mov bl, byte [ebp - 0xe]
mov edi, dword [ebp - 0x48]
test bl, bl
jne 0x41542e
test di, di
jne 0x41542e
mov eax, 1
cmp dword [ebp - 0x30], eax
jne 0x415068
cmp dword [ebp - 0x18], eax
je 0x4154e1
cmp dword [ebp + 0x14], 0
je 0x415043
test esi, esi
jle 0x4154e1
mov edi, dword [ebp + 8]
jmp 0x415020
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 0x415020
mov eax, dword [ebp - 0x24]
mov dword [ebp + 8], eax
jmp 0x4155cd
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.00415e40
mov eax, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], eax
jmp 0x4155cd
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.00419520
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x415291
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x4150a6
cmp dword [ebp - 0x18], edi
jne 0x4150a1
mov byte [ebp - 9], al
jmp 0x4150a6
call fcn.00414410
cmp dword [0x4d9fe0], 0
je 0x4150b9
mov al, byte [0x4d861b]
jmp 0x4151d4
cmp dword [0x4d9838], 0
je 0x4150cc
mov al, byte [0x4d9705]
jmp 0x4151d4
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [ebp + 0xb], 0
call esi
mov edx, 0x8000
test dx, ax
je 0x4150eb
mov byte [ebp + 0xb], 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x415100
or byte [ebp + 0xb], 0x20
push 0xa2
call esi
mov edx, 0x8000
test dx, ax
je 0x415115
or byte [ebp + 0xb], 1
push 0xa3
call esi
mov ecx, 0x8000
test cx, ax
je 0x41512a
or byte [ebp + 0xb], 2
push 0xa4
call esi
mov edx, 0x8000
test dx, ax
je 0x41513f
or byte [ebp + 0xb], 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x415154
or byte [ebp + 0xb], 8
push 0x5b
call esi
mov edx, 0x8000
test dx, ax
je 0x415166
or byte [ebp + 0xb], 0x40
push 0x5c
call esi
mov ecx, 0x8000
test cx, ax
je 0x415178
or byte [ebp + 0xb], 0x80
cmp dword [0x4d9838], 0
je 0x4151d0
mov bl, byte [ebp + 0xb]
not bl
and bl, byte [0x4d9705]
je 0x4151d0
mov cl, byte [0x4d9707]
mov al, bl
not al
and byte [0x4d9705], al
and byte [0x4d9706], al
and cl, al
mov al, cl
mov byte [0x4d9707], cl
mov ecx, 0x4d9730
call fcn.00418950
mov eax, dword [0x4d860c]
test eax, eax
je 0x4151d0
test byte [eax + 8], bl
je 0x4151d0
mov dword [0x4d860c], 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.00418170
mov eax, dword [ebp - 0x14]
add esp, 0x14
test eax, eax
jle 0x4154e1
mov ebx, dword [ebp - 0xe]
mov edi, eax
jmp 0x415200
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
push 0xffc3d44d
push 1
push eax
push 0
push ebx
push ecx
call fcn.00416370
add esp, 0x18
cmp dword [0x4d9fe0], 0
jne 0x41527f
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4db234]
mov edx, dword [0x4d5b14]
cmp eax, dword [edx + 0xd8]
jbe 0x41527f
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 0x415278
push 1
push 0xffffffffffffffff
mov dword [0x4d5a1c], 0
call fcn.004014c0
add esp, 8
mov dword [0x4d5a1c], 1
call esi
mov dword [0x4db234], eax
dec edi
jne 0x415200
mov eax, dword [ebp - 0x24]
mov dword [ebp + 8], eax
jmp 0x4155cd
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
cmp edi, 4
jbe 0x415309
push 4
push str.ASC
push esi
call fcn.0049a29a
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x41530c
test ebx, ebx
jne 0x41530c
lea eax, [esi + 6]
call fcn.00403fe0
mov edi, eax
call fcn.00415f50
cmp dword [0x4d9fe0], 2
jne 0x4152ec
mov ecx, dword [0x4d5b14]
mov eax, dword [ecx + 0x60]
push eax
call fcn.00417d70
mov eax, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], eax
jmp 0x4155cd
mov edx, dword [0x4d5b14]
mov eax, dword [edx + 0x5c]
push eax
call fcn.00417d70
mov eax, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], eax
jmp 0x4155cd
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x4154e1
push 2
push 0x4b41e0
push esi
call fcn.0049a29a
add esp, 0xc
test eax, eax
jne 0x4154e1
push 0x10
push eax
add esi, 4
push esi
call fcn.0049be8d
add esp, 0xc
cmp eax, 0x10000
jb 0x41536f
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 0x415374
movzx edi, ax
xor esi, esi
test ebx, ebx
je 0x4153a1
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 0x4153ec
push 0
movzx ecx, si
push ecx
push 0x102
push ebx
call edi
jmp 0x4153ec
cmp dword [0x4d9fe0], 2
je 0x4153cc
movzx ebx, byte [ebp - 1]
or bl, byte [ebp - 7]
push ebx
call fcn.00414490
add esp, 4
test si, si
je 0x4153ec
push ebx
mov edi, esi
call fcn.00414490
add esp, 4
jmp 0x4153ec
push 0xa
lea ecx, [ebp - 0x72]
push ecx
mov edx, 0x30
push eax
mov word [ebp - 0x74], dx
call fcn.00499895
add esp, 0xc
lea edi, [ebp - 0x74]
call fcn.00415f50
cmp dword [0x4d9fe0], 2
jne 0x415412
mov edx, dword [0x4d5b14]
mov eax, dword [edx + 0x60]
push eax
call fcn.00417d70
mov eax, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], eax
jmp 0x4155cd
mov eax, dword [0x4d5b14]
mov eax, dword [eax + 0x5c]
push eax
call fcn.00417d70
mov eax, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], eax
jmp 0x4155cd
xor ecx, ecx
mov edx, edi
mov al, bl
call fcn.00418a20
mov byte [ebp - 0x3c], al
test al, al
je 0x4154b3
cmp dword [ebp + 0x14], 0
jne 0x4154b3
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x415473
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 9], bl
cmp ecx, 1
jne 0x415463
or byte [0x4d9f88], al
or byte [ebp - 7], al
jmp 0x4154b3
cmp ecx, 2
jne 0x41546e
or byte [0x4d9f89], al
or byte [ebp - 7], al
jmp 0x4154b3
cmp ecx, 1
jne 0x4154b3
mov al, bl
call fcn.00414410
mov al, byte [ebp - 0x3c]
mov cl, byte [0x4d9f88]
not al
and byte [0x4d9f89], al
and byte [ebp - 3], al
and cl, al
mov byte [0x4d9f88], cl
cmp bl, 0xa5
jne 0x4154ad
cmp dword [0x4d8634], 3
jne 0x4154ad
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.00415a30
add esp, 0x24
mov eax, dword [ebp - 0x24]
mov dword [ebp + 8], eax
jmp 0x4155cd
cmp edi, 2
jne 0x415551
mov ecx, dword [ebp + 8]
movzx eax, word [ecx]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x4154ff.11
jmp dword [eax*4 + 0x415a0c]
cmp word [ecx + 2], 0xa
jne case.0x4154ff.10
add ecx, 2
mov dword [ebp + 8], ecx
mov byte [ebp - 0xe], 0xd
jmp 0x415583
mov byte [ebp - 0xe], 8
jmp 0x415583
mov byte [ebp - 0xe], 9
jmp 0x415583
mov byte [ebp - 0xe], 0
mov ecx, dword [ebp + 0x14]
mov al, byte [ebp - 1]
test ecx, ecx
je 0x4155b3
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 0x4155cd
mov al, byte [ebp - 1]
or al, byte [ebp - 7]
je 0x415561
test edi, edi
jne 0x415561
mov al, 1
jmp 0x415563
xor al, al
mov ecx, dword [0x4d8638]
mov edx, dword [ebp + 8]
mov si, word [edx]
push eax
push ecx
lea edi, [ebp - 1]
call fcn.004193b0
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x415529
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.00415a30
add esp, 0x24
jmp 0x4155cd
or al, byte [ebp - 7]
mov edx, dword [ebp + 8]
movzx eax, al
push eax
mov ax, word [edx]
mov ecx, 1
call fcn.00415e40
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 [0x4d9f63], cl
jne 0x414c20
xor edi, edi
cmp dword [0x4d9fe0], edi
je 0x4156ae
cmp byte [0x4d8619], 0
mov dword [ebp + 8], 0xffffffff
jne 0x415666
cmp dword [0x4d862c], edi
jbe 0x415666
cmp byte [0x4d8613], 0
je 0x415620
xor eax, eax
jmp 0x41562c
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 2]
not eax
and eax, edx
or al, byte [0x4d9f89]
push 1
or al, byte [ebp - 7]
push 1
mov byte [ebp - 0x14], al
movzx eax, byte [0x4d861b]
mov edi, dword [ebp - 0x14]
push 0
push eax
push edi
mov esi, 0xffc3d44d
call fcn.00418170
add esp, 0x14
lea ecx, [ebp + 8]
push edi
push ecx
call fcn.00417c20
add esp, 8
xor edi, edi
mov eax, dword [0x4d9fe0]
mov ebx, 1
sub eax, ebx
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4d8628], eax
jbe 0x415697
mov edx, dword [0x4d8630]
push edx
call fcn.0049a07d
add esp, 4
mov eax, dword [ebp + 8]
push eax
mov dword [0x4d9fe0], edi
call fcn.00417d70
add esp, 4
jmp 0x415854
cmp dword [0x4d9838], edi
je 0x4156be
mov cl, byte [0x4d9707]
jmp 0x4156e1
cmp dword [0x4d5a14], edi
jl 0x4156de
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4db1e4]
cmp eax, dword [0x4d5a14]
jb 0x4156de
xor cl, cl
jmp 0x4156e1
mov cl, byte [ebp - 2]
or cl, byte [0x4d9f89]
cmp byte [0x4d8613], 0
je 0x415709
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 0x415716
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 7]
mov byte [ebp - 0x14], al
cmp dword [0x4d9838], edi
je 0x415728
mov al, byte [0x4d9705]
jmp 0x41582a
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [ebp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x415747
mov byte [ebp + 0xb], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x41575c
or byte [ebp + 0xb], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x415771
or byte [ebp + 0xb], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x415786
or byte [ebp + 0xb], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x41579b
or byte [ebp + 0xb], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x4157b0
or byte [ebp + 0xb], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x4157c2
or byte [ebp + 0xb], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x4157d4
or byte [ebp + 0xb], 0x80
cmp dword [0x4d9838], edi
je 0x415827
mov bl, byte [ebp + 0xb]
not bl
and bl, byte [0x4d9705]
je 0x415827
mov cl, byte [0x4d9707]
mov al, bl
not al
and byte [0x4d9705], al
and byte [0x4d9706], al
and cl, al
mov al, cl
mov byte [0x4d9707], cl
mov ecx, 0x4d9730
call fcn.00418950
mov eax, dword [0x4d860c]
cmp eax, edi
je 0x415827
test byte [eax + 8], bl
je 0x415827
mov dword [0x4d860c], edi
mov al, byte [ebp + 0xb]
or al, byte [0x4d9728]
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.00418170
add esp, 0x14
mov ebx, 1
xor edi, edi
cmp dword [0x4d9838], edi
je 0x415874
mov al, byte [0x4d9706]
mov cl, al
xor cl, byte [0x4d9705]
and cl, al
not cl
and al, cl
mov byte [0x4d9706], al
cmp dword [ebp - 0x44], ebx
jne 0x4158e9
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x4158e9
push 0x14
call esi
mov edx, 0x8000
test dx, ax
je 0x4158a8
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push ebx
call fcn.00416370
add esp, 0x18
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.00416370
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 0x4158e9
push ebx
push 0xffffffffffffffff
mov dword [0x4d5a1c], edi
call fcn.004014c0
add esp, 8
mov dword [0x4d5a1c], ebx
cmp byte [ebp - 0xf], 0
je 0x415901
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 0x41591b
cmp byte [ebp - 0x19], 0
jne 0x41591b
push edi
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4d9f1c], 0
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x415940
mov edx, dword [ebp - 0x5c]
cmp dword [0x4db230], edx
je 0x415971
call fcn.00403c40
test eax, eax
je 0x415971
push ebx
push 0xffffffffffffffff
call fcn.004014c0
jmp 0x41596e
cmp eax, ebx
jne 0x415971
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4da710]
jne 0x415971
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