Function at 0x419820
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xc8
push ebx
mov ebx, ecx
push esi
mov esi, edx
mov dword [ebp + 0x68], ebx
push edi
cmp word [ebx], 0
mov dword [ebp + 0x50], esi
je 0x41aad9
mov eax, dword [0x4f70f4]
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
mov dword [ebp + 0x48], eax
mov eax, dword [0x4fc690]
mov dword [ebp + 0xc], eax
mov eax, dword fs:[0x24]
mov dword [ebp + 0x24], eax
test esi, esi
jne 0x419885
push 7
push str.Blind
push ebx
call edi
add esp, 0xc
test eax, eax
jne 0x419885
add ebx, 0xe
mov byte [0x4fc92c], 1
mov dword [ebp + 0x68], ebx
jmp 0x419890
mov byte [0x4fc92c], 0
test esi, esi
jne 0x4198ae
push 6
push str.Text
push ebx
call edi
add esp, 0xc
test eax, eax
jne 0x4198ae
add ebx, 0xc
mov dword [ebp + 0x50], 2
mov dword [ebp + 0x68], ebx
mov ecx, dword [ebp + 0x48]
mov edi, dword [ebp + 0x78]
mov eax, dword [ecx + 0x5c]
mov dword [ebp + 8], eax
mov eax, dword [ecx + 0x64]
mov dword [ebp + 0x14], eax
cmp edi, 1
je 0x4198ce
cmp edi, 3
jne 0x419988
mov eax, dword [0x4fc88c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4198e0
push eax
call edi
push str.AHK_Keybd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x4fc88c], 0
mov ebx, eax
je 0x41990a
mov dword [0x4fc88c], esi
jmp 0x419911
test esi, esi
je 0x419911
push esi
call edi
cmp ebx, 0xb7
je 0x419952
cmp dword [ebp + 0x50], 0
jne 0x419945
call fcn.00413910
mov ebx, dword [ebp + 0x68]
test al, al
je 0x419948
mov edx, str.Click
mov ecx, ebx
call fcn.004afc80
test eax, eax
jne 0x419955
mov edi, 1
mov dword [ebp + 0x78], edi
jmp 0x419988
mov ebx, dword [ebp + 0x68]
mov edi, 1
mov dword [ebp + 0x78], edi
jmp 0x419988
mov ebx, dword [ebp + 0x68]
cmp dword [ebp + 0x78], 3
jne 0x419965
mov edi, 2
mov dword [ebp + 0x78], edi
jmp 0x419988
mov ecx, dword [ebp + 0x48]
xor edi, edi
mov dword [ebp + 0x78], edi
cmp dword [ecx + 0x5c], edi
jge 0x41997c
cmp dword [ecx + 0x64], edi
jge 0x41997c
or eax, 0xffffffff
jmp 0x41997e
xor eax, eax
mov dword [ecx + 0x64], eax
mov dword [ecx + 0x5c], 0xffffffff
mov eax, dword [ebp + 0x7c]
xor esi, esi
mov byte [ebp + 0x61], 0
test eax, eax
je 0x4199e4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call edi
mov edi, eax
mov dword [ebp + 0x18], edi
test edi, edi
je 0x419acd
cmp edi, dword [0x4fb2ec]
je 0x419acd
mov ecx, dword [ebp + 0x7c]
call fcn.004b60e0
test al, al
jne 0x419acd
push 1
push edi
push dword [0x4fb2ec]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
mov esi, edi
setne byte [ebp + 0x61]
jmp 0x419acd
test byte [0x4fc656], 0xc0
je 0x419a8b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4fc64c]
cmp eax, 0x32
jae 0x419a8b
cmp edi, 2
je 0x419a8b
cmp byte [0x4fc92c], 0
jne 0x419a8b
mov eax, dword [ebp + 0x50]
cmp eax, 2
je 0x419a8b
cmp byte [0x4fc85b], 0
je 0x419a8b
mov ecx, dword [ebp + 0x24]
cmp ecx, dword [0x4fb2ec]
jne 0x419a8b
test eax, eax
je 0x419b1b
mov edi, ebx
test ebx, ebx
je 0x419a81
movzx eax, word [ebx]
test ax, ax
je 0x419a81
mov esi, eax
nop dword [eax]
mov ecx, 0x4e4c94
mov edx, 0x4c
nop word [eax + eax]
cmp si, dx
je 0x419a83
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x419a60
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x419a50
xor edi, edi
test edi, edi
jne 0x419bcd
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test eax, eax
je 0x419ac7
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call edi
mov esi, eax
mov dword [ebp - 0x58], 0x30
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x419ac7
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x419ac7
push 0
push eax
call edi
mov esi, eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x18], eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
xor edx, edx
mov dword [0x4fc908], eax
mov ecx, eax
call fcn.0041df80
mov cl, 1
mov dword [0x4fc90c], eax
call fcn.0041da40
mov bl, al
and byte [0x4fc8b7], bl
cmp dword [0x4f9a08], 0
je 0x419c13
mov al, byte [0x4fa3de]
mov cl, byte [0x4fa3dc]
mov bh, al
not al
and bh, cl
and al, cl
jmp 0x419c37
mov esi, ebx
nop dword [eax]
test esi, esi
je 0x419a8b
movzx eax, word [esi]
test ax, ax
je 0x419a8b
mov edi, eax
nop word [eax + eax]
mov ecx, 0x4e4c94
mov edx, 0x4c
nop word [eax + eax]
cmp di, dx
je 0x419b76
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x419b50
movzx eax, word [esi + 2]
add esi, 2
mov edi, eax
test ax, ax
jne 0x419b40
jmp 0x419a8b
add esi, 2
je 0x419bcd
movzx eax, word [esi]
test ax, ax
je 0x419bcd
mov edi, eax
nop word [eax + eax]
mov eax, 0x4e4c9c
mov edx, 0x7b
nop word [eax + eax]
cmp di, dx
je 0x419bc3
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x419ba0
movzx eax, word [esi + 2]
add esi, 2
mov edi, eax
test ax, ax
jne 0x419b90
jmp 0x419bcd
cmp word [esi], 0x7b
jne 0x419b20
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, 0x8000
push 0x5b
call esi
test bx, ax
jne 0x419bee
push 0x5c
call esi
test bx, ax
je 0x419a8b
mov edx, 1
mov dword [0x4f70ec], 0
mov ecx, 0x8000012f
call fcn.00401830
mov dword [0x4f70ec], 1
jmp 0x419bd8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4fc64c]
cmp eax, dword [0x4f8360]
jae 0x419c31
mov cl, byte [0x4fc656]
and cl, bl
jmp 0x419c33
xor cl, cl
mov bh, cl
xor al, al
not bh
mov byte [ebp + 0x6d], cl
and bh, byte [0x4fc8b6]
and bh, bl
mov byte [ebp + 0x62], al
cmp byte [0x4fc92c], 0
mov byte [ebp + 0x6f], bh
mov byte [0x4fc8b6], bh
je 0x419c66
not bh
and bh, bl
mov al, bh
mov bh, bl
mov byte [ebp + 0x6f], bh
jmp 0x419c68
xor al, al
mov byte [ebp + 0x6c], al
mov eax, dword [ebp + 0x48]
mov byte [ebp + 0x58], bh
cmp byte [eax + 0xf3], 0
je 0x419c9a
cmp byte [0x4fc92c], 0
jne 0x419c9a
cmp dword [ebp + 0x50], 2
je 0x419c9a
mov edx, 2
mov cl, 0x14
call fcn.0041d200
mov dword [ebp + 0x1c], eax
jmp 0x419ca1
mov dword [ebp + 0x1c], 0
mov edx, dword [ebp + 0x78]
mov eax, 0x1f4
mov dword [0x4fc928], edx
mov ecx, 0x5dc
test edx, edx
je 0x419d1a
cmp edx, 1
cmovne eax, ecx
mov ecx, 0x2ee0
mov dword [0x4fc914], eax
mov eax, 0x36b0
cmovne eax, ecx
call fcn.004cb9e0
mov eax, dword [0x4f8b58]
mov ecx, esp
mov edx, dword [ebp + 0x78]
mov byte [0x4fc91c], bl
mov byte [0x4fc91d], 0
mov dword [eax], ecx
mov dword [0x4fc920], 0x80000000
mov dword [0x4fc924], 0x80000000
mov dword [0x4fc910], 0
mov byte [0x4fc91e], 0
mov byte [0x4fc91f], 1
mov al, byte [0x4f9a6e]
mov byte [ebp + 0x4f], al
mov eax, dword [0x4f7104]
cmp eax, 8
je 0x419d31
cmp eax, 0xa
jne 0x419d51
mov esi, dword [ebp + 0x7c]
test edx, edx
jne 0x419d54
test esi, esi
jne 0x419d54
push 1
mov byte [ebp + 0x60], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4f9a6e], 1
jmp 0x419d58
mov esi, dword [ebp + 0x7c]
mov byte [ebp + 0x60], 0
mov edi, dword [ebp + 0x68]
xor bl, bl
mov byte [ebp + 0x64], bl
cmp word [edi], 0
je 0x41a7da
jmp 0x419d73
mov esi, dword [ebp + 0x7c]
cmp dword [0x4fc928], 0
mov byte [ebp + 0x63], 0
jne 0x419ddc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4f70f4]
sub eax, dword [0x4fc694]
cmp eax, dword [ecx + 0xd8]
jbe 0x419ddc
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x419dd1
mov edx, 1
mov dword [0x4f70ec], 0
or ecx, 0xffffffff
call fcn.00401830
mov dword [0x4f70ec], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4fc694], eax
mov eax, dword [ebp + 0x50]
test eax, eax
jne 0x41a701
movzx eax, word [edi]
push eax
push 0x4e4ca4
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
je 0x41a73e
movzx eax, word [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x419e17.34
movzx eax, byte [eax + 0x41ab00]
jmp dword [eax*4 + 0x41aae4]
test bh, 3
jne case.0x419e17.34
or bl, 1
jmp 0x41a7c2
test bh, 0x30
jne case.0x419e17.34
or bl, 0x10
jmp 0x41a7c2
test bh, 0xc
jne case.0x419e17.34
or bl, 4
jmp 0x41a7c2
test bh, 0xc0
jne case.0x419e17.34
or bl, 0x40
jmp 0x41a7c2
lea esi, [edi + 2]
push 0x7d
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
mov dword [ebp + 0x54], eax
test eax, eax
je case.0x419e17.34
mov edi, esi
nop
movzx ecx, word [edi]
cmp ecx, 0x20
je 0x419e8d
cmp ecx, 9
jne 0x419e92
add edi, 2
jmp 0x419e80
mov esi, eax
mov dword [ebp + 0x68], edi
sub esi, edi
sar esi, 1
mov dword [ebp + 0x34], esi
jne 0x419f28
lea esi, [eax + 2]
movzx eax, word [esi]
cmp eax, 0x7d
jne 0x419eb7
mov dword [ebp + 0x54], esi
lea esi, [eax - 0x7c]
jmp 0x419f25
cmp eax, 0x20
je 0x419ec5
cmp eax, 9
jne 0x41a6f9
cmp ax, 0x20
je 0x419ed1
cmp ax, 9
jne 0x419eda
movzx eax, word [esi + 2]
add esi, 2
jmp 0x419ec5
push 4
push str.Down
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x419f08
push 2
push 0x4e37b4
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x41a6f9
push 0x7d
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
mov dword [ebp + 0x54], eax
test eax, eax
je case.0x419e17.34
mov esi, eax
sub esi, edi
sar esi, 1
mov dword [ebp + 0x34], esi
push 5
push 0x4e1c60
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x419fe7
mov eax, dword [ebp + 0x54]
xor ecx, ecx
mov word [eax], cx
lea ecx, [edi + 0xa]
nop dword [eax]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x419f5d
cmp eax, 9
jne 0x419f62
add ecx, 2
jmp 0x419f50
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x6e]
push eax
lea eax, [ebp + 0x2c]
push eax
lea edx, [ebp + 0x28]
call fcn.0041b900
mov eax, dword [ebp + 0x54]
add esp, 0x14
mov ecx, 0x7d
push dword [ebp + 0x20]
mov word [eax], cx
mov eax, dword [ebp + 0x30]
cmp eax, 1
jge 0x419fbc
mov eax, dword [ebp + 0x48]
lea edx, [ebp + 0x2c]
lea ecx, [ebp + 0x28]
movzx eax, byte [eax + 0xef]
push eax
lea eax, [ebp + 4]
push eax
call fcn.0041c560
mov edi, dword [ebp + 0x54]
add esp, 0xc
jmp 0x41a7c0
push dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x7c]
xor edx, edx
push dword [ebp + 0x28]
push ecx
mov cl, byte [ebp + 0x6e]
push 0
push dword [ebp + 0x5c]
push eax
push dword [ebp + 0x58]
push dword [ebp + 0x64]
call fcn.0041ab80
mov edi, dword [ebp + 0x54]
add esp, 0x24
jmp 0x41a7c0
push 3
push 0x4e4cb4
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x41a00b
mov edi, dword [ebp + 0x54]
mov dword [ebp + 0x50], 1
jmp 0x41a7c0
push 4
push 0x4e4c04
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x41a04d
lea ecx, [edi + 8]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x41a030
cmp eax, 9
jne 0x41a035
add ecx, 2
jmp 0x41a023
cmp ecx, dword [ebp + 0x54]
jne 0x41a6f9
mov edi, dword [ebp + 0x54]
mov dword [ebp + 0x50], 2
jmp 0x41a7c0
mov eax, dword [ebp + 0x54]
xor ecx, ecx
mov edi, 1
mov dword [ebp + 0x5c], 2
mov dword [ebp + 0x40], edi
mov dword [ebp + 0x30], edi
mov word [eax], cx
mov ecx, dword [ebp + 0x68]
mov ebx, ecx
mov dword [ebp + 0x38], esi
movzx eax, word [ecx]
test ax, ax
je 0x41a276
mov esi, eax
nop dword [eax]
mov edx, 0x4e4614
mov ecx, 0x20
nop word [eax + eax]
cmp si, cx
je 0x41a0d2
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
test ax, ax
jne 0x41a090
movzx eax, word [ebx + 2]
add ebx, 2
mov esi, eax
test ax, ax
jne 0x41a080
push dword [0x4fc908]
mov ecx, dword [ebp + 0x68]
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x3c]
push eax
lea edx, [ebp + 0x6e]
call fcn.0041e590
add esp, 0xc
jmp 0x41a1a9
movzx edi, word [ebx]
lea esi, [ebx + 2]
xor eax, eax
mov word [ebx], ax
mov eax, ebx
sub eax, dword [ebp + 0x68]
sar eax, 1
mov dword [ebp + 0x38], eax
movzx eax, word [esi]
cmp eax, 0x20
je 0x41a0f4
cmp eax, 9
jne 0x41a0f9
add esi, 2
jmp 0x41a0e7
mov eax, dword [ebp + 0x54]
sub eax, esi
sar eax, 1
je 0x41a183
push 4
push str.Down
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x41a15a
push 4
add esi, 8
mov dword [ebp + 0x5c], eax
push str.Temp
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x41a13b
mov dword [ebp + 0x44], eax
jmp 0x41a183
xor eax, eax
cmp word [esi], 0x52
sete al
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
add esp, 4
neg eax
sbb esi, esi
neg esi
inc esi
mov dword [ebp + 0x44], esi
jmp 0x41a183
push 0x4e37b4
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x41a176
mov dword [ebp + 0x5c], 1
jmp 0x41a183
mov ecx, esi
call fcn.00419330
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x30], eax
push dword [0x4fc908]
mov ecx, dword [ebp + 0x68]
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x3c]
push eax
lea edx, [ebp + 0x6e]
call fcn.0041e590
add esp, 0xc
test ebx, ebx
je 0x41a1a6
mov word [ebx], di
mov edi, dword [ebp + 0x40]
mov ebx, dword [ebp + 0x54]
mov eax, 0x7d
mov word [ebx], ax
cmp edi, 1
jl 0x41a6f6
mov bh, byte [ebp + 0x6e]
mov esi, dword [ebp + 0x3c]
test bh, bh
jne 0x41a639
test si, si
jne 0x41a639
mov ebx, dword [ebp + 0x68]
movzx eax, byte [ebx]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isdigit]
add esp, 4
test eax, eax
mov eax, dword [ebp + 0x38]
je 0x41a327
cmp eax, 1
jbe 0x41a32a
cmp dword [0x4fc928], 0
je 0x41a2bc
mov ecx, ebx
call fcn.00419330
mov ecx, dword [0x4fc910]
mov esi, eax
cmp ecx, dword [0x4fc914]
jne 0x41a229
call fcn.0041cc20
test eax, eax
je 0x41a6f6
cmp dword [0x4fc928], 1
jne 0x41a294
mov eax, dword [0x4fc910]
xor edx, edx
or byte [0x4fc91d], 1
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [0x4fa568]
inc dword [0x4fc910]
mov dword [eax + ecx*4], 1
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0x10], esi
mov dword [eax + ecx*4 + 0xc], edx
jmp 0x41a7c0
push dword [0x4fc908]
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x3c]
push eax
lea edx, [ebp + 0x6e]
call fcn.0041e590
add esp, 0xc
jmp 0x41a1a9
mov eax, dword [0x4f8b58]
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
mov ecx, dword [eax]
mov eax, dword [0x4fc910]
inc dword [0x4fc910]
mov dword [ecx + eax*8], 0
mov dword [ecx + eax*8 + 4], esi
jmp 0x41a7c0
mov eax, dword [ebp + 0x24]
mov dword [0x4f70ec], 0
cmp dword [0x4fb2ec], eax
je 0x41a2ff
mov ecx, ebx
call fcn.00419330
test eax, eax
js 0x41a2ff
mov ecx, ebx
call fcn.00419330
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
mov dword [0x4f70ec], 1
jmp 0x41a7c0
mov ecx, ebx
call fcn.00419330
mov edx, 1
mov ecx, eax
call fcn.00401830
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
mov dword [0x4f70ec], 1
jmp 0x41a7c0
cmp eax, 1
jne 0x41a393
cmp dword [ebp + 0x5c], 1
je 0x41a6f6
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
je 0x41a371
test edi, edi
jle 0x41a6f6
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
nop dword [eax + eax]
movzx eax, word [ebx]
push 0
push eax
push 0x102
push ecx
call esi
mov ecx, dword [ebp + 0x7c]
sub edi, 1
jne 0x41a350
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
jmp 0x41a7c0
mov al, byte [ebp + 0x64]
mov edx, edi
or al, byte [ebp + 0x6f]
mov cx, word [ebx]
movzx eax, al
push eax
call fcn.0041ad30
mov bh, byte [ebp + 0x6f]
add esp, 4
mov edi, dword [ebp + 0x54]
jmp 0x41a7c0
cmp dword [ebp + 0x7c], 0
mov ecx, ebx
mov esi, dword [ebp + 0x34]
mov edx, esi
sete al
movzx eax, al
push eax
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x5c]
push eax
call fcn.0041e660
mov bl, al
add esp, 0xc
mov byte [ebp + 0x6e], bl
test bl, bl
je 0x41a4ae
cmp dword [ebp + 0x7c], 0
mov esi, dword [ebp + 0x5c]
jne 0x41a3db
test esi, esi
jne 0x41a3d4
mov byte [ebp + 0x63], bl
jmp 0x41a3db
mov cl, bl
call fcn.00419550
cmp dword [0x4fc928], 0
je 0x41a3eb
mov al, byte [0x4fc91c]
jmp 0x41a3f2
xor cl, cl
call fcn.0041da40
mov ecx, dword [ebp + 0x7c]
mov dl, al
mov bh, byte [ebp + 0x58]
push 0xffc3d44d
push 0
push 0
push ecx
mov cl, bh
mov byte [ebp + 0x6f], bh
call fcn.0041d310
add esp, 0x10
test edi, edi
jle 0x41a6f9
nop dword [eax]
push 0xffc3d44d
push 1
push dword [ebp + 0x7c]
mov dl, bl
mov ecx, esi
push 0
call fcn.0041b1a0
add esp, 0x10
cmp dword [0x4fc928], 0
jne 0x41a49d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4f70f4]
sub eax, dword [0x4fc694]
cmp eax, dword [ecx + 0xd8]
jbe 0x41a49d
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x41a492
mov edx, 1
mov dword [0x4f70ec], 0
or ecx, 0xffffffff
call fcn.00401830
mov dword [0x4f70ec], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4fc694], eax
sub edi, 1
jne 0x41a420
mov edi, dword [ebp + 0x54]
jmp 0x41a7c0
cmp esi, 4
jbe 0x41a526
mov ebx, dword [ebp + 0x68]
push 4
push str.ASC
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
mov edi, dword [ebp + 0x7c]
add esp, 0xc
test eax, eax
jne 0x41a531
test edi, edi
jne 0x41a531
lea ecx, [ebx + 6]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x41a4e2
cmp eax, 9
jne 0x41a4e7
add ecx, 2
jmp 0x41a4d5
call fcn.0041ae40
cmp dword [0x4fc928], 2
mov eax, dword [0x4f70f4]
jne 0x41a510
mov ecx, dword [eax + 0x60]
call fcn.0041cee0
mov bh, byte [ebp + 0x58]
mov edi, dword [ebp + 0x54]
mov byte [ebp + 0x6f], bh
jmp 0x41a7c0
mov ecx, dword [eax + 0x5c]
call fcn.0041cee0
mov bh, byte [ebp + 0x58]
mov edi, dword [ebp + 0x54]
mov byte [ebp + 0x6f], bh
jmp 0x41a7c0
cmp esi, 2
jbe 0x41a518
mov ebx, dword [ebp + 0x68]
mov edi, dword [ebp + 0x7c]
push 2
push 0x4e4cd4
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x41a518
push 0x10
push eax
lea eax, [ebx + 4]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov edx, eax
add esp, 0xc
cmp edx, 0x10000
jb 0x41a58b
sub edx, 0x10000
mov ecx, edx
mov eax, edx
shr ecx, 0xa
and eax, 0x3ff
and ecx, 0x3ff
sub ecx, 0x2800
sub eax, 0x2400
movzx ecx, cx
movzx esi, ax
jmp 0x41a590
movzx ecx, dx
xor esi, esi
mov bh, byte [ebp + 0x58]
mov byte [ebp + 0x6f], bh
test edi, edi
je 0x41a5c5
push 0
movzx eax, cx
push eax
push 0x102
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
call edi
test si, si
je 0x41a60b
push 0
movzx eax, si
push eax
push 0x102
push dword [ebp + 0x7c]
call edi
jmp 0x41a60b
cmp dword [0x4fc928], 2
je 0x41a5ea
mov bl, byte [ebp + 0x64]
or bl, bh
mov dl, bl
call fcn.004195d0
test si, si
je 0x41a60b
mov dl, bl
mov ecx, esi
call fcn.004195d0
jmp 0x41a60b
mov eax, 0x30
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xa]
push 0xa
push eax
push edx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
add esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.0041ae40
cmp dword [0x4fc928], 2
mov eax, dword [0x4f70f4]
jne 0x41a629
mov ecx, dword [eax + 0x60]
call fcn.0041cee0
mov edi, dword [ebp + 0x54]
jmp 0x41a7c0
mov ecx, dword [eax + 0x5c]
call fcn.0041cee0
mov edi, dword [ebp + 0x54]
jmp 0x41a7c0
push 0
mov edx, esi
mov cl, bh
call fcn.0041dc50
mov bl, al
add esp, 4
mov eax, dword [ebp + 0x5c]
mov byte [ebp + 0x10], bl
test bl, bl
je 0x41a6cf
cmp dword [ebp + 0x7c], 0
jne 0x41a6cf
test eax, eax
jne 0x41a687
mov ecx, dword [ebp + 0x44]
mov byte [ebp + 0x63], bh
cmp ecx, 1
jne 0x41a675
mov cl, byte [ebp + 0x6f]
or byte [0x4fc8b6], bl
or cl, bl
jmp 0x41a6c9
cmp ecx, 2
jne 0x41a680
or byte [0x4fc8b7], bl
mov cl, byte [ebp + 0x6f]
or cl, bl
jmp 0x41a6c9
cmp eax, 1
jne 0x41a6cf
mov cl, bh
call fcn.00419550
mov al, byte [ebp + 0x6c]
not bl
and byte [0x4fc8b7], bl
mov cl, bl
and cl, byte [0x4fc8b6]
and al, bl
mov byte [0x4fc8b6], cl
mov byte [ebp + 0x6c], al
cmp bh, 0xa5
jne 0x41a6c4
cmp dword [0x4fc90c], 3
jne 0x41a6c4
and al, 0xfe
mov byte [ebp + 0x6c], al
or cl, al
mov eax, dword [ebp + 0x5c]
mov byte [ebp + 0x58], cl
mov byte [ebp + 0x6f], cl
mov ecx, dword [ebp + 0x7c]
mov edx, esi
push 0
push connect
push connect
push ecx
push dword [ebp + 0x10]
mov cl, bh
push eax
push edi
push dword [ebp + 0x58]
push dword [ebp + 0x64]
call fcn.0041ab80
add esp, 0x24
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
jmp 0x41a7c0
cmp eax, 2
jne 0x41a741
movzx eax, word [edi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x41a711.11
jmp dword [eax*4 + 0x41ab60]
cmp word [edi + 2], 0xa
lea eax, [edi + 2]
cmove edi, eax
mov al, 0xd
mov byte [ebp + 0x6e], al
jmp 0x41a76b
mov al, 8
mov byte [ebp + 0x6e], al
jmp 0x41a76b
mov al, 9
mov byte [ebp + 0x6e], al
jmp 0x41a76b
mov byte [ebp + 0x6e], 0
jmp 0x41a795
mov eax, dword [ebp + 0x50]
or bl, bh
je 0x41a74d
test eax, eax
jne 0x41a74d
mov al, 1
jmp 0x41a74f
xor al, al
mov cx, word [edi]
lea edx, [ebp + 0x64]
push eax
push dword [0x4fc908]
call fcn.0041e4b0
add esp, 8
mov byte [ebp + 0x6e], al
test al, al
je 0x41a792
push 0
push connect
push connect
push esi
push 0
push 2
push 1
push dword [ebp + 0x58]
xor edx, edx
mov cl, al
push dword [ebp + 0x64]
call fcn.0041ab80
add esp, 0x24
jmp 0x41a7c0
mov bl, byte [ebp + 0x64]
movzx ecx, word [edi]
test esi, esi
je 0x41a7ad
push 0
push ecx
push 0x102
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x41a7c0
or bl, bh
mov edx, 1
movzx eax, bl
push eax
call fcn.0041ad30
add esp, 4
xor bl, bl
mov byte [ebp + 0x64], bl
mov al, byte [ebp + 0x63]
add edi, 2
mov byte [0x4fc8b5], al
cmp word [edi], 0
jne 0x419d70
cmp dword [0x4fc928], 0
je 0x41a885
or esi, 0xffffffff
cmp byte [0x4fc91e], 0
mov dword [ebp + 0x44], esi
jne 0x41a844
cmp dword [0x4fc910], 0
jbe 0x41a844
cmp byte [0x4fc92c], 0
je 0x41a80c
xor bl, bl
jmp 0x41a814
mov bl, byte [ebp + 0x62]
not bl
and bl, byte [ebp + 0x6d]
or bl, byte [0x4fc8b7]
mov dl, byte [0x4fc91c]
or bl, bh
push 0xffc3d44d
push 1
push 1
push 0
mov cl, bl
call fcn.0041d310
add esp, 0x10
lea ecx, [ebp + 0x44]
mov dl, bl
call fcn.0041ccd0
mov esi, dword [ebp + 0x44]
cmp dword [0x4fc928], 1
mov eax, 0x5dc
mov ecx, 0x1f4
cmove eax, ecx
cmp dword [0x4fc914], eax
jbe 0x41a86f
push dword [0x4fa568]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, esi
mov dword [0x4fc928], 0
call fcn.0041cee0
jmp 0x41a911
cmp dword [0x4f9a08], 0
je 0x41a899
mov cl, byte [0x4fa3dc]
mov dl, byte [ebp + 0x6d]
jmp 0x41a8c2
cmp dword [0x4f8360], 0
jl 0x41a8bd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4fc64c]
cmp eax, dword [0x4f8360]
jb 0x41a8bd
mov dl, byte [ebp + 0x6d]
xor cl, cl
jmp 0x41a8c2
mov dl, byte [ebp + 0x6d]
mov cl, dl
or cl, byte [0x4fc8b7]
cmp byte [0x4fc92c], 0
je 0x41a8e3
mov al, cl
xor al, dl
mov bl, al
and al, cl
and bl, dl
not bl
and bl, bh
or bl, al
jmp 0x41a8ec
mov bl, byte [ebp + 0x62]
not bl
and bl, cl
or bl, bh
push 0xffc3d44d
push 1
push 1
push dword [ebp + 0x7c]
xor cl, cl
call fcn.0041da40
or al, byte [0x4f9aa3]
mov cl, bl
mov dl, al
call fcn.0041d310
add esp, 0x10
cmp dword [0x4f9a08], 0
je 0x41a934
mov cl, byte [0x4fa3dd]
mov al, cl
xor al, byte [0x4fa3de]
and al, cl
not al
and cl, al
mov byte [0x4fa3dd], cl
cmp dword [ebp + 0x1c], 1
jne 0x41a9c9
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x41a9c9
push 0x14
call esi
bt ax, 0xf
jae 0x41a971
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 1
call fcn.0041b1a0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 2
call fcn.0041b1a0
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
add esp, 0x10
push 0
call esi
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call ebx
cmp eax, dword [0x4fb2ec]
jne 0x41a9d5
mov edx, 1
mov dword [0x4f70ec], 0
or ecx, 0xffffffff
call fcn.00401830
mov dword [0x4f70ec], 1
jmp 0x41a9d5
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp byte [ebp + 0x61], 0
je 0x41a9ec
push 0
push dword [ebp + 0x18]
push dword [0x4fb2ec]
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp + 0x60], 0
je 0x41aa07
cmp byte [ebp + 0x4f], 0
jne 0x41aa07
push 0
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4f9a6e], 0
mov eax, dword [ebp + 0x78]
test eax, eax
jne 0x41aa95
mov eax, dword [ebp + 0xc]
cmp dword [0x4fc690], eax
je 0x41aaca
cmp dword [0x4f70ec], 0
je 0x41aaca
cmp dword [0x4f99b8], 0
jne 0x41aaca
mov ecx, dword [0x4f70f4]
cmp byte [ecx + 0xec], 0
jne 0x41aa86
cmp byte [ecx + 0xee], 0
jne 0x41aa7d
cmp dword [ecx + 0xe0], 0xffffffff
jle 0x41aa7d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4f70f4]
sub eax, dword [ecx + 0xdc]
cmp eax, dword [ecx + 0xe0]
jb 0x41aa7d
mov byte [ecx + 0xec], 1
cmp byte [ecx + 0xec], 0
je 0x41aaca
mov edx, 1
or ecx, 0xffffffff
call fcn.00401830
jmp 0x41aaca
cmp eax, 1
jne 0x41aaca
push 0
call esi
push eax
call ebx
cmp eax, dword [0x4fb2ec]
jne 0x41aaca
mov edx, 1
mov dword [0x4f70ec], 0
or ecx, 0xffffffff
call fcn.00401830
mov dword [0x4f70ec], 1
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x5c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x64], ecx
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x70]
pop ebp
ret