Function at 0x41a3a0
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
push edi
cmp word [ebx], 0
mov dword [ebp + 0x50], esi
je 0x41b6a0
mov eax, dword [0x4f8174]
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
mov dword [ebp + 0x48], eax
mov eax, dword [0x4fd728]
mov dword [ebp + 0xc], eax
mov eax, dword fs:[0x24]
mov dword [ebp + 0x24], eax
test esi, esi
jne 0x41a402
push 7
push str.Blind
push ebx
call edi
add esp, 0xc
test eax, eax
jne 0x41a402
add ebx, 0xe
mov byte [0x4fd94c], 1
mov dword [ebp + 0x68], ebx
jmp 0x41a410
mov byte [0x4fd94c], 0
mov dword [ebp + 0x68], ebx
test esi, esi
jne 0x41a42e
push 6
push str.Text
push ebx
call edi
add esp, 0xc
test eax, eax
jne 0x41a42e
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 + 0x2c], eax
cmp edi, 1
je 0x41a44e
cmp edi, 3
jne 0x41a508
mov eax, dword [0x4fd928]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41a460
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 [0x4fd928], 0
mov ebx, eax
je 0x41a48a
mov dword [0x4fd928], esi
jmp 0x41a491
test esi, esi
je 0x41a491
push esi
call edi
cmp ebx, 0xb7
je 0x41a4d2
cmp dword [ebp + 0x50], 0
jne 0x41a4c5
call fcn.00413f00
mov ebx, dword [ebp + 0x68]
test al, al
je 0x41a4c8
mov edx, str.Click
mov ecx, ebx
call fcn.004b09f0
test eax, eax
jne 0x41a4d5
mov edi, 1
mov dword [ebp + 0x78], edi
jmp 0x41a508
mov ebx, dword [ebp + 0x68]
mov edi, 1
mov dword [ebp + 0x78], edi
jmp 0x41a508
mov ebx, dword [ebp + 0x68]
cmp dword [ebp + 0x78], 3
jne 0x41a4e5
mov edi, 2
mov dword [ebp + 0x78], edi
jmp 0x41a508
mov ecx, dword [ebp + 0x48]
xor edi, edi
mov dword [ebp + 0x78], edi
cmp dword [ecx + 0x5c], edi
jge 0x41a4fc
cmp dword [ecx + 0x64], edi
jge 0x41a4fc
or eax, 0xffffffff
jmp 0x41a4fe
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 0x41a5c0
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 0x41a69d
cmp edi, dword [0x4fcbf0]
je 0x41a69d
mov ecx, dword [0x4ff18c]
test cl, 1
jne 0x41a56e
push str.IsHungAppWindow
or ecx, 1
push str.user32
mov dword [0x4ff18c], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ff190], eax
jmp 0x41a573
mov eax, dword [0x4ff190]
mov ecx, dword [ebp + 0x7c]
test eax, eax
je 0x41a57f
push ecx
call eax
jmp 0x41a59c
lea eax, [ebp + 0x14]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb eax, eax
inc eax
test eax, eax
jne 0x41a69d
push 1
push edi
push dword [0x4fcbf0]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
mov esi, edi
setne byte [ebp + 0x61]
jmp 0x41a69d
test byte [0x4fd6ee], 0xc0
je 0x41a65b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4fd6e4]
cmp eax, 0x32
jae 0x41a65b
cmp edi, 2
je 0x41a65b
cmp byte [0x4fd94c], 0
jne 0x41a65b
mov eax, dword [ebp + 0x50]
cmp eax, 2
je 0x41a65b
cmp byte [0x4fd8f3], 0
je 0x41a65b
mov ecx, dword [ebp + 0x24]
cmp ecx, dword [0x4fcbf0]
jne 0x41a65b
test eax, eax
je 0x41a6eb
mov edi, ebx
test ebx, ebx
je 0x41a651
movzx eax, word [ebx]
test ax, ax
je 0x41a651
mov esi, eax
mov ecx, 0x4e5c94
mov edx, 0x4c
nop word [eax + eax]
cmp si, dx
je 0x41a653
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x41a630
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x41a620
xor edi, edi
test edi, edi
jne 0x41a79d
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test eax, eax
je 0x41a697
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 0x41a697
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x41a697
push 0
push eax
call edi
mov esi, eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp + 0x18], eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
xor edx, edx
mov dword [0x4fd9a0], eax
mov ecx, eax
call fcn.0041eba0
mov cl, 1
mov dword [0x4fd9a4], eax
call fcn.0041e650
mov bl, al
and byte [0x4fcc0f], bl
cmp dword [0x4faa98], 0
je 0x41a7de
mov al, byte [0x4fac55]
mov cl, byte [0x4fab2f]
mov bh, al
not al
and bh, cl
and al, cl
jmp 0x41a802
mov esi, ebx
nop dword [eax]
test esi, esi
je 0x41a65b
movzx eax, word [esi]
test ax, ax
je 0x41a65b
mov edi, eax
nop word [eax + eax]
mov ecx, 0x4e5c94
mov edx, 0x4c
nop word [eax + eax]
cmp di, dx
je 0x41a746
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x41a720
movzx eax, word [esi + 2]
add esi, 2
mov edi, eax
test ax, ax
jne 0x41a710
jmp 0x41a65b
add esi, 2
je 0x41a79d
movzx eax, word [esi]
test ax, ax
je 0x41a79d
mov edi, eax
nop word [eax + eax]
mov eax, 0x4e5c9c
mov edx, 0x7b
nop word [eax + eax]
cmp di, dx
je 0x41a793
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x41a770
movzx eax, word [esi + 2]
add esi, 2
mov edi, eax
test ax, ax
jne 0x41a760
jmp 0x41a79d
cmp word [esi], 0x7b
jne 0x41a6f0
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call esi
test ax, ax
js 0x41a7b9
push 0x5c
call esi
test ax, ax
jns 0x41a65b
mov edx, 1
mov dword [0x4f816c], 0
mov ecx, 0x8000012f
call fcn.004018d0
mov dword [0x4f816c], 1
jmp 0x41a7a3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4fd6e4]
cmp eax, dword [0x4f93e8]
jae 0x41a7fc
mov cl, byte [0x4fd6ee]
and cl, bl
jmp 0x41a7fe
xor cl, cl
mov bh, cl
xor al, al
not bh
mov byte [ebp + 0x6d], cl
and bh, byte [0x4fcc0e]
and bh, bl
mov byte [ebp + 0x62], al
cmp byte [0x4fd94c], 0
mov byte [ebp + 0x6f], bh
mov byte [0x4fcc0e], bh
je 0x41a831
not bh
and bh, bl
mov al, bh
mov bh, bl
mov byte [ebp + 0x6f], bh
jmp 0x41a833
xor al, al
mov byte [ebp + 0x6c], al
mov eax, dword [ebp + 0x48]
mov byte [ebp + 0x58], bh
cmp byte [eax + 0xf3], 0
je 0x41a865
cmp byte [0x4fd94c], 0
jne 0x41a865
cmp dword [ebp + 0x50], 2
je 0x41a865
mov edx, 2
mov cl, 0x14
call fcn.0041de10
mov dword [ebp + 0x1c], eax
jmp 0x41a86c
mov dword [ebp + 0x1c], 0
mov edx, dword [ebp + 0x78]
mov eax, 0x1f4
mov dword [0x4fd9bc], edx
mov ecx, 0x5dc
test edx, edx
je 0x41a8e5
cmp edx, 1
cmovne eax, ecx
mov ecx, 0x2ee0
mov dword [0x4fd9ac], eax
mov eax, 0x36b0
cmovne eax, ecx
call fcn.004cc6d0
mov eax, dword [0x4f9be0]
mov ecx, esp
mov edx, dword [ebp + 0x78]
mov byte [0x4fd78c], bl
mov byte [0x4fd78d], 0
mov dword [eax], ecx
mov dword [0x4fd9b4], 0x80000000
mov dword [0x4fd9b8], 0x80000000
mov dword [0x4fd9a8], 0
mov byte [0x4fd78e], 0
mov byte [0x4fd78f], 1
mov al, byte [0x4fa946]
mov byte [ebp + 0x4f], al
mov eax, dword [str._v_a_a_a]
cmp eax, 8
je 0x41a8fc
cmp eax, 0xa
jne 0x41a91c
mov esi, dword [ebp + 0x7c]
test edx, edx
jne 0x41a91f
test esi, esi
jne 0x41a91f
push 1
mov byte [ebp + 0x60], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4fa946], 1
jmp 0x41a923
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 0x41b3a3
jmp 0x41a943
mov esi, dword [ebp + 0x7c]
cmp dword [0x4fd9bc], 0
mov byte [ebp + 0x63], 0
jne 0x41a9ac
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4f8174]
sub eax, dword [0x4fd72c]
cmp eax, dword [ecx + 0xd8]
jbe 0x41a9ac
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 0x41a9a1
mov edx, 1
mov dword [0x4f816c], 0
or ecx, 0xffffffff
call fcn.004018d0
mov dword [0x4f816c], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4fd72c], eax
mov eax, dword [ebp + 0x50]
test eax, eax
jne 0x41b2d1
movzx eax, word [edi]
push eax
push 0x4e5ca4
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
je 0x41b305
movzx eax, word [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x41a9e7.34
movzx eax, byte [eax + 0x41b6c8]
jmp dword [eax*4 + 0x41b6ac]
test bh, 3
jne case.0x41a9e7.34
or bl, 1
jmp 0x41b38b
test bh, 0x30
jne case.0x41a9e7.34
or bl, 0x10
jmp 0x41b38b
test bh, 0xc
jne case.0x41a9e7.34
or bl, 4
jmp 0x41b38b
test bh, 0xc0
jne case.0x41a9e7.34
or bl, 0x40
jmp 0x41b38b
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.0x41a9e7.34
mov edi, esi
nop
movzx ecx, word [edi]
cmp ecx, 0x20
je 0x41aa5d
cmp ecx, 9
jne 0x41aa62
add edi, 2
jmp 0x41aa50
mov esi, eax
mov dword [ebp + 0x68], edi
sub esi, edi
sar esi, 1
mov dword [ebp + 0x34], esi
jne 0x41aaf8
lea esi, [eax + 2]
movzx eax, word [esi]
cmp eax, 0x7d
jne 0x41aa87
mov dword [ebp + 0x54], esi
lea esi, [eax - 0x7c]
jmp 0x41aaf5
cmp eax, 0x20
je 0x41aa95
cmp eax, 9
jne 0x41b2c9
cmp ax, 0x20
je 0x41aaa1
cmp ax, 9
jne 0x41aaaa
movzx eax, word [esi + 2]
add esi, 2
jmp 0x41aa95
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 0x41aad8
push 2
push 0x4e47b8
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x41b2c9
push 0x7d
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
mov dword [ebp + 0x54], eax
test eax, eax
je case.0x41a9e7.34
mov esi, eax
sub esi, edi
sar esi, 1
mov dword [ebp + 0x34], esi
push 5
push 0x4e2c78
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x41abb7
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 0x41ab2d
cmp eax, 9
jne 0x41ab32
add ecx, 2
jmp 0x41ab20
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 + 0x10]
push eax
lea edx, [ebp + 0x28]
call fcn.0041c520
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 0x41ab8c
mov eax, dword [ebp + 0x48]
lea edx, [ebp + 0x10]
lea ecx, [ebp + 0x28]
movzx eax, byte [eax + 0xef]
push eax
lea eax, [ebp + 4]
push eax
call fcn.0041d170
mov edi, dword [ebp + 0x54]
add esp, 0xc
jmp 0x41b389
push dword [ebp + 0x10]
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.0041b740
mov edi, dword [ebp + 0x54]
add esp, 0x24
jmp 0x41b389
push 3
push 0x4e5cb4
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x41abdb
mov edi, dword [ebp + 0x54]
mov dword [ebp + 0x50], 1
jmp 0x41b389
push 4
push 0x4e5c04
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x41ac1d
lea ecx, [edi + 8]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x41ac00
cmp eax, 9
jne 0x41ac05
add ecx, 2
jmp 0x41abf3
cmp ecx, dword [ebp + 0x54]
jne 0x41b2c9
mov edi, dword [ebp + 0x54]
mov dword [ebp + 0x50], 2
jmp 0x41b389
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 0x41ae46
mov esi, eax
nop dword [eax]
mov edx, 0x4e5614
mov ecx, 0x20
nop word [eax + eax]
cmp si, cx
je 0x41aca2
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
test ax, ax
jne 0x41ac60
movzx eax, word [ebx + 2]
add ebx, 2
mov esi, eax
test ax, ax
jne 0x41ac50
push dword [0x4fd9a0]
mov ecx, dword [ebp + 0x68]
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x3c]
push eax
lea edx, [ebp + 0x6e]
call fcn.0041f1b0
add esp, 0xc
jmp 0x41ad79
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 0x41acc4
cmp eax, 9
jne 0x41acc9
add esi, 2
jmp 0x41acb7
mov eax, dword [ebp + 0x54]
sub eax, esi
sar eax, 1
je 0x41ad53
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 0x41ad2a
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 0x41ad0b
mov dword [ebp + 0x44], eax
jmp 0x41ad53
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 0x41ad53
push 0x4e47b8
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x41ad46
mov dword [ebp + 0x5c], 1
jmp 0x41ad53
mov ecx, esi
call fcn.00419ea0
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x30], eax
push dword [0x4fd9a0]
mov ecx, dword [ebp + 0x68]
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x3c]
push eax
lea edx, [ebp + 0x6e]
call fcn.0041f1b0
add esp, 0xc
test ebx, ebx
je 0x41ad76
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 0x41b2c6
mov bh, byte [ebp + 0x6e]
mov esi, dword [ebp + 0x3c]
test bh, bh
jne 0x41b209
test si, si
jne 0x41b209
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 0x41aef7
cmp eax, 1
jbe 0x41aefa
cmp dword [0x4fd9bc], 0
je 0x41ae8c
mov ecx, ebx
call fcn.00419ea0
mov ecx, dword [0x4fd9a8]
mov esi, eax
cmp ecx, dword [0x4fd9ac]
jne 0x41adf9
call fcn.0041d820
test eax, eax
je 0x41b2c6
cmp dword [0x4fd9bc], 1
jne 0x41ae64
mov eax, dword [0x4fd9a8]
xor edx, edx
or byte [0x4fd78d], 1
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [0x4fb5f8]
inc dword [0x4fd9a8]
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 0x41b389
push dword [0x4fd9a0]
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x3c]
push eax
lea edx, [ebp + 0x6e]
call fcn.0041f1b0
add esp, 0xc
jmp 0x41ad79
mov eax, dword [0x4f9be0]
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
mov ecx, dword [eax]
mov eax, dword [0x4fd9a8]
inc dword [0x4fd9a8]
mov dword [ecx + eax*8], 0
mov dword [ecx + eax*8 + 4], esi
jmp 0x41b389
mov eax, dword [ebp + 0x24]
mov dword [0x4f816c], 0
cmp dword [0x4fcbf0], eax
je 0x41aecf
mov ecx, ebx
call fcn.00419ea0
test eax, eax
js 0x41aecf
mov ecx, ebx
call fcn.00419ea0
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
mov dword [0x4f816c], 1
jmp 0x41b389
mov ecx, ebx
call fcn.00419ea0
mov edx, 1
mov ecx, eax
call fcn.004018d0
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
mov dword [0x4f816c], 1
jmp 0x41b389
cmp eax, 1
jne 0x41af63
cmp dword [ebp + 0x5c], 1
je 0x41b2c6
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
je 0x41af41
test edi, edi
jle 0x41b2c6
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 0x41af20
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
jmp 0x41b389
mov al, byte [ebp + 0x64]
mov edx, edi
or al, byte [ebp + 0x6f]
mov cx, word [ebx]
movzx eax, al
push eax
call fcn.0041b8f0
mov bh, byte [ebp + 0x6f]
add esp, 4
mov edi, dword [ebp + 0x54]
jmp 0x41b389
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.0041f280
mov bl, al
add esp, 0xc
mov byte [ebp + 0x6e], bl
test bl, bl
je 0x41b07e
cmp dword [ebp + 0x7c], 0
mov esi, dword [ebp + 0x5c]
jne 0x41afab
test esi, esi
jne 0x41afa4
mov byte [ebp + 0x63], bl
jmp 0x41afab
mov cl, bl
call fcn.0041a0d0
cmp dword [0x4fd9bc], 0
je 0x41afbb
mov al, byte [0x4fd78c]
jmp 0x41afc2
xor cl, cl
call fcn.0041e650
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.0041df20
add esp, 0x10
test edi, edi
jle 0x41b2c9
nop dword [eax]
push 0xffc3d44d
push 1
push dword [ebp + 0x7c]
mov dl, bl
mov ecx, esi
push 0
call fcn.0041bd60
add esp, 0x10
cmp dword [0x4fd9bc], 0
jne 0x41b06d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4f8174]
sub eax, dword [0x4fd72c]
cmp eax, dword [ecx + 0xd8]
jbe 0x41b06d
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 0x41b062
mov edx, 1
mov dword [0x4f816c], 0
or ecx, 0xffffffff
call fcn.004018d0
mov dword [0x4f816c], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4fd72c], eax
sub edi, 1
jne 0x41aff0
mov edi, dword [ebp + 0x54]
jmp 0x41b389
cmp esi, 4
jbe 0x41b0f6
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 0x41b101
test edi, edi
jne 0x41b101
lea ecx, [ebx + 6]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x41b0b2
cmp eax, 9
jne 0x41b0b7
add ecx, 2
jmp 0x41b0a5
call fcn.0041ba00
cmp dword [0x4fd9bc], 2
mov eax, dword [0x4f8174]
jne 0x41b0e0
mov ecx, dword [eax + 0x60]
call fcn.0041dae0
mov bh, byte [ebp + 0x58]
mov edi, dword [ebp + 0x54]
mov byte [ebp + 0x6f], bh
jmp 0x41b389
mov ecx, dword [eax + 0x5c]
call fcn.0041dae0
mov bh, byte [ebp + 0x58]
mov edi, dword [ebp + 0x54]
mov byte [ebp + 0x6f], bh
jmp 0x41b389
cmp esi, 2
jbe 0x41b0e8
mov ebx, dword [ebp + 0x68]
mov edi, dword [ebp + 0x7c]
push 2
push 0x4e5cd4
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x41b0e8
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 0x41b15b
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 0x41b160
movzx ecx, dx
xor esi, esi
mov bh, byte [ebp + 0x58]
mov byte [ebp + 0x6f], bh
test edi, edi
je 0x41b195
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 0x41b1db
push 0
movzx eax, si
push eax
push 0x102
push dword [ebp + 0x7c]
call edi
jmp 0x41b1db
cmp dword [0x4fd9bc], 2
je 0x41b1ba
mov bl, byte [ebp + 0x64]
or bl, bh
mov dl, bl
call fcn.0041a150
test si, si
je 0x41b1db
mov dl, bl
mov ecx, esi
call fcn.0041a150
jmp 0x41b1db
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.0041ba00
cmp dword [0x4fd9bc], 2
mov eax, dword [0x4f8174]
jne 0x41b1f9
mov ecx, dword [eax + 0x60]
call fcn.0041dae0
mov edi, dword [ebp + 0x54]
jmp 0x41b389
mov ecx, dword [eax + 0x5c]
call fcn.0041dae0
mov edi, dword [ebp + 0x54]
jmp 0x41b389
push 0
mov edx, esi
mov cl, bh
call fcn.0041e860
mov bl, al
add esp, 4
mov eax, dword [ebp + 0x5c]
mov byte [ebp + 0x14], bl
test bl, bl
je 0x41b29f
cmp dword [ebp + 0x7c], 0
jne 0x41b29f
test eax, eax
jne 0x41b257
mov ecx, dword [ebp + 0x44]
mov byte [ebp + 0x63], bh
cmp ecx, 1
jne 0x41b245
mov cl, byte [ebp + 0x6f]
or byte [0x4fcc0e], bl
or cl, bl
jmp 0x41b299
cmp ecx, 2
jne 0x41b250
or byte [0x4fcc0f], bl
mov cl, byte [ebp + 0x6f]
or cl, bl
jmp 0x41b299
cmp eax, 1
jne 0x41b29f
mov cl, bh
call fcn.0041a0d0
mov al, byte [ebp + 0x6c]
not bl
and byte [0x4fcc0f], bl
mov cl, bl
and cl, byte [0x4fcc0e]
and al, bl
mov byte [0x4fcc0e], cl
mov byte [ebp + 0x6c], al
cmp bh, 0xa5
jne 0x41b294
cmp dword [0x4fd9a4], 3
jne 0x41b294
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 closesocket
push closesocket
push ecx
push dword [ebp + 0x14]
mov cl, bh
push eax
push edi
push dword [ebp + 0x58]
push dword [ebp + 0x64]
call fcn.0041b740
add esp, 0x24
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
jmp 0x41b389
cmp eax, 2
jne 0x41b308
movzx eax, word [edi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x41b2e1.11
jmp dword [eax*4 + 0x41b728]
cmp word [edi + 2], 0xa
lea eax, [edi + 2]
cmove edi, eax
mov al, 0xd
jmp 0x41b32e
mov al, 8
jmp 0x41b32e
mov al, 9
jmp 0x41b32e
xor al, al
xor cl, cl
jmp 0x41b330
mov eax, dword [ebp + 0x50]
or bl, bh
je 0x41b314
test eax, eax
jne 0x41b314
mov al, 1
jmp 0x41b316
xor al, al
mov cx, word [edi]
lea edx, [ebp + 0x64]
push eax
push dword [0x4fd9a0]
call fcn.0041f0d0
mov bl, byte [ebp + 0x64]
add esp, 8
mov cl, al
mov byte [ebp + 0x6e], al
test cl, cl
je 0x41b35e
push 0
push closesocket
push closesocket
push esi
push 0
push 2
push 1
push dword [ebp + 0x58]
xor edx, edx
mov cl, al
push dword [ebp + 0x64]
call fcn.0041b740
add esp, 0x24
jmp 0x41b389
movzx ecx, word [edi]
test esi, esi
je 0x41b376
push 0
push ecx
push 0x102
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x41b389
or bl, bh
mov edx, 1
movzx eax, bl
push eax
call fcn.0041b8f0
add esp, 4
xor bl, bl
mov byte [ebp + 0x64], bl
mov al, byte [ebp + 0x63]
add edi, 2
mov byte [0x4fcc0d], al
cmp word [edi], 0
jne 0x41a940
cmp dword [0x4fd9bc], 0
je 0x41b44e
or esi, 0xffffffff
cmp byte [0x4fd78e], 0
mov dword [ebp + 0x44], esi
jne 0x41b40d
cmp dword [0x4fd9a8], 0
jbe 0x41b40d
cmp byte [0x4fd94c], 0
je 0x41b3d5
xor bl, bl
jmp 0x41b3dd
mov bl, byte [ebp + 0x62]
not bl
and bl, byte [ebp + 0x6d]
or bl, byte [0x4fcc0f]
mov dl, byte [0x4fd78c]
or bl, bh
push 0xffc3d44d
push 1
push 1
push 0
mov cl, bl
call fcn.0041df20
add esp, 0x10
lea ecx, [ebp + 0x44]
mov dl, bl
call fcn.0041d8d0
mov esi, dword [ebp + 0x44]
cmp dword [0x4fd9bc], 1
mov eax, 0x5dc
mov ecx, 0x1f4
cmove eax, ecx
cmp dword [0x4fd9ac], eax
jbe 0x41b438
push dword [0x4fb5f8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, esi
mov dword [0x4fd9bc], 0
call fcn.0041dae0
jmp 0x41b4da
cmp dword [0x4faa98], 0
je 0x41b462
mov cl, byte [0x4fab2f]
mov dl, byte [ebp + 0x6d]
jmp 0x41b48b
cmp dword [0x4f93e8], 0
jl 0x41b486
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4fd6e4]
cmp eax, dword [0x4f93e8]
jb 0x41b486
mov dl, byte [ebp + 0x6d]
xor cl, cl
jmp 0x41b48b
mov dl, byte [ebp + 0x6d]
mov cl, dl
or cl, byte [0x4fcc0f]
cmp byte [0x4fd94c], 0
je 0x41b4ac
mov al, cl
xor al, dl
mov bl, al
and al, cl
and bl, dl
not bl
and bl, bh
or bl, al
jmp 0x41b4b5
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.0041e650
or al, byte [0x4fab2e]
mov cl, bl
mov dl, al
call fcn.0041df20
add esp, 0x10
cmp dword [0x4faa98], 0
je 0x41b4fd
mov cl, byte [0x4fac54]
mov al, cl
xor al, byte [0x4fac55]
and al, cl
not al
and cl, al
mov byte [0x4fac54], cl
cmp dword [ebp + 0x1c], 1
jne 0x41b590
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x41b590
push 0x14
call esi
test ax, ax
jns 0x41b538
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 1
call fcn.0041bd60
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 2
call fcn.0041bd60
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 [0x4fcbf0]
jne 0x41b59c
mov edx, 1
mov dword [0x4f816c], 0
or ecx, 0xffffffff
call fcn.004018d0
mov dword [0x4f816c], 1
jmp 0x41b59c
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp byte [ebp + 0x61], 0
je 0x41b5b3
push 0
push dword [ebp + 0x18]
push dword [0x4fcbf0]
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp + 0x60], 0
je 0x41b5ce
cmp byte [ebp + 0x4f], 0
jne 0x41b5ce
push 0
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4fa946], 0
mov eax, dword [ebp + 0x78]
test eax, eax
jne 0x41b65c
mov eax, dword [ebp + 0xc]
cmp dword [0x4fd728], eax
je 0x41b691
cmp dword [0x4f816c], 0
je 0x41b691
cmp dword [0x4faa50], 0
jne 0x41b691
mov ecx, dword [0x4f8174]
cmp byte [ecx + 0xec], 0
jne 0x41b64d
cmp byte [ecx + 0xee], 0
jne 0x41b644
cmp dword [ecx + 0xe0], 0xffffffff
jle 0x41b644
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4f8174]
sub eax, dword [ecx + 0xdc]
cmp eax, dword [ecx + 0xe0]
jb 0x41b644
mov byte [ecx + 0xec], 1
cmp byte [ecx + 0xec], 0
je 0x41b691
mov edx, 1
or ecx, 0xffffffff
call fcn.004018d0
jmp 0x41b691
cmp eax, 1
jne 0x41b691
push 0
call esi
push eax
call ebx
cmp eax, dword [0x4fcbf0]
jne 0x41b691
mov edx, 1
mov dword [0x4f816c], 0
or ecx, 0xffffffff
call fcn.004018d0
mov dword [0x4f816c], 1
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x5c], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [eax + 0x64], ecx
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x70]
pop ebp
ret