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 0x41bb70
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 [0x4fe6a8]
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 [0x4fe8cc], 1
mov dword [ebp + 0x68], ebx
jmp 0x41a8e0
mov byte [0x4fe8cc], 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 [0x4fe8a8]
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 [0x4fe8a8], 0
mov ebx, eax
je 0x41a95a
mov dword [0x4fe8a8], 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.004143a0
mov ebx, dword [ebp + 0x68]
test al, al
je 0x41a998
mov edx, str.Click
mov ecx, ebx
call fcn.004b13c0
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 [0x4fdb70]
je 0x41ab6d
mov ecx, dword [0x50010c]
test cl, 1
jne 0x41aa3e
push str.IsHungAppWindow
or ecx, 1
push str.user32
mov dword [0x50010c], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x500110], eax
jmp 0x41aa43
mov eax, dword [0x500110]
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 [0x4fdb70]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
mov esi, edi
setne byte [ebp + 0x61]
jmp 0x41ab6d
test byte [0x4fe66e], 0xc0
je 0x41ab2b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4fe664]
cmp eax, 0x32
jae 0x41ab2b
cmp edi, 2
je 0x41ab2b
cmp byte [0x4fe8cc], 0
jne 0x41ab2b
mov eax, dword [ebp + 0x50]
cmp eax, 2
je 0x41ab2b
cmp byte [0x4fe873], 0
je 0x41ab2b
mov ecx, dword [ebp + 0x24]
cmp ecx, dword [0x4fdb70]
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 [0x4fe920], eax
mov ecx, eax
call fcn.0041f090
mov cl, 1
mov dword [0x4fe924], eax
call fcn.0041eb40
mov bl, al
and byte [0x4fdb8f], bl
cmp dword [0x4fba18], 0
je 0x41acae
mov al, byte [0x4fbbd5]
mov cl, byte [0x4fbaaf]
mov bh, al
not al
and bh, cl
and al, cl
jmp 0x41acd2
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]
push 0x5b
call esi
test ax, ax
js 0x41ac89
push 0x5c
call esi
test ax, ax
jns 0x41ab2b
mov edx, 1
mov dword [0x4f90ec], 0
mov ecx, 0x8000012f
call fcn.004018d0
mov dword [0x4f90ec], 1
jmp 0x41ac73
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4fe664]
cmp eax, dword [0x4fa368]
jae 0x41accc
mov cl, byte [0x4fe66e]
and cl, bl
jmp 0x41acce
xor cl, cl
mov bh, cl
xor al, al
not bh
mov byte [ebp + 0x6d], cl
and bh, byte [0x4fdb8e]
and bh, bl
mov byte [ebp + 0x62], al
cmp byte [0x4fe8cc], 0
mov byte [ebp + 0x6f], bh
mov byte [0x4fdb8e], bh
je 0x41ad01
not bh
and bh, bl
mov al, bh
mov bh, bl
mov byte [ebp + 0x6f], bh
jmp 0x41ad03
xor al, al
mov byte [ebp + 0x6c], al
mov eax, dword [ebp + 0x48]
mov byte [ebp + 0x58], bh
cmp byte [eax + 0xf3], 0
je 0x41ad35
cmp byte [0x4fe8cc], 0
jne 0x41ad35
cmp dword [ebp + 0x50], 2
je 0x41ad35
mov edx, 2
mov cl, 0x14
call fcn.0041e300
mov dword [ebp + 0x1c], eax
jmp 0x41ad3c
mov dword [ebp + 0x1c], 0
mov edx, dword [ebp + 0x78]
mov eax, 0x1f4
mov dword [0x4fe93c], edx
mov ecx, 0x5dc
test edx, edx
je 0x41adb5
cmp edx, 1
cmovne eax, ecx
mov ecx, 0x2ee0
mov dword [0x4fe92c], eax
mov eax, 0x36b0
cmovne eax, ecx
call fcn.004cd470
mov eax, dword [0x4fab60]
mov ecx, esp
mov edx, dword [ebp + 0x78]
mov byte [0x4fe70c], bl
mov byte [0x4fe70d], 0
mov dword [eax], ecx
mov dword [0x4fe934], 0x80000000
mov dword [0x4fe938], 0x80000000
mov dword [0x4fe928], 0
mov byte [0x4fe70e], 0
mov byte [0x4fe70f], 1
mov al, byte [0x4fb8c6]
mov byte [ebp + 0x4f], al
mov eax, dword [str._v_a_a_a]
cmp eax, 8
je 0x41adcc
cmp eax, 0xa
jne 0x41adec
mov esi, dword [ebp + 0x7c]
test edx, edx
jne 0x41adef
test esi, esi
jne 0x41adef
push 1
mov byte [ebp + 0x60], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4fb8c6], 1
jmp 0x41adf3
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 0x41b873
jmp 0x41ae13
mov esi, dword [ebp + 0x7c]
cmp dword [0x4fe93c], 0
mov byte [ebp + 0x63], 0
jne 0x41ae7c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4f90f4]
sub eax, dword [0x4fe6ac]
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.004018d0
mov dword [0x4f90ec], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4fe6ac], eax
mov eax, dword [ebp + 0x50]
test eax, eax
jne 0x41b7a1
movzx eax, word [edi]
push eax
push 0x4e6ca4
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
je 0x41b7d5
movzx eax, word [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x41aeb7.34
movzx eax, byte [eax + 0x41bb98]
jmp dword [eax*4 + 0x41bb7c]
test bh, 3
jne case.0x41aeb7.34
or bl, 1
jmp 0x41b85b
test bh, 0x30
jne case.0x41aeb7.34
or bl, 0x10
jmp 0x41b85b
test bh, 0xc
jne case.0x41aeb7.34
or bl, 4
jmp 0x41b85b
test bh, 0xc0
jne case.0x41aeb7.34
or bl, 0x40
jmp 0x41b85b
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 0x4e57b8
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 0x4e3c78
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.0041c9f0
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.0041d650
mov edi, dword [ebp + 0x54]
add esp, 0xc
jmp 0x41b859
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.0041bc10
mov edi, dword [ebp + 0x54]
add esp, 0x24
jmp 0x41b859
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 0x41b859
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 0x41b859
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 [0x4fe920]
mov ecx, dword [ebp + 0x68]
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x3c]
push eax
lea edx, [ebp + 0x6e]
call fcn.0041f6a0
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 0x4e57b8
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 [0x4fe920]
mov ecx, dword [ebp + 0x68]
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x3c]
push eax
lea edx, [ebp + 0x6e]
call fcn.0041f6a0
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 [0x4fe93c], 0
je 0x41b35c
mov ecx, ebx
call fcn.0041a370
mov ecx, dword [0x4fe928]
mov esi, eax
cmp ecx, dword [0x4fe92c]
jne 0x41b2c9
call fcn.0041dd10
test eax, eax
je 0x41b796
cmp dword [0x4fe93c], 1
jne 0x41b334
mov eax, dword [0x4fe928]
xor edx, edx
or byte [0x4fe70d], 1
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [0x4fc578]
inc dword [0x4fe928]
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 0x41b859
push dword [0x4fe920]
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x3c]
push eax
lea edx, [ebp + 0x6e]
call fcn.0041f6a0
add esp, 0xc
jmp 0x41b249
mov eax, dword [0x4fab60]
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
mov ecx, dword [eax]
mov eax, dword [0x4fe928]
inc dword [0x4fe928]
mov dword [ecx + eax*8], 0
mov dword [ecx + eax*8 + 4], esi
jmp 0x41b859
mov eax, dword [ebp + 0x24]
mov dword [0x4f90ec], 0
cmp dword [0x4fdb70], 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 0x41b859
mov ecx, ebx
call fcn.0041a370
mov edx, 1
mov ecx, eax
call fcn.004018d0
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
mov dword [0x4f90ec], 1
jmp 0x41b859
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 0x41b859
mov al, byte [ebp + 0x64]
mov edx, edi
or al, byte [ebp + 0x6f]
mov cx, word [ebx]
movzx eax, al
push eax
call fcn.0041bdc0
mov bh, byte [ebp + 0x6f]
add esp, 4
mov edi, dword [ebp + 0x54]
jmp 0x41b859
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.0041f770
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 [0x4fe93c], 0
je 0x41b48b
mov al, byte [0x4fe70c]
jmp 0x41b492
xor cl, cl
call fcn.0041eb40
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.0041e410
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.0041c230
add esp, 0x10
cmp dword [0x4fe93c], 0
jne 0x41b53d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4f90f4]
sub eax, dword [0x4fe6ac]
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.004018d0
mov dword [0x4f90ec], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4fe6ac], eax
sub edi, 1
jne 0x41b4c0
mov edi, dword [ebp + 0x54]
jmp 0x41b859
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.0041bed0
cmp dword [0x4fe93c], 2
mov eax, dword [0x4f90f4]
jne 0x41b5b0
mov ecx, dword [eax + 0x60]
call fcn.0041dfd0
mov bh, byte [ebp + 0x58]
mov edi, dword [ebp + 0x54]
mov byte [ebp + 0x6f], bh
jmp 0x41b859
mov ecx, dword [eax + 0x5c]
call fcn.0041dfd0
mov bh, byte [ebp + 0x58]
mov edi, dword [ebp + 0x54]
mov byte [ebp + 0x6f], bh
jmp 0x41b859
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 [0x4fe93c], 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.0041bed0
cmp dword [0x4fe93c], 2
mov eax, dword [0x4f90f4]
jne 0x41b6c9
mov ecx, dword [eax + 0x60]
call fcn.0041dfd0
mov edi, dword [ebp + 0x54]
jmp 0x41b859
mov ecx, dword [eax + 0x5c]
call fcn.0041dfd0
mov edi, dword [ebp + 0x54]
jmp 0x41b859
push 0
mov edx, esi
mov cl, bh
call fcn.0041ed50
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 [0x4fdb8e], bl
or cl, bl
jmp 0x41b769
cmp ecx, 2
jne 0x41b720
or byte [0x4fdb8f], 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 [0x4fdb8f], bl
mov cl, bl
and cl, byte [0x4fdb8e]
and al, bl
mov byte [0x4fdb8e], cl
mov byte [ebp + 0x6c], al
cmp bh, 0xa5
jne 0x41b764
cmp dword [0x4fe924], 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.0041bc10
add esp, 0x24
mov bh, byte [ebp + 0x6f]
mov edi, dword [ebp + 0x54]
jmp 0x41b859
cmp eax, 2
jne 0x41b7d8
movzx eax, word [edi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x41b7b1.11
jmp dword [eax*4 + 0x41bbf8]
cmp word [edi + 2], 0xa
lea eax, [edi + 2]
cmove edi, eax
mov al, 0xd
jmp 0x41b7fe
mov al, 8
jmp 0x41b7fe
mov al, 9
jmp 0x41b7fe
xor al, al
xor cl, cl
jmp 0x41b800
mov eax, dword [ebp + 0x50]
or bl, bh
je 0x41b7e4
test eax, eax
jne 0x41b7e4
mov al, 1
jmp 0x41b7e6
xor al, al
mov cx, word [edi]
lea edx, [ebp + 0x64]
push eax
push dword [0x4fe920]
call fcn.0041f5c0
mov bl, byte [ebp + 0x64]
add esp, 8
mov cl, al
mov byte [ebp + 0x6e], al
test cl, cl
je 0x41b82e
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.0041bc10
add esp, 0x24
jmp 0x41b859
movzx ecx, word [edi]
test esi, esi
je 0x41b846
push 0
push ecx
push 0x102
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x41b859
or bl, bh
mov edx, 1
movzx eax, bl
push eax
call fcn.0041bdc0
add esp, 4
xor bl, bl
mov byte [ebp + 0x64], bl
mov al, byte [ebp + 0x63]
add edi, 2
mov byte [0x4fdb8d], al
cmp word [edi], 0
jne 0x41ae10
cmp dword [0x4fe93c], 0
je 0x41b91e
or esi, 0xffffffff
cmp byte [0x4fe70e], 0
mov dword [ebp + 0x44], esi
jne 0x41b8dd
cmp dword [0x4fe928], 0
jbe 0x41b8dd
cmp byte [0x4fe8cc], 0
je 0x41b8a5
xor bl, bl
jmp 0x41b8ad
mov bl, byte [ebp + 0x62]
not bl
and bl, byte [ebp + 0x6d]
or bl, byte [0x4fdb8f]
mov dl, byte [0x4fe70c]
or bl, bh
push 0xffc3d44d
push 1
push 1
push 0
mov cl, bl
call fcn.0041e410
add esp, 0x10
lea ecx, [ebp + 0x44]
mov dl, bl
call fcn.0041ddc0
mov esi, dword [ebp + 0x44]
cmp dword [0x4fe93c], 1
mov eax, 0x5dc
mov ecx, 0x1f4
cmove eax, ecx
cmp dword [0x4fe92c], eax
jbe 0x41b908
push dword [0x4fc578]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, esi
mov dword [0x4fe93c], 0
call fcn.0041dfd0
jmp 0x41b9aa
cmp dword [0x4fba18], 0
je 0x41b932
mov cl, byte [0x4fbaaf]
mov dl, byte [ebp + 0x6d]
jmp 0x41b95b
cmp dword [0x4fa368], 0
jl 0x41b956
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4fe664]
cmp eax, dword [0x4fa368]
jb 0x41b956
mov dl, byte [ebp + 0x6d]
xor cl, cl
jmp 0x41b95b
mov dl, byte [ebp + 0x6d]
mov cl, dl
or cl, byte [0x4fdb8f]
cmp byte [0x4fe8cc], 0
je 0x41b97c
mov al, cl
xor al, dl
mov bl, al
and al, cl
and bl, dl
not bl
and bl, bh
or bl, al
jmp 0x41b985
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.0041eb40
or al, byte [0x4fbaae]
mov cl, bl
mov dl, al
call fcn.0041e410
add esp, 0x10
cmp dword [0x4fba18], 0
je 0x41b9cd
mov cl, byte [0x4fbbd4]
mov al, cl
xor al, byte [0x4fbbd5]
and al, cl
not al
and cl, al
mov byte [0x4fbbd4], cl
cmp dword [ebp + 0x1c], 1
jne 0x41ba60
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x41ba60
push 0x14
call esi
test ax, ax
jns 0x41ba08
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 1
call fcn.0041c230
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 2
call fcn.0041c230
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 [0x4fdb70]
jne 0x41ba6c
mov edx, 1
mov dword [0x4f90ec], 0
or ecx, 0xffffffff
call fcn.004018d0
mov dword [0x4f90ec], 1
jmp 0x41ba6c
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp byte [ebp + 0x61], 0
je 0x41ba83
push 0
push dword [ebp + 0x18]
push dword [0x4fdb70]
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp + 0x60], 0
je 0x41ba9e
cmp byte [ebp + 0x4f], 0
jne 0x41ba9e
push 0
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4fb8c6], 0
mov eax, dword [ebp + 0x78]
test eax, eax
jne 0x41bb2c
mov eax, dword [ebp + 0xc]
cmp dword [0x4fe6a8], eax
je 0x41bb61
cmp dword [0x4f90ec], 0
je 0x41bb61
cmp dword [0x4fb9d0], 0
jne 0x41bb61
mov ecx, dword [0x4f90f4]
cmp byte [ecx + 0xec], 0
jne 0x41bb1d
cmp byte [ecx + 0xee], 0
jne 0x41bb14
cmp dword [ecx + 0xe0], 0xffffffff
jle 0x41bb14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4f90f4]
sub eax, dword [ecx + 0xdc]
cmp eax, dword [ecx + 0xe0]
jb 0x41bb14
mov byte [ecx + 0xec], 1
cmp byte [ecx + 0xec], 0
je 0x41bb61
mov edx, 1
or ecx, 0xffffffff
call fcn.004018d0
jmp 0x41bb61
cmp eax, 1
jne 0x41bb61
push 0
call esi
push eax
call ebx
cmp eax, dword [0x4fdb70]
jne 0x41bb61
mov edx, 1
mov dword [0x4f90ec], 0
or ecx, 0xffffffff
call fcn.004018d0
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