Function at 0x41a870
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 0x41bb79
mov eax, dword [0x4f90f4]
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
mov dword [ebp + 0x48], eax
mov eax, dword [0x4fe690]
mov dword [ebp + 0xc], eax
mov eax, dword fs:[0x24]
mov dword [ebp + 0x24], eax
test esi, esi
jne 0x41a8d2
push 7
push str.Blind
push ebx
call edi
add esp, 0xc
test eax, eax
jne 0x41a8d2
add ebx, 0xe
mov byte [0x4fe92c], 1
mov dword [ebp + 0x68], ebx
jmp 0x41a8e0
mov byte [0x4fe92c], 0
mov dword [ebp + 0x68], ebx
test esi, esi
jne 0x41a8fe
push 6
push str.Text
push ebx
call edi
add esp, 0xc
test eax, eax
jne 0x41a8fe
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 0x41a91e
cmp edi, 3
jne 0x41a9d8
mov eax, dword [0x4fe88c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41a930
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 [0x4fe88c], 0
mov ebx, eax
je 0x41a95a
mov dword [0x4fe88c], esi
jmp 0x41a961
test esi, esi
je 0x41a961
push esi
call edi
cmp ebx, 0xb7
je 0x41a9a2
cmp dword [ebp + 0x50], 0
jne 0x41a995
call fcn.004143b0
mov ebx, dword [ebp + 0x68]
test al, al
je 0x41a998
mov edx, str.Click
mov ecx, ebx
call fcn.004b1850
test eax, eax
jne 0x41a9a5
mov edi, 1
mov dword [ebp + 0x78], edi
jmp 0x41a9d8
mov ebx, dword [ebp + 0x68]
mov edi, 1
mov dword [ebp + 0x78], edi
jmp 0x41a9d8
mov ebx, dword [ebp + 0x68]
cmp dword [ebp + 0x78], 3
jne 0x41a9b5
mov edi, 2
mov dword [ebp + 0x78], edi
jmp 0x41a9d8
mov ecx, dword [ebp + 0x48]
xor edi, edi
mov dword [ebp + 0x78], edi
cmp dword [ecx + 0x5c], edi
jge 0x41a9cc
cmp dword [ecx + 0x64], edi
jge 0x41a9cc
or eax, 0xffffffff
jmp 0x41a9ce
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 0x41aa90
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 0x41ab6d
cmp edi, dword [0x4fd2ec]
je 0x41ab6d
mov ecx, dword [0x5000fc]
test cl, 1
jne 0x41aa3e
push str.IsHungAppWindow
or ecx, 1
push str.user32
mov dword [0x5000fc], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x500100], eax
jmp 0x41aa43
mov eax, dword [0x500100]
mov ecx, dword [ebp + 0x7c]
test eax, eax
je 0x41aa4f
push ecx
call eax
jmp 0x41aa6c
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 0x41ab6d
push 1
push edi
push dword [0x4fd2ec]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
mov esi, edi
setne byte [ebp + 0x61]
jmp 0x41ab6d
test byte [0x4fe656], 0xc0
je 0x41ab2b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4fe64c]
cmp eax, 0x32
jae 0x41ab2b
cmp edi, 2
je 0x41ab2b
cmp byte [0x4fe92c], 0
jne 0x41ab2b
mov eax, dword [ebp + 0x50]
cmp eax, 2
je 0x41ab2b
cmp byte [0x4fe85b], 0
je 0x41ab2b
mov ecx, dword [ebp + 0x24]
cmp ecx, dword [0x4fd2ec]
jne 0x41ab2b
test eax, eax
je 0x41abbb
mov edi, ebx
test ebx, ebx
je 0x41ab21
movzx eax, word [ebx]
test ax, ax
je 0x41ab21
mov esi, eax
mov ecx, 0x4e6c94
mov edx, 0x4c
nop word [eax + eax]
cmp si, dx
je 0x41ab23
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x41ab00
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x41aaf0
xor edi, edi
test edi, edi
jne 0x41ac6d
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test eax, eax
je 0x41ab67
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 0x41ab67
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x41ab67
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 [0x4fe908], eax
mov ecx, eax
call fcn.0041f0c0
mov cl, 1
mov dword [0x4fe90c], eax
call fcn.0041eb60
mov bl, al
and byte [0x4fe8b7], bl
cmp dword [0x4fba08], 0
je 0x41acb3
mov al, byte [0x4fc3de]
mov cl, byte [0x4fc3dc]
mov bh, al
not al
and bh, cl
and al, cl
jmp 0x41acd7
mov esi, ebx
nop dword [eax]
test esi, esi
je 0x41ab2b
movzx eax, word [esi]
test ax, ax
je 0x41ab2b
mov edi, eax
nop word [eax + eax]
mov ecx, 0x4e6c94
mov edx, 0x4c
nop word [eax + eax]
cmp di, dx
je 0x41ac16
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x41abf0
movzx eax, word [esi + 2]
add esi, 2
mov edi, eax
test ax, ax
jne 0x41abe0
jmp 0x41ab2b
add esi, 2
je 0x41ac6d
movzx eax, word [esi]
test ax, ax
je 0x41ac6d
mov edi, eax
nop word [eax + eax]
mov eax, 0x4e6c9c
mov edx, 0x7b
nop word [eax + eax]
cmp di, dx
je 0x41ac63
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x41ac40
movzx eax, word [esi + 2]
add esi, 2
mov edi, eax
test ax, ax
jne 0x41ac30
jmp 0x41ac6d
cmp word [esi], 0x7b
jne 0x41abc0
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, 0x8000
push 0x5b
call esi
test bx, ax
jne 0x41ac8e
push 0x5c
call esi
test bx, ax
je 0x41ab2b
mov edx, 1
mov dword [0x4f90ec], 0
mov ecx, 0x8000012f
call fcn.004018f0
mov dword [0x4f90ec], 1
jmp 0x41ac78
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4fe64c]
cmp eax, dword [0x4fa360]
jae 0x41acd1
mov cl, byte [0x4fe656]
and cl, bl
jmp 0x41acd3
xor cl, cl
mov bh, cl
xor al, al
not bh
mov byte [ebp + 0x6d], cl
and bh, byte [0x4fe8b6]
and bh, bl
mov byte [ebp + 0x62], al
cmp byte [0x4fe92c], 0
mov byte [ebp + 0x6f], bh
mov byte [0x4fe8b6], bh
je 0x41ad06
not bh
and bh, bl
mov al, bh
mov bh, bl
mov byte [ebp + 0x6f], bh
jmp 0x41ad08
xor al, al
mov byte [ebp + 0x6c], al
mov eax, dword [ebp + 0x48]
mov byte [ebp + 0x58], bh
cmp byte [eax + 0xf3], 0
je 0x41ad3a
cmp byte [0x4fe92c], 0
jne 0x41ad3a
cmp dword [ebp + 0x50], 2
je 0x41ad3a
mov edx, 2
mov cl, 0x14
call fcn.0041e320
mov dword [ebp + 0x1c], eax
jmp 0x41ad41
mov dword [ebp + 0x1c], 0
mov edx, dword [ebp + 0x78]
mov eax, 0x1f4
mov dword [0x4fe928], edx
mov ecx, 0x5dc
test edx, edx
je 0x41adba
cmp edx, 1
cmovne eax, ecx
mov ecx, 0x2ee0
mov dword [0x4fe914], eax
mov eax, 0x36b0
cmovne eax, ecx
call fcn.004cdaf0
mov eax, dword [0x4fab58]
mov ecx, esp
mov edx, dword [ebp + 0x78]
mov byte [0x4fe91c], bl
mov byte [0x4fe91d], 0
mov dword [eax], ecx
mov dword [0x4fe920], 0x80000000
mov dword [0x4fe924], 0x80000000
mov dword [0x4fe910], 0
mov byte [0x4fe91e], 0
mov byte [0x4fe91f], 1
mov al, byte [0x4fba6e]
mov byte [ebp + 0x4f], al
mov eax, dword [0x4f9104]
cmp eax, 8
je 0x41add1
cmp eax, 0xa
jne 0x41adf1
mov esi, dword [ebp + 0x7c]
test edx, edx
jne 0x41adf4
test esi, esi
jne 0x41adf4
push 1
mov byte [ebp + 0x60], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4fba6e], 1
jmp 0x41adf8
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 0x41b87a
jmp 0x41ae13
mov esi, dword [ebp + 0x7c]
cmp dword [0x4fe928], 0
mov byte [ebp + 0x63], 0
jne 0x41ae7c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4f90f4]
sub eax, dword [0x4fe694]
cmp eax, dword [ecx + 0xd8]
jbe 0x41ae7c
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 0x41ae71
mov edx, 1
mov dword [0x4f90ec], 0
or ecx, 0xffffffff
call fcn.004018f0
mov dword [0x4f90ec], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4fe694], eax
mov eax, dword [ebp + 0x50]
test eax, eax
jne 0x41b7a1
movzx eax, word [edi]
push eax
push str._
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
je 0x41b7de
movzx eax, word [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x41aeb7.34
movzx eax, byte [eax + 0x41bba0]
jmp dword [eax*4 + 0x41bb84]
test bh, 3
jne case.0x41aeb7.34
or bl, 1
jmp 0x41b862
test bh, 0x30
jne case.0x41aeb7.34
or bl, 0x10
jmp 0x41b862
test bh, 0xc
jne case.0x41aeb7.34
or bl, 4
jmp 0x41b862
test bh, 0xc0
jne case.0x41aeb7.34
or bl, 0x40
jmp 0x41b862
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.0x41aeb7.34
mov edi, esi
nop
movzx ecx, word [edi]
cmp ecx, 0x20
je 0x41af2d
cmp ecx, 9
jne 0x41af32
add edi, 2
jmp 0x41af20
mov esi, eax
mov dword [ebp + 0x68], edi
sub esi, edi
sar esi, 1
mov dword [ebp + 0x34], esi
jne 0x41afc8
lea esi, [eax + 2]
movzx eax, word [esi]
cmp eax, 0x7d
jne 0x41af57
mov dword [ebp + 0x54], esi
lea esi, [eax - 0x7c]
jmp 0x41afc5
cmp eax, 0x20
je 0x41af65
cmp eax, 9
jne 0x41b799
cmp ax, 0x20
je 0x41af71
cmp ax, 9
jne 0x41af7a
movzx eax, word [esi + 2]
add esi, 2
jmp 0x41af65
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 0x41afa8
push 2
push 0x4e57b4
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x41b799
push 0x7d
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
mov dword [ebp + 0x54], eax
test eax, eax
je case.0x41aeb7.34
mov esi, eax
sub esi, edi
sar esi, 1
mov dword [ebp + 0x34], esi
push 5
push 0x4e3c60
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x41b087
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 0x41affd
cmp eax, 9
jne 0x41b002
add ecx, 2
jmp 0x41aff0
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.0041ca20
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 0x41b05c
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.0041d680
mov edi, dword [ebp + 0x54]
add esp, 0xc
jmp 0x41b860
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.0041bc20
mov edi, dword [ebp + 0x54]
add esp, 0x24
jmp 0x41b860
push 3
push 0x4e6cb4
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x41b0ab
mov edi, dword [ebp + 0x54]
mov dword [ebp + 0x50], 1
jmp 0x41b860
push 4
push 0x4e6c04
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x41b0ed
lea ecx, [edi + 8]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x41b0d0
cmp eax, 9
jne 0x41b0d5
add ecx, 2
jmp 0x41b0c3
cmp ecx, dword [ebp + 0x54]
jne 0x41b799
mov edi, dword [ebp + 0x54]
mov dword [ebp + 0x50], 2
jmp 0x41b860
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 0x41b316
mov esi, eax
nop dword [eax]
mov edx, 0x4e6614
mov ecx, 0x20
nop word [eax + eax]
cmp si, cx
je 0x41b172
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
test ax, ax
jne 0x41b130
movzx eax, word [ebx + 2]
add ebx, 2
mov esi, eax
test ax, ax
jne 0x41b120
push dword [0x4fe908]
mov ecx, dword [ebp + 0x68]
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x3c]
push eax
lea edx, [ebp + 0x6e]
call fcn.0041f6d0
add esp, 0xc
jmp 0x41b249
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 0x41b194
cmp eax, 9
jne 0x41b199
add esi, 2
jmp 0x41b187
mov eax, dword [ebp + 0x54]
sub eax, esi
sar eax, 1
je 0x41b223
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 0x41b1fa
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 0x41b1db
mov dword [ebp + 0x44], eax
jmp 0x41b223
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 0x41b223
push 0x4e57b4
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x41b216
mov dword [ebp + 0x5c], 1
jmp 0x41b223
mov ecx, esi
call fcn.0041a370
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x30], eax
push dword [0x4fe908]
mov ecx, dword [ebp + 0x68]
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x3c]
push eax
lea edx, [ebp + 0x6e]
call fcn.0041f6d0
add esp, 0xc
test ebx, ebx
je 0x41b246
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 0x41b796
mov bh, byte [ebp + 0x6e]
mov esi, dword [ebp + 0x3c]
test bh, bh
jne 0x41b6d9
test si, si
jne 0x41b6d9
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 0x41b3c7
cmp eax, 1
jbe 0x41b3ca
cmp dword [0x4fe928], 0
je 0x41b35c
mov ecx, ebx
call fcn.0041a370
mov ecx, dword [0x4fe910]
mov esi, eax
cmp ecx, dword [0x4fe914]
jne 0x41b2c9
call fcn.0041dd40
test eax, eax
je 0x41b796
cmp dword [0x4fe928], 1
jne 0x41b334
mov eax, dword [0x4fe910]
xor edx, edx
or byte [0x4fe91d], 1
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [0x4fc568]
inc dword [0x4fe910]
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 0x41b860
push dword [0x4fe908]
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x3c]
push eax
lea edx, [ebp + 0x6e]
call fcn.0041f6d0
add esp, 0xc
jmp 0x41b249
mov eax, dword [0x4fab58]
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
mov ecx, dword [eax]
mov eax, dword [0x4fe910]
inc dword [0x4fe910]
mov dword [ecx + eax*8], 0
mov dword [ecx + eax*8 + 4], esi
jmp 0x41b860
mov eax, dword [ebp + 0x24]
mov dword [0x4f90ec], 0
cmp dword [0x4fd2ec], eax
je 0x41b39f
mov ecx, ebx
call fcn.0041a370
test eax, eax
js 0x41b39f
mov ecx, ebx
call fcn.0041a370
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
mov dword [0x4f90ec], 1
jmp 0x41b860
mov ecx, ebx
call fcn.0041a370
mov edx, 1
mov ecx, eax
call fcn.004018f0
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
mov dword [0x4f90ec], 1
jmp 0x41b860
cmp eax, 1
jne 0x41b433
cmp dword [ebp + 0x5c], 1
je 0x41b796
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
je 0x41b411
test edi, edi
jle 0x41b796
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 0x41b3f0
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
jmp 0x41b860
mov al, byte [ebp + 0x64]
mov edx, edi
or al, byte [ebp + 0x6f]
mov cx, word [ebx]
movzx eax, al
push eax
call fcn.0041bdd0
mov bh, byte [ebp + 0x6f]
add esp, 4
mov edi, dword [ebp + 0x54]
jmp 0x41b860
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.0041f7a0
mov bl, al
add esp, 0xc
mov byte [ebp + 0x6e], bl
test bl, bl
je 0x41b54e
cmp dword [ebp + 0x7c], 0
mov esi, dword [ebp + 0x5c]
jne 0x41b47b
test esi, esi
jne 0x41b474
mov byte [ebp + 0x63], bl
jmp 0x41b47b
mov cl, bl
call fcn.0041a5a0
cmp dword [0x4fe928], 0
je 0x41b48b
mov al, byte [0x4fe91c]
jmp 0x41b492
xor cl, cl
call fcn.0041eb60
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.0041e430
add esp, 0x10
test edi, edi
jle 0x41b799
nop dword [eax]
push 0xffc3d44d
push 1
push dword [ebp + 0x7c]
mov dl, bl
mov ecx, esi
push 0
call fcn.0041c240
add esp, 0x10
cmp dword [0x4fe928], 0
jne 0x41b53d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4f90f4]
sub eax, dword [0x4fe694]
cmp eax, dword [ecx + 0xd8]
jbe 0x41b53d
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 0x41b532
mov edx, 1
mov dword [0x4f90ec], 0
or ecx, 0xffffffff
call fcn.004018f0
mov dword [0x4f90ec], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4fe694], eax
sub edi, 1
jne 0x41b4c0
mov edi, dword [ebp + 0x54]
jmp 0x41b860
cmp esi, 4
jbe 0x41b5c6
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 0x41b5d1
test edi, edi
jne 0x41b5d1
lea ecx, [ebx + 6]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x41b582
cmp eax, 9
jne 0x41b587
add ecx, 2
jmp 0x41b575
call fcn.0041bee0
cmp dword [0x4fe928], 2
mov eax, dword [0x4f90f4]
jne 0x41b5b0
mov ecx, dword [eax + 0x60]
call fcn.0041e000
mov bh, byte [ebp + 0x58]
mov edi, dword [ebp + 0x54]
mov byte [ebp + 0x6f], bh
jmp 0x41b860
mov ecx, dword [eax + 0x5c]
call fcn.0041e000
mov bh, byte [ebp + 0x58]
mov edi, dword [ebp + 0x54]
mov byte [ebp + 0x6f], bh
jmp 0x41b860
cmp esi, 2
jbe 0x41b5b8
mov ebx, dword [ebp + 0x68]
mov edi, dword [ebp + 0x7c]
push 2
push 0x4e6cd4
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x41b5b8
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 0x41b62b
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 0x41b630
movzx ecx, dx
xor esi, esi
mov bh, byte [ebp + 0x58]
mov byte [ebp + 0x6f], bh
test edi, edi
je 0x41b665
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 0x41b6ab
push 0
movzx eax, si
push eax
push 0x102
push dword [ebp + 0x7c]
call edi
jmp 0x41b6ab
cmp dword [0x4fe928], 2
je 0x41b68a
mov bl, byte [ebp + 0x64]
or bl, bh
mov dl, bl
call fcn.0041a620
test si, si
je 0x41b6ab
mov dl, bl
mov ecx, esi
call fcn.0041a620
jmp 0x41b6ab
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.0041bee0
cmp dword [0x4fe928], 2
mov eax, dword [0x4f90f4]
jne 0x41b6c9
mov ecx, dword [eax + 0x60]
call fcn.0041e000
mov edi, dword [ebp + 0x54]
jmp 0x41b860
mov ecx, dword [eax + 0x5c]
call fcn.0041e000
mov edi, dword [ebp + 0x54]
jmp 0x41b860
push 0
mov edx, esi
mov cl, bh
call fcn.0041ed80
mov bl, al
add esp, 4
mov eax, dword [ebp + 0x5c]
mov byte [ebp + 0x14], bl
test bl, bl
je 0x41b76f
cmp dword [ebp + 0x7c], 0
jne 0x41b76f
test eax, eax
jne 0x41b727
mov ecx, dword [ebp + 0x44]
mov byte [ebp + 0x63], bh
cmp ecx, 1
jne 0x41b715
mov cl, byte [ebp + 0x6f]
or byte [0x4fe8b6], bl
or cl, bl
jmp 0x41b769
cmp ecx, 2
jne 0x41b720
or byte [0x4fe8b7], bl
mov cl, byte [ebp + 0x6f]
or cl, bl
jmp 0x41b769
cmp eax, 1
jne 0x41b76f
mov cl, bh
call fcn.0041a5a0
mov al, byte [ebp + 0x6c]
not bl
and byte [0x4fe8b7], bl
mov cl, bl
and cl, byte [0x4fe8b6]
and al, bl
mov byte [0x4fe8b6], cl
mov byte [ebp + 0x6c], al
cmp bh, 0xa5
jne 0x41b764
cmp dword [0x4fe90c], 3
jne 0x41b764
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.0041bc20
add esp, 0x24
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
jmp 0x41b860
cmp eax, 2
jne 0x41b7e1
movzx eax, word [edi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x41b7b1.11
jmp dword [eax*4 + 0x41bc00]
cmp word [edi + 2], 0xa
lea eax, [edi + 2]
cmove edi, eax
mov al, 0xd
mov byte [ebp + 0x6e], al
jmp 0x41b80b
mov al, 8
mov byte [ebp + 0x6e], al
jmp 0x41b80b
mov al, 9
mov byte [ebp + 0x6e], al
jmp 0x41b80b
mov byte [ebp + 0x6e], 0
jmp 0x41b835
mov eax, dword [ebp + 0x50]
or bl, bh
je 0x41b7ed
test eax, eax
jne 0x41b7ed
mov al, 1
jmp 0x41b7ef
xor al, al
mov cx, word [edi]
lea edx, [ebp + 0x64]
push eax
push dword [0x4fe908]
call fcn.0041f5f0
add esp, 8
mov byte [ebp + 0x6e], al
test al, al
je 0x41b832
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.0041bc20
add esp, 0x24
jmp 0x41b860
mov bl, byte [ebp + 0x64]
movzx ecx, word [edi]
test esi, esi
je 0x41b84d
push 0
push ecx
push 0x102
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x41b860
or bl, bh
mov edx, 1
movzx eax, bl
push eax
call fcn.0041bdd0
add esp, 4
xor bl, bl
mov byte [ebp + 0x64], bl
mov al, byte [ebp + 0x63]
add edi, 2
mov byte [0x4fe8b5], al
cmp word [edi], 0
jne 0x41ae10
cmp dword [0x4fe928], 0
je 0x41b925
or esi, 0xffffffff
cmp byte [0x4fe91e], 0
mov dword [ebp + 0x44], esi
jne 0x41b8e4
cmp dword [0x4fe910], 0
jbe 0x41b8e4
cmp byte [0x4fe92c], 0
je 0x41b8ac
xor bl, bl
jmp 0x41b8b4
mov bl, byte [ebp + 0x62]
not bl
and bl, byte [ebp + 0x6d]
or bl, byte [0x4fe8b7]
mov dl, byte [0x4fe91c]
or bl, bh
push 0xffc3d44d
push 1
push 1
push 0
mov cl, bl
call fcn.0041e430
add esp, 0x10
lea ecx, [ebp + 0x44]
mov dl, bl
call fcn.0041ddf0
mov esi, dword [ebp + 0x44]
cmp dword [0x4fe928], 1
mov eax, 0x5dc
mov ecx, 0x1f4
cmove eax, ecx
cmp dword [0x4fe914], eax
jbe 0x41b90f
push dword [0x4fc568]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, esi
mov dword [0x4fe928], 0
call fcn.0041e000
jmp 0x41b9b1
cmp dword [0x4fba08], 0
je 0x41b939
mov cl, byte [0x4fc3dc]
mov dl, byte [ebp + 0x6d]
jmp 0x41b962
cmp dword [0x4fa360], 0
jl 0x41b95d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4fe64c]
cmp eax, dword [0x4fa360]
jb 0x41b95d
mov dl, byte [ebp + 0x6d]
xor cl, cl
jmp 0x41b962
mov dl, byte [ebp + 0x6d]
mov cl, dl
or cl, byte [0x4fe8b7]
cmp byte [0x4fe92c], 0
je 0x41b983
mov al, cl
xor al, dl
mov bl, al
and al, cl
and bl, dl
not bl
and bl, bh
or bl, al
jmp 0x41b98c
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.0041eb60
or al, byte [0x4fbaa3]
mov cl, bl
mov dl, al
call fcn.0041e430
add esp, 0x10
cmp dword [0x4fba08], 0
je 0x41b9d4
mov cl, byte [0x4fc3dd]
mov al, cl
xor al, byte [0x4fc3de]
and al, cl
not al
and cl, al
mov byte [0x4fc3dd], cl
cmp dword [ebp + 0x1c], 1
jne 0x41ba69
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x41ba69
push 0x14
call esi
bt ax, 0xf
jae 0x41ba11
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 1
call fcn.0041c240
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 2
call fcn.0041c240
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 [0x4fd2ec]
jne 0x41ba75
mov edx, 1
mov dword [0x4f90ec], 0
or ecx, 0xffffffff
call fcn.004018f0
mov dword [0x4f90ec], 1
jmp 0x41ba75
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp byte [ebp + 0x61], 0
je 0x41ba8c
push 0
push dword [ebp + 0x18]
push dword [0x4fd2ec]
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp + 0x60], 0
je 0x41baa7
cmp byte [ebp + 0x4f], 0
jne 0x41baa7
push 0
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4fba6e], 0
mov eax, dword [ebp + 0x78]
test eax, eax
jne 0x41bb35
mov eax, dword [ebp + 0xc]
cmp dword [0x4fe690], eax
je 0x41bb6a
cmp dword [0x4f90ec], 0
je 0x41bb6a
cmp dword [0x4fb9b8], 0
jne 0x41bb6a
mov ecx, dword [0x4f90f4]
cmp byte [ecx + 0xec], 0
jne 0x41bb26
cmp byte [ecx + 0xee], 0
jne 0x41bb1d
cmp dword [ecx + 0xe0], 0xffffffff
jle 0x41bb1d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4f90f4]
sub eax, dword [ecx + 0xdc]
cmp eax, dword [ecx + 0xe0]
jb 0x41bb1d
mov byte [ecx + 0xec], 1
cmp byte [ecx + 0xec], 0
je 0x41bb6a
mov edx, 1
or ecx, 0xffffffff
call fcn.004018f0
jmp 0x41bb6a
cmp eax, 1
jne 0x41bb6a
push 0
call esi
push eax
call ebx
cmp eax, dword [0x4fd2ec]
jne 0x41bb6a
mov edx, 1
mov dword [0x4f90ec], 0
or ecx, 0xffffffff
call fcn.004018f0
mov dword [0x4f90ec], 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