Function at 0x4148b0
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 0x415a3c
mov ebx, dword [ebp + 0xc]
mov edi, dword [0x4d6b14]
mov eax, dword [0x4dc230]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x5c], eax
test ebx, ebx
jne 0x414904
push 7
push str.Blind
push esi
call fcn.0049a46a
add esp, 0xc
test eax, eax
jne 0x414904
add esi, 0xe
mov byte [0x4d9617], 1
mov dword [ebp + 8], esi
jmp 0x41490f
mov byte [0x4d9617], 0
test ebx, ebx
jne 0x414933
push 6
push str.Text
push esi
call fcn.0049a46a
add esp, 0xc
test eax, eax
jne 0x414933
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 0x41494c
cmp eax, 3
jne 0x4149a6
call fcn.0040e780
test al, al
jne 0x41497b
test ebx, ebx
jne 0x414972
call fcn.0040e7f0
test al, al
je 0x414972
mov eax, str.Click
mov ecx, esi
call fcn.00480420
test eax, eax
jne 0x41497b
mov dword [ebp + 0x10], 1
jmp 0x4149a6
cmp dword [ebp + 0x10], 3
jne 0x41498a
mov dword [ebp + 0x10], 2
jmp 0x4149a6
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [edi + 0x5c], eax
jge 0x41499c
cmp dword [edi + 0x64], eax
jge 0x41499c
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 0x414a00
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov dword [ebp - 0x60], ebx
test ebx, ebx
je 0x414b3a
cmp ebx, dword [0x4db710]
je 0x414b3a
mov esi, dword [ebp + 0x14]
call fcn.00485330
test al, al
jne 0x414b3a
mov eax, dword [0x4db710]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xf]
mov edi, ebx
jmp 0x414b3a
test byte [0x4dc1ee], 0xc0
je 0x414af5
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x4dc1e4]
cmp eax, 0x32
jae 0x414af5
cmp dword [ebp + 0x10], 2
je 0x414af5
cmp byte [0x4d9617], 0
jne 0x414af5
cmp ebx, 2
je 0x414af5
cmp byte [0x4dc3fe], 0
je 0x414af5
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp eax, dword [0x4db710]
jne 0x414af5
test ebx, ebx
mov eax, esi
mov ebx, 0x4b51b0
je 0x414ac7
call fcn.004055aa
test eax, eax
setne al
test al, al
je 0x414af5
lea ebx, [ebx]
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
jne 0x414aa2
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x414af5
push 1
push 0x8000012f
mov dword [0x4d6a1c], 0
call fcn.004014c0
add esp, 8
mov dword [0x4d6a1c], 1
jmp 0x414a80
call fcn.004055aa
test eax, eax
je 0x414af5
add eax, 2
mov ebx, 0x4b51b8
call fcn.004055aa
test eax, eax
je 0x414a80
cmp word [eax], 0x7b
je 0x414a80
mov ebx, 0x4b51b0
call fcn.004055aa
test eax, eax
jne 0x414ad0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
test eax, eax
je 0x414b3a
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 0x414b3a
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x414b3a
push 0
push eax
call ebx
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4d963c], eax
push eax
xor eax, eax
call fcn.00419050
add esp, 4
push 1
mov dword [0x4d9638], eax
call fcn.00418950
mov bl, al
and byte [0x4daf6a], bl
add esp, 4
cmp dword [0x4da83c], 0
mov byte [ebp - 8], bl
je 0x414b90
mov cl, byte [0x4da709]
mov dl, byte [0x4da70b]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 0xa], cl
jmp 0x414bbb
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x4dc1e4]
cmp eax, dword [0x4d6a14]
jae 0x414bb0
mov al, byte [0x4dc1ee]
and al, bl
mov byte [ebp - 2], al
jmp 0x414bb7
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4daf57]
not al
and al, bl
and cl, al
mov al, byte [0x4d9617]
mov byte [0x4daf57], cl
test al, al
je 0x414be2
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 7], bl
jmp 0x414be9
mov byte [ebp - 3], 0
mov byte [ebp - 7], cl
mov ecx, dword [ebp - 0x28]
cmp byte [ecx + 0xf3], 0
je 0x414c13
test al, al
jne 0x414c13
cmp dword [ebp + 0xc], 2
je 0x414c13
push 2
mov bl, 0x14
call fcn.00418190
mov bl, byte [ebp - 8]
add esp, 4
mov dword [ebp - 0x44], eax
jmp 0x414c1a
mov dword [ebp - 0x44], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4dafe0], esi
test esi, esi
je 0x414c8c
cmp esi, 1
jne 0x414c3d
mov eax, 0x36b0
mov dword [0x4d962c], 0x1f4
jmp 0x414c4c
mov eax, 0x2ee0
mov dword [0x4d962c], 0x5dc
call fcn.004a2c10
mov eax, esp
mov dword [0x4d9634], eax
mov eax, closesocket
mov byte [0x4d961f], bl
mov dword [0x4d9620], eax
mov dword [0x4d9624], eax
mov byte [0x4d961e], 0
mov dword [0x4d9630], 0
mov byte [0x4d961d], 0
mov byte [0x4d961c], 1
mov eax, dword [0x4d6b24]
mov dl, byte [0x4daf21]
mov byte [ebp - 0x19], dl
cmp eax, 8
je 0x414ca8
cmp eax, 0xa
jne 0x414d90
test esi, esi
jne 0x414d90
cmp dword [ebp + 0x14], esi
jne 0x414d90
push 1
mov byte [ebp - 8], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov esi, dword [0x4dafe0]
mov byte [0x4daf21], 1
mov eax, dword [ebp + 8]
cmp word [eax], 0
mov byte [ebp - 1], 0
je 0x415685
cmp dword [0x4dafe0], 0
mov byte [ebp - 9], 0
jne 0x414d4c
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
sub eax, dword [0x4dc234]
mov ecx, dword [0x4d6b14]
cmp eax, dword [ecx + 0xd8]
jbe 0x414d4c
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 0x414d45
push 1
push 0xffffffffffffffff
mov dword [0x4d6a1c], 0
call fcn.004014c0
add esp, 8
mov dword [0x4d6a1c], 1
call esi
mov dword [0x4dc234], eax
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x415588
mov esi, dword [ebp + 8]
movzx eax, word [esi]
push eax
push 0x4b51c0
call fcn.0049a9ce
add esp, 8
test eax, eax
je 0x4155e6
movzx eax, word [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x414d89.34
movzx ecx, byte [eax + 0x415a68]
jmp dword [ecx*4 + 0x415a4c]
mov byte [ebp - 8], 0
jmp 0x414cd2
test byte [ebp - 7], 3
jne case.0x414d89.34
or byte [ebp - 1], 1
jmp case.0x414d89.34
test byte [ebp - 7], 0x30
jne case.0x414d89.34
or byte [ebp - 1], 0x10
jmp case.0x414d89.34
test byte [ebp - 7], 0xc
jne case.0x414d89.34
or byte [ebp - 1], 4
jmp case.0x414d89.34
test byte [ebp - 7], 0xc0
jne case.0x414d89.34
or byte [ebp - 1], 0x40
jmp case.0x414d89.34
mov esi, dword [ebp + 8]
add esi, 2
push 0x7d
push esi
call fcn.0049a9ce
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
test edi, edi
je case.0x414d89.34
mov eax, esi
call fcn.00404010
mov esi, eax
mov ebx, edi
sub ebx, esi
sar ebx, 1
mov dword [ebp + 8], esi
mov dword [ebp - 0x20], ebx
jne 0x414ea0
movzx eax, word [edi + 2]
add edi, 2
cmp eax, 0x7d
jne 0x414e36
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 1
jmp 0x414e9a
cmp eax, 0x20
je 0x414e44
cmp eax, 9
jne 0x41557d
mov eax, edi
call fcn.00404010
push 4
mov esi, eax
push str.Down
push esi
call fcn.0049a46a
add esp, 0xc
test eax, eax
je 0x414e79
push 2
push 0x4b2198
push esi
call fcn.0049a46a
add esp, 0xc
test eax, eax
jne 0x41557d
push 0x7d
push esi
call fcn.0049a9ce
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
je case.0x414d89.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 0x4b3bdc
push esi
call fcn.0049a46a
add esp, 0xc
test eax, eax
jne 0x414f46
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.00404010
call fcn.00416b20
mov ecx, dword [ebp - 0x14]
add esp, 0x18
mov eax, 0x7d
mov word [edi], ax
cmp ecx, 1
jge 0x414f21
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.00417720
mov ecx, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp + 8], ecx
jmp 0x41565f
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 0x415572
push 3
push 0x4b51d0
push esi
call fcn.0049a46a
add esp, 0xc
test eax, eax
jne 0x414f6c
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], ecx
jmp 0x41565f
push 4
push 0x4b5120
push esi
call fcn.0049a46a
add esp, 0xc
test eax, eax
jne 0x414fa2
lea eax, [esi + 8]
call fcn.00404010
cmp eax, edi
jne 0x41557d
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], ecx
jmp 0x41565f
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp + 8]
mov esi, 1
mov dword [ebp - 0x30], ebx
mov ebx, 0x4b4adc
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x14], esi
call fcn.004055aa
mov ebx, eax
test ebx, ebx
je 0x41506a
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.00404010
sub edi, eax
sar edi, 1
mov dword [ebp - 0x54], eax
je 0x41506a
push 4
mov edi, eax
push str.Down
push edi
call fcn.0049a46a
add esp, 0xc
test eax, eax
jne 0x415047
push 4
add edi, 8
push str.Temp
push edi
mov dword [ebp - 0x18], eax
call fcn.0049a46a
add esp, 0xc
test eax, eax
jne 0x415029
mov dword [ebp - 0x34], eax
jmp 0x41506a
xor eax, eax
cmp word [edi], 0x52
sete al
push eax
call fcn.0049c1a7
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp - 0x34], eax
jmp 0x41506a
push 0x4b2198
push edi
call fcn.00499ce9
add esp, 8
test eax, eax
jne 0x41505e
mov dword [ebp - 0x18], esi
jmp 0x41506a
mov esi, edi
call fcn.00414300
mov dword [ebp - 0x14], eax
mov esi, eax
mov eax, dword [0x4d963c]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xe]
push ecx
lea ecx, [ebp - 1]
lea edi, [ebp - 0x48]
call fcn.004195d0
add esp, 4
test ebx, ebx
je 0x41508f
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 0x41557d
mov bl, byte [ebp - 0xe]
mov edi, dword [ebp - 0x48]
test bl, bl
jne 0x4154ca
test di, di
jne 0x4154ca
mov eax, 1
cmp dword [ebp - 0x30], eax
jne 0x415128
cmp dword [ebp - 0x18], eax
je 0x41557d
cmp dword [ebp + 0x14], 0
je 0x415103
test esi, esi
jle 0x41557d
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 0x4150e0
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
jmp 0x41565f
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.00415f40
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x41565f
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.00419680
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x415370
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x415166
cmp dword [ebp - 0x18], edi
jne 0x415161
mov byte [ebp - 9], al
jmp 0x415166
call fcn.004144d0
cmp dword [0x4dafe0], 0
je 0x415179
mov al, byte [0x4d961f]
jmp 0x4152b9
cmp dword [0x4da83c], 0
je 0x41518c
mov al, byte [0x4da709]
jmp 0x4152b9
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [ebp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x4151ab
mov byte [ebp + 0xb], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x4151c0
or byte [ebp + 0xb], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x4151d5
or byte [ebp + 0xb], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x4151ea
or byte [ebp + 0xb], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x4151ff
or byte [ebp + 0xb], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x415214
or byte [ebp + 0xb], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x415226
or byte [ebp + 0xb], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x415238
or byte [ebp + 0xb], 0x80
cmp dword [0x4da83c], 0
je 0x4152b5
mov bl, byte [ebp + 0xb]
not bl
and bl, byte [0x4da709]
cmp byte [0x4da72e], 0
je 0x41526f
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x4d95f0]
cmp eax, 0x14
jae 0x41526f
mov al, byte [0x4da72e]
not al
and bl, al
test bl, bl
je 0x4152b5
mov cl, byte [0x4da70b]
mov al, bl
not al
and byte [0x4da709], al
and byte [0x4da70a], al
and cl, al
mov al, cl
mov byte [0x4da70b], cl
mov ecx, 0x4da730
call fcn.00418ab0
mov eax, dword [0x4d9610]
test eax, eax
je 0x4152b5
test byte [eax + 8], bl
je 0x4152b5
mov dword [0x4d9610], 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.004182a0
mov eax, dword [ebp - 0x14]
add esp, 0x14
test eax, eax
jle 0x41557d
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.00416490
add esp, 0x18
cmp dword [0x4dafe0], 0
jne 0x41535e
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x4dc234]
mov ecx, dword [0x4d6b14]
cmp eax, dword [ecx + 0xd8]
jbe 0x41535e
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 0x415353
push 1
push 0xffffffffffffffff
mov dword [0x4d6a1c], 0
call fcn.004014c0
add esp, 8
mov dword [0x4d6a1c], 1
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x4dc234], eax
dec ebx
jne 0x4152e0
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
jmp 0x41565f
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
cmp edi, 4
jbe 0x4153a5
push 4
push str.ASC
push esi
call fcn.0049a46a
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x4153a8
test ebx, ebx
jne 0x4153a8
lea eax, [esi + 6]
call fcn.00404010
mov edi, eax
jmp 0x415483
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x41557d
push 2
push 0x4b51f0
push esi
call fcn.0049a46a
add esp, 0xc
test eax, eax
jne 0x41557d
push 0x10
push eax
add esi, 4
push esi
call fcn.0049c05d
add esp, 0xc
cmp eax, 0x10000
jb 0x41540b
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 0x415410
movzx edi, ax
xor esi, esi
test ebx, ebx
je 0x41543d
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 0x415488
push 0
movzx eax, si
push eax
push 0x102
push ebx
call edi
jmp 0x415488
cmp dword [0x4dafe0], 2
je 0x415468
movzx ebx, byte [ebp - 1]
or bl, byte [ebp - 7]
push ebx
call fcn.00414550
add esp, 4
test si, si
je 0x415488
push ebx
mov edi, esi
call fcn.00414550
add esp, 4
jmp 0x415488
push 0xa
lea edx, [ebp - 0x72]
push edx
mov ecx, 0x30
push eax
mov word [ebp - 0x74], cx
call fcn.00499a65
add esp, 0xc
lea edi, [ebp - 0x74]
call fcn.00416050
cmp dword [0x4dafe0], 2
jne 0x4154ad
mov eax, dword [0x4d6b14]
mov eax, dword [eax + 0x60]
push eax
call fcn.00417ea0
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x41565f
mov ecx, dword [0x4d6b14]
mov eax, dword [ecx + 0x5c]
push eax
call fcn.00417ea0
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x41565f
xor ecx, ecx
mov edx, edi
mov al, bl
call fcn.00418b80
mov byte [ebp - 0x3c], al
test al, al
je 0x41554f
cmp dword [ebp + 0x14], 0
jne 0x41554f
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x41550f
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 9], bl
cmp ecx, 1
jne 0x4154ff
or byte [0x4daf57], al
or byte [ebp - 7], al
jmp 0x41554f
cmp ecx, 2
jne 0x41550a
or byte [0x4daf6a], al
or byte [ebp - 7], al
jmp 0x41554f
cmp ecx, 1
jne 0x41554f
mov al, bl
call fcn.004144d0
mov al, byte [ebp - 0x3c]
mov cl, byte [0x4daf57]
not al
and byte [0x4daf6a], al
and byte [ebp - 3], al
and cl, al
mov byte [0x4daf57], cl
cmp bl, 0xa5
jne 0x415549
cmp dword [0x4d9638], 3
jne 0x415549
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 closesocket
push closesocket
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.00415ae0
add esp, 0x24
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
jmp 0x41565f
cmp edi, 2
jne 0x4155e6
mov ecx, dword [ebp + 8]
movzx eax, word [ecx]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x41559b.11
jmp dword [eax*4 + 0x415ac8]
cmp word [ecx + 2], 0xa
jne case.0x41559b.10
add ecx, 2
mov dword [ebp + 8], ecx
mov byte [ebp - 0xe], 0xd
jmp 0x415618
mov byte [ebp - 0xe], 8
jmp 0x415618
mov byte [ebp - 0xe], 9
jmp 0x415618
mov byte [ebp - 0xe], 0
mov ecx, dword [ebp + 0x14]
mov al, byte [ebp - 1]
mov edx, dword [ebp + 8]
test ecx, ecx
je 0x415648
movzx eax, word [edx]
push 0
push eax
push 0x102
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x41565f
mov al, byte [ebp - 1]
or al, byte [ebp - 7]
je 0x4155f6
test edi, edi
jne 0x4155f6
mov al, 1
jmp 0x4155f8
xor al, al
mov edx, dword [0x4d963c]
push eax
mov eax, dword [ebp + 8]
mov si, word [eax]
push edx
lea edi, [ebp - 1]
call fcn.00419510
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x4155c5
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 7]
mov eax, dword [ebp - 0xe]
push 0
push closesocket
push closesocket
push ecx
push 0
push 2
push edx
push 0
push eax
mov al, byte [ebp - 1]
mov ecx, 1
call fcn.00415ae0
add esp, 0x24
jmp 0x41565f
or al, byte [ebp - 7]
movzx ecx, al
mov ax, word [edx]
push ecx
mov ecx, 1
call fcn.00415f40
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 [0x4daf56], cl
jne 0x414ce3
mov esi, dword [0x4dafe0]
xor edi, edi
cmp esi, edi
je 0x415745
cmp byte [0x4d961d], 0
mov dword [ebp + 8], 0xffffffff
jne 0x415700
cmp dword [0x4d9630], edi
jbe 0x415700
cmp byte [0x4d9617], 0
je 0x4156b4
xor eax, eax
jmp 0x4156c0
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 2]
not eax
and eax, edx
or al, byte [0x4daf6a]
push 1
or al, byte [ebp - 7]
push 1
mov byte [ebp - 0x14], al
movzx eax, byte [0x4d961f]
mov edi, dword [ebp - 0x14]
push 0
push eax
push edi
mov esi, 0xffc3d44d
call fcn.004182a0
add esp, 0x14
lea ecx, [ebp + 8]
push edi
push ecx
call fcn.00417d40
mov esi, dword [0x4dafe0]
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 [0x4d962c], esi
jbe 0x41572e
mov edx, dword [0x4d9634]
push edx
call fcn.0049a24d
add esp, 4
mov eax, dword [ebp + 8]
push eax
mov dword [0x4dafe0], edi
call fcn.00417ea0
add esp, 4
jmp 0x415910
cmp dword [0x4da83c], edi
je 0x415755
mov cl, byte [0x4da70b]
jmp 0x415778
cmp dword [0x4d6a14], edi
jl 0x415775
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x4dc1e4]
cmp eax, dword [0x4d6a14]
jb 0x415775
xor cl, cl
jmp 0x415778
mov cl, byte [ebp - 2]
or cl, byte [0x4daf6a]
cmp byte [0x4d9617], 0
je 0x4157a0
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 0x4157ad
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 7]
mov byte [ebp - 0x14], al
cmp dword [0x4da83c], edi
je 0x4157bf
mov al, byte [0x4da709]
jmp 0x4158e6
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [ebp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x4157de
mov byte [ebp + 0xb], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x4157f3
or byte [ebp + 0xb], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x415808
or byte [ebp + 0xb], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x41581d
or byte [ebp + 0xb], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x415832
or byte [ebp + 0xb], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x415847
or byte [ebp + 0xb], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x415859
or byte [ebp + 0xb], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x41586b
or byte [ebp + 0xb], 0x80
cmp dword [0x4da83c], edi
je 0x4158e3
mov bl, byte [ebp + 0xb]
not bl
and bl, byte [0x4da709]
cmp byte [0x4da72e], 0
je 0x4158a1
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x4d95f0]
cmp eax, 0x14
jae 0x4158a1
mov al, byte [0x4da72e]
not al
and bl, al
test bl, bl
je 0x4158e3
mov cl, byte [0x4da70b]
mov al, bl
not al
and byte [0x4da709], al
and byte [0x4da70a], al
and cl, al
mov al, cl
mov byte [0x4da70b], cl
mov ecx, 0x4da730
call fcn.00418ab0
mov eax, dword [0x4d9610]
cmp eax, edi
je 0x4158e3
test byte [eax + 8], bl
je 0x4158e3
mov dword [0x4d9610], edi
mov al, byte [ebp + 0xb]
or al, byte [0x4da72c]
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.004182a0
add esp, 0x14
mov ebx, 1
xor edi, edi
cmp dword [0x4da83c], edi
je 0x415930
mov al, byte [0x4da70a]
mov cl, al
xor cl, byte [0x4da709]
and cl, al
not cl
and al, cl
mov byte [0x4da70a], al
cmp dword [ebp - 0x44], ebx
jne 0x4159a5
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x4159a5
push 0x14
call esi
mov edx, 0x8000
test dx, ax
je 0x415964
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push ebx
call fcn.00416490
add esp, 0x18
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.00416490
add esp, 0x18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4db710]
jne 0x4159a5
push ebx
push 0xffffffffffffffff
mov dword [0x4d6a1c], edi
call fcn.004014c0
add esp, 8
mov dword [0x4d6a1c], ebx
cmp byte [ebp - 0xf], 0
je 0x4159bd
mov eax, dword [ebp - 0x60]
mov ecx, dword [0x4db710]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 8], 0
je 0x4159d7
cmp byte [ebp - 0x19], 0
jne 0x4159d7
push edi
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4daf21], 0
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x4159fc
mov edx, dword [ebp - 0x5c]
cmp dword [0x4dc230], edx
je 0x415a2d
call fcn.00403c50
test eax, eax
je 0x415a2d
push ebx
push 0xffffffffffffffff
call fcn.004014c0
jmp 0x415a2a
cmp eax, ebx
jne 0x415a2d
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4db710]
jne 0x415a2d
push ebx
push 0xffffffffffffffff
mov dword [0x4d6a1c], edi
call fcn.004014c0
mov dword [0x4d6a1c], 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