Function at 0x418bd0
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, 0xc4
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x60], edi
cmp byte [edi], 0
je 0x419f8c
mov eax, dword [0x4d70f4]
mov esi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
mov dword [ebp + 0x44], eax
mov eax, dword [0x4dc0e8]
mov dword [ebp + 8], eax
mov eax, dword fs:[0x24]
mov dword [ebp + 0x20], eax
test ebx, ebx
jne 0x418c34
push 7
push str.Blind
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x418c34
add edi, 7
mov byte [0x4dc35c], 1
mov dword [ebp + 0x60], edi
jmp 0x418c3f
mov byte [0x4dc35c], 0
test ebx, ebx
jne 0x418c5d
push 6
push 0x4c99f0
push edi
call esi
add esp, 0xc
test eax, eax
jne 0x418c5d
add edi, 6
mov dword [ebp + 0x4c], 2
mov dword [ebp + 0x60], edi
mov ecx, dword [ebp + 0x44]
mov ebx, dword [ebp + 0x78]
mov eax, dword [ecx + 0x5c]
mov dword [ebp + 4], eax
mov eax, dword [ecx + 0x64]
mov dword [ebp + 0x10], eax
cmp ebx, 1
je 0x418c7d
cmp ebx, 3
jne 0x418d37
mov eax, dword [0x4dc2bc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x418c8f
push eax
call edi
push str.AHK_Keybd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x4dc2bc], 0
mov ebx, eax
je 0x418cb9
mov dword [0x4dc2bc], esi
jmp 0x418cc0
test esi, esi
je 0x418cc0
push esi
call edi
cmp ebx, 0xb7
je 0x418d01
cmp dword [ebp + 0x4c], 0
jne 0x418cf4
call fcn.00412da0
mov edi, dword [ebp + 0x60]
test al, al
je 0x418cf7
mov edx, str.Click
mov ecx, edi
call fcn.004ac1a0
test eax, eax
jne 0x418d04
mov ebx, 1
mov dword [ebp + 0x78], ebx
jmp 0x418d37
mov edi, dword [ebp + 0x60]
mov ebx, 1
mov dword [ebp + 0x78], ebx
jmp 0x418d37
mov edi, dword [ebp + 0x60]
cmp dword [ebp + 0x78], 3
jne 0x418d14
mov ebx, 2
mov dword [ebp + 0x78], ebx
jmp 0x418d37
mov ecx, dword [ebp + 0x44]
xor ebx, ebx
mov dword [ebp + 0x78], ebx
cmp dword [ecx + 0x5c], ebx
jge 0x418d2b
cmp dword [ecx + 0x64], ebx
jge 0x418d2b
or eax, 0xffffffff
jmp 0x418d2d
xor eax, eax
mov dword [ecx + 0x64], eax
mov dword [ecx + 0x5c], 0xffffffff
mov eax, dword [ebp + 0x7c]
xor esi, esi
mov byte [ebp + 0x5f], 0
test eax, eax
je 0x418d93
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call ebx
mov ebx, eax
mov dword [ebp + 0x14], ebx
test ebx, ebx
je 0x418e57
cmp ebx, dword [0x4dba60]
je 0x418e57
mov ecx, dword [ebp + 0x7c]
call fcn.004b2670
test al, al
jne 0x418e57
push 1
push ebx
push dword [0x4dba60]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
mov esi, ebx
setne byte [ebp + 0x5f]
jmp 0x418e57
test byte [0x4dc0ad], 0xc0
je 0x418e15
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4dc0a4]
cmp eax, 0x32
jae 0x418e15
cmp ebx, 2
je 0x418e15
cmp byte [0x4dc35c], 0
jne 0x418e15
mov eax, dword [ebp + 0x4c]
cmp eax, 2
je 0x418e15
cmp byte [0x4dc273], 0
je 0x418e15
mov ecx, dword [ebp + 0x20]
cmp ecx, dword [0x4dba60]
jne 0x418e15
test eax, eax
je 0x418ea5
mov esi, edi
test edi, edi
je 0x418e0b
mov dl, byte [edi]
test dl, dl
je 0x418e0b
nop dword [eax + eax]
mov ecx, 0x4c9c78
mov al, 0x4c
cmp dl, al
je 0x418e0d
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x418df7
mov dl, byte [esi + 1]
inc esi
test dl, dl
jne 0x418df0
xor esi, esi
test esi, esi
jne 0x418f12
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test eax, eax
je 0x418e51
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push esi
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x54], 0x30
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x418e51
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x418e51
push 0
push eax
call ebx
mov esi, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
xor edx, edx
mov dword [0x4dc338], eax
mov ecx, eax
call fcn.0041d5e0
mov cl, 1
mov dword [0x4dc33c], eax
call fcn.0041d100
mov bl, al
and byte [0x4dc2e7], bl
cmp dword [0x4d9998], 0
je 0x418f5b
mov al, byte [0x4da2e6]
mov cl, byte [0x4da2e4]
mov bh, al
not al
and bh, cl
and al, cl
jmp 0x418f7f
mov edx, edi
test edx, edx
je 0x418e15
mov bl, byte [edx]
test bl, bl
je 0x418e15
nop dword [eax]
mov ecx, 0x4c9c78
mov al, 0x4c
cmp bl, al
je 0x418ee0
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x418ec7
mov bl, byte [edx + 1]
inc edx
test bl, bl
jne 0x418ec0
jmp 0x418e15
add edx, 1
je 0x418f12
mov bl, byte [edx]
test bl, bl
je 0x418f12
nop dword [eax + eax]
mov ecx, 0x4c9c7c
mov al, 0x7b
cmp bl, al
je 0x418f0d
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x418ef7
mov bl, byte [edx + 1]
inc edx
test bl, bl
jne 0x418ef0
jmp 0x418f12
cmp byte [edx], 0x7b
jne 0x418ea7
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, 0x8000
nop dword [eax]
push 0x5b
call esi
test bx, ax
jne 0x418f36
push 0x5c
call esi
test bx, ax
je 0x418e15
mov edx, 1
mov dword [0x4d70ec], 0
mov ecx, 0x8000012f
call fcn.00401870
mov dword [0x4d70ec], 1
jmp 0x418f20
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4dc0a4]
cmp eax, dword [0x4d82f4]
jae 0x418f79
mov cl, byte [0x4dc0ad]
and cl, bl
jmp 0x418f7b
xor cl, cl
mov bh, cl
xor al, al
not bh
mov byte [ebp + 0x6d], cl
and bh, byte [0x4dc2e6]
and bh, bl
mov byte [ebp + 0x66], al
cmp byte [0x4dc35c], 0
mov byte [ebp + 0x6f], bh
mov byte [0x4dc2e6], bh
je 0x418fae
not bh
and bh, bl
mov al, bh
mov bh, bl
mov byte [ebp + 0x6f], bh
jmp 0x418fb0
xor al, al
mov byte [ebp + 0x6c], al
mov eax, dword [ebp + 0x44]
mov byte [ebp + 0x54], bh
cmp byte [eax + 0xd3], 0
je 0x418fe2
cmp byte [0x4dc35c], 0
jne 0x418fe2
cmp dword [ebp + 0x4c], 2
je 0x418fe2
mov edx, 2
mov cl, 0x14
call fcn.0041c8c0
mov dword [ebp + 0x18], eax
jmp 0x418fe9
mov dword [ebp + 0x18], 0
mov edx, dword [ebp + 0x78]
mov eax, 0x1f4
mov dword [0x4dc358], edx
mov ecx, 0x5dc
test edx, edx
je 0x419062
cmp edx, 1
cmovne eax, ecx
mov ecx, 0x2ee0
mov dword [0x4dc344], eax
mov eax, 0x36b0
cmovne eax, ecx
call fcn.004c1c90
mov eax, dword [0x4d8ae8]
mov ecx, esp
mov edx, dword [ebp + 0x78]
mov byte [0x4dc34c], bl
mov byte [0x4dc34d], 0
mov dword [eax], ecx
mov dword [0x4dc350], 0x80000000
mov dword [0x4dc354], 0x80000000
mov dword [0x4dc340], 0
mov byte [0x4dc34e], 0
mov byte [0x4dc34f], 1
mov al, byte [0x4d9a10]
mov byte [ebp + 0x4b], al
mov eax, dword [0x4d7104]
cmp eax, 8
je 0x419079
cmp eax, 0xa
jne 0x419099
mov esi, dword [ebp + 0x7c]
test edx, edx
jne 0x41909c
test esi, esi
jne 0x41909c
push 1
mov byte [ebp + 0x5e], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4d9a10], 1
jmp 0x4190a0
mov esi, dword [ebp + 0x7c]
mov byte [ebp + 0x5e], 0
xor bl, bl
mov byte [ebp + 0x68], bl
cmp byte [edi], bl
je 0x419c8d
jmp 0x4190b3
mov esi, dword [ebp + 0x7c]
cmp dword [0x4dc358], 0
mov byte [ebp + 0x67], 0
jne 0x41911c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4d70f4]
sub eax, dword [0x4dc0ec]
cmp eax, dword [ecx + 0xb8]
jbe 0x41911c
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x419111
mov edx, 1
mov dword [0x4d70ec], 0
or ecx, 0xffffffff
call fcn.00401870
mov dword [0x4d70ec], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4dc0ec], eax
mov eax, dword [ebp + 0x4c]
test eax, eax
jne 0x419bb7
movsx eax, byte [edi]
push eax
push 0x4c9c80
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
add esp, 8
test eax, eax
je 0x419bf3
movsx eax, byte [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x419157.34
movzx eax, byte [eax + 0x419fb4]
jmp dword [eax*4 + 0x419f98]
test bh, 3
jne case.0x419157.34
or bl, 1
jmp 0x419c78
test bh, 0x30
jne case.0x419157.34
or bl, 0x10
jmp 0x419c78
test bh, 0xc
jne case.0x419157.34
or bl, 4
jmp 0x419c78
test bh, 0xc0
jne case.0x419157.34
or bl, 0x40
jmp 0x419c78
lea esi, [edi + 1]
push 0x7d
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
add esp, 8
mov dword [ebp + 0x50], eax
test eax, eax
je case.0x419157.34
mov edi, esi
nop
mov cl, byte [edi]
cmp cl, 0x20
je 0x4191cc
cmp cl, 9
jne 0x4191cf
inc edi
jmp 0x4191c0
mov esi, eax
mov dword [ebp + 0x60], edi
sub esi, edi
mov dword [ebp + 0x34], esi
jne 0x41925a
lea esi, [eax + 1]
mov al, byte [esi]
cmp al, 0x7d
jne 0x4191ee
mov dword [ebp + 0x50], esi
mov esi, 1
jmp 0x419257
cmp al, 0x20
je 0x419208
cmp al, 9
jne 0x419baf
nop word [eax + eax]
cmp al, 0x20
je 0x419208
cmp al, 9
jne 0x41920e
mov al, byte [esi + 1]
inc esi
jmp 0x419200
push 4
push str.Down
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
je 0x41923c
push 2
push 0x4c9180
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x419baf
push 0x7d
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
add esp, 8
mov dword [ebp + 0x50], eax
test eax, eax
je case.0x419157.34
mov esi, eax
sub esi, edi
mov dword [ebp + 0x34], esi
push 5
push 0x4c82c4
push edi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x41930d
mov eax, dword [ebp + 0x50]
lea ecx, [edi + 5]
mov byte [eax], 0
nop dword [eax]
mov al, byte [ecx]
cmp al, 0x20
je 0x41928a
cmp al, 9
jne 0x41928d
inc ecx
jmp 0x419280
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x6e]
push eax
lea eax, [ebp + 0x2c]
push eax
lea edx, [ebp + 0x28]
call fcn.0041ad00
mov eax, dword [ebp + 0x50]
add esp, 0x14
push dword [ebp + 0x1c]
mov byte [eax], 0x7d
mov eax, dword [ebp + 0x3c]
cmp eax, 1
jge 0x4192e2
mov eax, dword [ebp + 0x44]
lea edx, [ebp + 0x2c]
lea ecx, [ebp + 0x28]
movzx eax, byte [eax + 0xcf]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0041bc40
mov edi, dword [ebp + 0x50]
add esp, 0xc
jmp 0x419c76
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 + 0x58]
push eax
push dword [ebp + 0x54]
push dword [ebp + 0x68]
call fcn.0041a030
mov edi, dword [ebp + 0x50]
add esp, 0x24
jmp 0x419c76
push 3
push 0x4c9c88
push edi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x419331
mov edi, dword [ebp + 0x50]
mov dword [ebp + 0x4c], 1
jmp 0x419c76
push 4
push str.Text
push edi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x419375
lea ecx, [edi + 4]
nop dword [eax]
mov al, byte [ecx]
cmp al, 0x20
je 0x41935a
cmp al, 9
jne 0x41935d
inc ecx
jmp 0x419350
cmp ecx, dword [ebp + 0x50]
jne 0x419baf
mov edi, dword [ebp + 0x50]
mov dword [ebp + 0x4c], 2
jmp 0x419c76
mov ebx, dword [ebp + 0x60]
mov edi, 1
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x38], esi
mov esi, ebx
mov dword [ebp + 0x58], 2
mov dword [ebp + 0x3c], edi
mov byte [eax], 0
mov dl, byte [ebx]
mov dword [ebp + 0x24], ebx
test dl, dl
je 0x4193c2
nop dword [eax + eax]
mov ecx, 0x4c98e4
mov al, 0x20
cmp dl, al
je 0x419447
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4193a7
mov dl, byte [esi + 1]
inc esi
mov dword [ebp + 0x24], esi
test dl, dl
jne 0x4193a0
push dword [0x4dc338]
lea eax, [ebp + 0x68]
mov ecx, ebx
push eax
lea eax, [ebp + 0x30]
push eax
lea edx, [ebp + 0x6e]
call fcn.0041db40
add esp, 0xc
mov ebx, dword [ebp + 0x50]
mov byte [ebx], 0x7d
cmp edi, 1
jl 0x419bac
mov bh, byte [ebp + 0x6e]
mov esi, dword [ebp + 0x30]
test bh, bh
jne 0x419aef
test si, si
jne 0x419aef
mov ebx, dword [ebp + 0x60]
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 0x4197ec
cmp eax, 1
jbe 0x4197ef
cmp dword [0x4dc358], 0
je 0x41964d
mov ecx, ebx
mov al, byte [ecx]
cmp al, 0x20
je 0x419444
cmp al, 9
jne 0x41956e
inc ecx
jmp 0x419436
mov bl, byte [esi]
mov eax, esi
sub eax, dword [ebp + 0x60]
mov byte [esi], 0
mov dword [ebp + 0x38], eax
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x419454
cmp al, 9
je 0x419454
mov eax, dword [ebp + 0x50]
sub eax, esi
je 0x419540
push 4
push str.Down
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x4194c1
push 4
add esi, 4
mov dword [ebp + 0x58], eax
push str.Temp
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x4194a3
mov dword [ebp + 0x40], eax
jmp 0x419540
xor eax, eax
cmp byte [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 + 0x40], esi
jmp 0x419540
push 0x4c9180
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4194d9
mov dword [ebp + 0x58], edi
jmp 0x419540
mov ecx, esi
nop dword [eax + eax]
mov al, byte [ecx]
cmp al, 0x20
je 0x4194ea
cmp al, 9
jne 0x4194ed
inc ecx
jmp 0x4194e0
test al, al
je 0x419531
cmp al, 0x2d
je 0x4194f9
cmp al, 0x2b
jne 0x419500
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x419531
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x41950f
cmp al, 0x58
jne 0x419531
movsx eax, byte [ecx + 2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isxdigit]
add esp, 4
test eax, eax
je 0x419531
push 0x10
push 0
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
jmp 0x41953b
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov edi, eax
mov dword [ebp + 0x3c], edi
push dword [0x4dc338]
mov ecx, dword [ebp + 0x60]
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x30]
push eax
lea edx, [ebp + 0x6e]
call fcn.0041db40
mov eax, dword [ebp + 0x24]
add esp, 0xc
test eax, eax
je 0x4193dd
mov byte [eax], bl
jmp 0x4193dd
test al, al
je 0x4195b2
cmp al, 0x2d
je 0x41957a
cmp al, 0x2b
jne 0x419581
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x4195b2
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x419590
cmp al, 0x58
jne 0x4195b2
movsx eax, byte [ecx + 2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isxdigit]
add esp, 4
test eax, eax
je 0x4195b2
push 0x10
push 0
push ebx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
jmp 0x4195bc
push ebx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov esi, eax
mov eax, dword [0x4dc340]
cmp eax, dword [0x4dc344]
jne 0x4195d8
call fcn.0041c300
test eax, eax
je 0x419bac
cmp dword [0x4dc358], 1
jne 0x419625
mov eax, dword [0x4dc340]
xor edx, edx
or byte [0x4dc34d], 1
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [0x4da470]
inc dword [0x4dc340]
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 0x419c76
mov eax, dword [0x4d8ae8]
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
mov ecx, dword [eax]
mov eax, dword [0x4dc340]
inc dword [0x4dc340]
mov dword [ecx + eax*8], 0
mov dword [ecx + eax*8 + 4], esi
jmp 0x419c76
mov eax, dword [ebp + 0x20]
mov dword [0x4d70ec], 0
cmp dword [0x4dba60], eax
je 0x419769
mov ecx, ebx
mov al, byte [ecx]
cmp al, 0x20
je 0x419672
cmp al, 9
jne 0x419675
inc ecx
jmp 0x419668
test al, al
je 0x4196c1
cmp al, 0x2d
je 0x419681
cmp al, 0x2b
jne 0x419688
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x4196c1
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x419697
cmp al, 0x58
jne 0x4196c1
movsx eax, byte [ecx + 2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isxdigit]
add esp, 4
test eax, eax
je 0x4196c1
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
push 0x10
push 0
push ebx
call esi
mov edi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 0xc
jmp 0x4196d3
mov edi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
push ebx
call edi
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 4
test eax, eax
js 0x419769
mov ecx, ebx
nop dword [eax]
mov al, byte [ecx]
cmp al, 0x20
je 0x4196ea
cmp al, 9
jne 0x4196ed
inc ecx
jmp 0x4196e0
test al, al
je 0x419747
cmp al, 0x2d
je 0x4196f9
cmp al, 0x2b
jne 0x419700
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x419747
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x41970f
cmp al, 0x58
jne 0x419747
movsx eax, byte [ecx + 2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isxdigit]
add esp, 4
test eax, eax
je 0x419747
push 0x10
push 0
push ebx
call esi
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
mov dword [0x4d70ec], 1
jmp 0x419c76
push ebx
call edi
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
mov dword [0x4d70ec], 1
jmp 0x419c76
mov ecx, ebx
nop dword [eax + eax]
mov al, byte [ecx]
cmp al, 0x20
je 0x41977a
cmp al, 9
jne 0x41977d
inc ecx
jmp 0x419770
test al, al
je 0x4197c1
cmp al, 0x2d
je 0x419789
cmp al, 0x2b
jne 0x419790
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x4197c1
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x41979f
cmp al, 0x58
jne 0x4197c1
movsx eax, byte [ecx + 2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isxdigit]
add esp, 4
test eax, eax
je 0x4197c1
push 0x10
push 0
push ebx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
jmp 0x4197cb
push ebx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov edx, 1
mov ecx, eax
call fcn.00401870
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
mov dword [0x4d70ec], 1
jmp 0x419c76
cmp eax, 1
jne 0x419852
cmp dword [ebp + 0x58], 1
je 0x419bac
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
je 0x419831
test edi, edi
jle 0x419bac
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
movsx eax, byte [ebx]
push 0
push eax
push 0x102
push ecx
call esi
mov ecx, dword [ebp + 0x7c]
sub edi, 1
jne 0x419810
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
jmp 0x419c76
mov al, byte [ebp + 0x68]
mov edx, edi
or al, byte [ebp + 0x6f]
mov cl, byte [ebx]
movzx eax, al
push eax
call fcn.0041a1e0
mov bh, byte [ebp + 0x6f]
add esp, 4
mov edi, dword [ebp + 0x50]
jmp 0x419c76
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 + 0x54]
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.0041dc10
mov bl, al
add esp, 0xc
mov byte [ebp + 0x6e], bl
test bl, bl
je 0x41996e
cmp dword [ebp + 0x7c], 0
mov esi, dword [ebp + 0x58]
jne 0x41989a
test esi, esi
jne 0x419893
mov byte [ebp + 0x67], bl
jmp 0x41989a
mov cl, bl
call fcn.00418900
cmp dword [0x4dc358], 0
je 0x4198aa
mov al, byte [0x4dc34c]
jmp 0x4198b1
xor cl, cl
call fcn.0041d100
mov ecx, dword [ebp + 0x7c]
mov dl, al
mov bh, byte [ebp + 0x54]
push 0xffc3d44d
push 0
push 0
push ecx
mov cl, bh
mov byte [ebp + 0x6f], bh
call fcn.0041c9d0
add esp, 0x10
test edi, edi
jle 0x419baf
nop dword [eax + eax]
push 0xffc3d44d
push 1
push dword [ebp + 0x7c]
mov dl, bl
mov ecx, esi
push 0
call fcn.0041a670
add esp, 0x10
cmp dword [0x4dc358], 0
jne 0x41995d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4d70f4]
sub eax, dword [0x4dc0ec]
cmp eax, dword [ecx + 0xb8]
jbe 0x41995d
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x419952
mov edx, 1
mov dword [0x4d70ec], 0
or ecx, 0xffffffff
call fcn.00401870
mov dword [0x4d70ec], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4dc0ec], eax
sub edi, 1
jne 0x4198e0
mov edi, dword [ebp + 0x50]
jmp 0x419c76
cmp esi, 4
jbe 0x4199e1
mov ebx, dword [ebp + 0x60]
push 4
push str.ASC
push ebx
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
mov edi, dword [ebp + 0x7c]
add esp, 0xc
test eax, eax
jne 0x4199ec
test edi, edi
jne 0x4199ec
lea ecx, [ebx + 3]
mov al, byte [ecx]
cmp al, 0x20
je 0x41999f
cmp al, 9
jne 0x4199a2
inc ecx
jmp 0x419995
call fcn.0041a310
cmp dword [0x4dc358], 2
mov eax, dword [0x4d70f4]
jne 0x4199cb
mov ecx, dword [eax + 0x60]
call fcn.0041c5c0
mov bh, byte [ebp + 0x54]
mov edi, dword [ebp + 0x50]
mov byte [ebp + 0x6f], bh
jmp 0x419c76
mov ecx, dword [eax + 0x5c]
call fcn.0041c5c0
mov bh, byte [ebp + 0x54]
mov edi, dword [ebp + 0x50]
mov byte [ebp + 0x6f], bh
jmp 0x419c76
cmp esi, 2
jbe 0x4199d3
mov ebx, dword [ebp + 0x60]
mov edi, dword [ebp + 0x7c]
push 2
push 0x4c9c9c
push ebx
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x4199d3
push 0x10
push eax
lea eax, [ebx + 2]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
mov edx, eax
add esp, 0xc
cmp edx, 0x10000
jb 0x419a46
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 0x419a4b
movzx ecx, dx
xor esi, esi
mov bh, byte [ebp + 0x54]
mov byte [ebp + 0x6f], bh
test edi, edi
je 0x419a80
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 0x419ac1
push 0
movzx eax, si
push eax
push 0x102
push dword [ebp + 0x7c]
call edi
jmp 0x419ac1
cmp dword [0x4dc358], 2
je 0x419aa5
mov bl, byte [ebp + 0x68]
or bl, bh
mov dl, bl
call fcn.00418980
test si, si
je 0x419ac1
mov dl, bl
mov ecx, esi
call fcn.00418980
jmp 0x419ac1
push 0xa
lea eax, [ebp - 3]
mov byte [ebp - 4], 0x30
push eax
push edx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.0041a310
cmp dword [0x4dc358], 2
mov eax, dword [0x4d70f4]
jne 0x419adf
mov ecx, dword [eax + 0x60]
call fcn.0041c5c0
mov edi, dword [ebp + 0x50]
jmp 0x419c76
mov ecx, dword [eax + 0x5c]
call fcn.0041c5c0
mov edi, dword [ebp + 0x50]
jmp 0x419c76
push 0
mov edx, esi
mov cl, bh
call fcn.0041d310
mov bl, al
add esp, 4
mov eax, dword [ebp + 0x58]
mov byte [ebp + 0xc], bl
test bl, bl
je 0x419b85
cmp dword [ebp + 0x7c], 0
jne 0x419b85
test eax, eax
jne 0x419b3d
mov ecx, dword [ebp + 0x40]
mov byte [ebp + 0x67], bh
cmp ecx, 1
jne 0x419b2b
mov cl, byte [ebp + 0x6f]
or byte [0x4dc2e6], bl
or cl, bl
jmp 0x419b7f
cmp ecx, 2
jne 0x419b36
or byte [0x4dc2e7], bl
mov cl, byte [ebp + 0x6f]
or cl, bl
jmp 0x419b7f
cmp eax, 1
jne 0x419b85
mov cl, bh
call fcn.00418900
mov al, byte [ebp + 0x6c]
not bl
and byte [0x4dc2e7], bl
mov cl, bl
and cl, byte [0x4dc2e6]
and al, bl
mov byte [0x4dc2e6], cl
mov byte [ebp + 0x6c], al
cmp bh, 0xa5
jne 0x419b7a
cmp dword [0x4dc33c], 3
jne 0x419b7a
and al, 0xfe
mov byte [ebp + 0x6c], al
or cl, al
mov eax, dword [ebp + 0x58]
mov byte [ebp + 0x54], 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 + 0xc]
mov cl, bh
push eax
push edi
push dword [ebp + 0x54]
push dword [ebp + 0x68]
call fcn.0041a030
add esp, 0x24
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x50]
jmp 0x419c76
cmp eax, 2
jne 0x419bf6
movsx eax, byte [edi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x419bc7.11
jmp dword [eax*4 + 0x41a014]
cmp byte [edi + 1], 0xa
lea eax, [edi + 1]
cmove edi, eax
mov al, 0xd
mov byte [ebp + 0x6e], al
jmp 0x419c1f
mov al, 8
mov byte [ebp + 0x6e], al
jmp 0x419c1f
mov al, 9
mov byte [ebp + 0x6e], al
jmp 0x419c1f
mov byte [ebp + 0x6e], 0
jmp 0x419c49
mov eax, dword [ebp + 0x4c]
or bl, bh
je 0x419c02
test eax, eax
jne 0x419c02
mov al, 1
jmp 0x419c04
xor al, al
mov cl, byte [edi]
lea edx, [ebp + 0x68]
push eax
push dword [0x4dc338]
call fcn.0041da60
add esp, 8
mov byte [ebp + 0x6e], al
test al, al
je 0x419c46
push 0
push connect
push connect
push esi
push 0
push 2
push 1
push dword [ebp + 0x54]
xor edx, edx
mov cl, al
push dword [ebp + 0x68]
call fcn.0041a030
add esp, 0x24
jmp 0x419c76
mov bl, byte [ebp + 0x68]
mov cl, byte [edi]
test esi, esi
je 0x419c63
push 0
movsx eax, cl
push eax
push 0x102
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x419c76
or bl, bh
mov edx, 1
movzx eax, bl
push eax
call fcn.0041a1e0
add esp, 4
xor bl, bl
mov byte [ebp + 0x68], bl
mov al, byte [ebp + 0x67]
inc edi
mov byte [0x4dc2e5], al
cmp byte [edi], 0
jne 0x4190b0
cmp dword [0x4dc358], 0
je 0x419d38
or esi, 0xffffffff
cmp byte [0x4dc34e], 0
mov dword [ebp + 0x40], esi
jne 0x419cf7
cmp dword [0x4dc340], 0
jbe 0x419cf7
cmp byte [0x4dc35c], 0
je 0x419cbf
xor bl, bl
jmp 0x419cc7
mov bl, byte [ebp + 0x66]
not bl
and bl, byte [ebp + 0x6d]
or bl, byte [0x4dc2e7]
mov dl, byte [0x4dc34c]
or bl, bh
push 0xffc3d44d
push 1
push 1
push 0
mov cl, bl
call fcn.0041c9d0
add esp, 0x10
lea ecx, [ebp + 0x40]
mov dl, bl
call fcn.0041c3b0
mov esi, dword [ebp + 0x40]
cmp dword [0x4dc358], 1
mov eax, 0x5dc
mov ecx, 0x1f4
cmove eax, ecx
cmp dword [0x4dc344], eax
jbe 0x419d22
push dword [0x4da470]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, esi
mov dword [0x4dc358], 0
call fcn.0041c5c0
jmp 0x419dc4
cmp dword [0x4d9998], 0
je 0x419d4c
mov cl, byte [0x4da2e4]
mov dl, byte [ebp + 0x6d]
jmp 0x419d75
cmp dword [0x4d82f4], 0
jl 0x419d70
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4dc0a4]
cmp eax, dword [0x4d82f4]
jb 0x419d70
mov dl, byte [ebp + 0x6d]
xor cl, cl
jmp 0x419d75
mov dl, byte [ebp + 0x6d]
mov cl, dl
or cl, byte [0x4dc2e7]
cmp byte [0x4dc35c], 0
je 0x419d96
mov al, cl
xor al, dl
mov bl, al
and al, cl
and bl, dl
not bl
and bl, bh
or bl, al
jmp 0x419d9f
mov bl, byte [ebp + 0x66]
not bl
and bl, cl
or bl, bh
push 0xffc3d44d
push 1
push 1
push dword [ebp + 0x7c]
xor cl, cl
call fcn.0041d100
or al, byte [0x4da2d7]
mov cl, bl
mov dl, al
call fcn.0041c9d0
add esp, 0x10
cmp dword [0x4d9998], 0
je 0x419de7
mov cl, byte [0x4da2e5]
mov al, cl
xor al, byte [0x4da2e6]
and al, cl
not al
and cl, al
mov byte [0x4da2e5], cl
cmp dword [ebp + 0x18], 1
jne 0x419e7c
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x419e7c
push 0x14
call esi
bt ax, 0xf
jae 0x419e24
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 1
call fcn.0041a670
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 2
call fcn.0041a670
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 [0x4dba60]
jne 0x419e88
mov edx, 1
mov dword [0x4d70ec], 0
or ecx, 0xffffffff
call fcn.00401870
mov dword [0x4d70ec], 1
jmp 0x419e88
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp byte [ebp + 0x5f], 0
je 0x419e9f
push 0
push dword [ebp + 0x14]
push dword [0x4dba60]
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp + 0x5e], 0
je 0x419eba
cmp byte [ebp + 0x4b], 0
jne 0x419eba
push 0
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4d9a10], 0
mov eax, dword [ebp + 0x78]
test eax, eax
jne 0x419f48
mov eax, dword [ebp + 8]
cmp dword [0x4dc0e8], eax
je 0x419f7d
cmp dword [0x4d70ec], 0
je 0x419f7d
cmp dword [0x4d9948], 0
jne 0x419f7d
mov ecx, dword [0x4d70f4]
cmp byte [ecx + 0xcc], 0
jne 0x419f39
cmp byte [ecx + 0xce], 0
jne 0x419f30
cmp dword [ecx + 0xc0], 0xffffffff
jle 0x419f30
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4d70f4]
sub eax, dword [ecx + 0xbc]
cmp eax, dword [ecx + 0xc0]
jb 0x419f30
mov byte [ecx + 0xcc], 1
cmp byte [ecx + 0xcc], 0
je 0x419f7d
mov edx, 1
or ecx, 0xffffffff
call fcn.00401870
jmp 0x419f7d
cmp eax, 1
jne 0x419f7d
push 0
call esi
push eax
call ebx
cmp eax, dword [0x4dba60]
jne 0x419f7d
mov edx, 1
mov dword [0x4d70ec], 0
or ecx, 0xffffffff
call fcn.00401870
mov dword [0x4d70ec], 1
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 4]
mov dword [eax + 0x5c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x64], ecx
lea esp, [ebp - 0x60]
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x70]
pop ebp
ret