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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0x1c], ebx
cmp word [esi], 0
je 0x411e36
mov eax, dword [0x4f48cc]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4fa580]
mov dword [ebp - 0x68], eax
mov eax, dword fs:[0x24]
mov dword [ebp - 0x48], eax
test ebx, ebx
jne 0x410eea
push 7
push str.Blind
push esi
call fcn.004af905
add esp, 0xc
test eax, eax
jne 0x410eea
mov byte [0x4fa800], 1
add esi, 0xe
jmp 0x410ef5
mov byte [0x4fa800], 0
test ebx, ebx
jne 0x410f13
push 6
push str.Text
push esi
call fcn.004af905
add esp, 0xc
test eax, eax
jne 0x410f13
mov dword [ebp - 0x1c], 2
add esi, 0xc
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x5c]
mov dword [ebp - 0x6c], eax
mov eax, dword [edx + 0x64]
mov dword [ebp - 0x54], eax
cmp ecx, 1
je 0x410f33
cmp ecx, 3
jne 0x410fdf
mov eax, dword [0x4fa760]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x410f45
push eax
call ebx
push str.AHK_Keybd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x4fa760], 0
mov dword [ebp - 0x30], eax
je 0x410f70
mov dword [0x4fa760], edi
jmp 0x410f7a
test edi, edi
je 0x410f7a
push edi
call ebx
mov eax, dword [ebp - 0x30]
cmp eax, 0xb7
je 0x410fa9
cmp dword [ebp - 0x1c], 0
jne 0x410fa0
call fcn.0040b330
test al, al
je 0x410fa0
mov edx, str.Click
mov ecx, esi
call fcn.004921b0
test eax, eax
jne 0x410fa9
mov dword [ebp + 8], 1
jmp 0x410fdf
cmp dword [ebp + 8], 3
jne 0x410fb8
mov dword [ebp + 8], 2
jmp 0x410fdf
mov edx, dword [ebp - 0x28]
mov dword [ebp + 8], 0
cmp dword [edx + 0x5c], 0
jge 0x410fd3
cmp dword [edx + 0x64], 0
jge 0x410fd3
or eax, 0xffffffff
jmp 0x410fd5
xor eax, eax
mov dword [edx + 0x64], eax
mov dword [edx + 0x5c], 0xffffffff
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov byte [ebp - 0xb], 0
test ebx, ebx
je 0x411039
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x4110dc
cmp eax, dword [0x4f9a38]
je 0x4110dc
mov ecx, ebx
call fcn.00497e30
test al, al
jne 0x4110dc
mov ebx, dword [ebp - 0x38]
push 1
push ebx
push dword [0x4f9a38]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
mov edi, ebx
setne byte [ebp - 0xb]
jmp 0x4110dc
test byte [0x4fa54e], 0xc0
je 0x4110c7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4fa544]
cmp eax, 0x32
jae 0x4110c7
cmp dword [ebp + 8], 2
je 0x4110c7
cmp byte [0x4fa800], 0
jne 0x4110c7
mov ebx, dword [ebp - 0x1c]
cmp ebx, 2
je 0x4110c7
cmp byte [0x4fa72b], 0
je 0x4110c7
mov eax, dword [ebp - 0x48]
cmp eax, dword [0x4f9a38]
jne 0x4110c7
mov edx, 0x4e3140
mov ecx, esi
call fcn.0040bad0
test ebx, ebx
jne 0x411123
test eax, eax
je 0x4110c7
nop word [eax + eax]
lea ecx, [eax + 2]
mov edx, 0x4e3148
call fcn.0040bad0
test eax, eax
je 0x411127
cmp word [eax], 0x7b
je 0x411127
mov edx, 0x4e3140
mov ecx, eax
call fcn.0040bad0
test eax, eax
jne 0x4110a0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, eax
call fcn.004150a0
mov edi, eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
xor edx, edx
mov dword [0x4fa78c], eax
mov ecx, eax
call fcn.00415140
mov cl, 1
mov dword [0x4fa7e0], eax
call fcn.00414ad0
mov bl, al
and byte [0x4fa78b], bl
cmp dword [0x4f790c], 0
je 0x411169
mov al, byte [0x4f82e4]
mov cl, byte [0x4f79aa]
mov bh, al
not al
and bh, cl
and al, cl
jmp 0x41118d
test eax, eax
je 0x4110c7
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, 0x8000
push 0x5b
call edi
test bx, ax
jne 0x411144
push 0x5c
call edi
test bx, ax
je 0x4110c7
mov edx, 1
mov dword [0x4f48c4], 0
mov ecx, 0x8000012f
call fcn.00401890
mov dword [0x4f48c4], 1
jmp 0x411132
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4fa544]
cmp eax, dword [0x4f5b44]
jae 0x411187
mov cl, byte [0x4fa54e]
and cl, bl
jmp 0x411189
xor cl, cl
mov bh, cl
xor al, al
not bh
mov byte [ebp - 3], cl
and bh, byte [0x4fa78a]
and bh, bl
mov byte [ebp - 6], al
cmp byte [0x4fa800], 0
mov byte [ebp - 1], bh
mov byte [0x4fa78a], bh
je 0x4111bc
not bh
and bh, bl
mov al, bh
mov bh, bl
mov byte [ebp - 1], bh
jmp 0x4111be
xor al, al
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x28]
mov byte [ebp - 0x10], bh
cmp byte [eax + 0xf3], 0
je 0x4111f0
cmp byte [0x4fa800], 0
jne 0x4111f0
cmp dword [ebp - 0x1c], 2
je 0x4111f0
mov edx, 2
mov cl, 0x14
call fcn.00414340
mov dword [ebp - 0x30], eax
jmp 0x4111f7
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp + 8]
mov eax, 0x1f4
mov dword [0x4fa7fc], ecx
mov edx, 0x5dc
test ecx, ecx
je 0x411270
cmp ecx, 1
cmovne eax, edx
mov edx, 0x2ee0
mov dword [0x4fa7e8], eax
mov eax, 0x36b0
cmovne eax, edx
call fcn.004c5380
mov eax, dword [0x4f62bc]
mov ecx, esp
mov byte [0x4fa7f0], bl
mov byte [0x4fa7f1], 0
mov dword [0x4fa7e4], 0
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [0x4fa7f4], 0x80000000
mov dword [0x4fa7f8], 0x80000000
mov byte [0x4fa7f2], 0
mov byte [0x4fa7f3], 1
mov al, byte [0x4f797a]
mov byte [ebp - 0x1d], al
mov eax, dword [0x4f4dac]
cmp eax, 8
je 0x411287
cmp eax, 0xa
jne 0x4112a7
mov edi, dword [ebp + 0xc]
test ecx, ecx
jne 0x4112aa
test edi, edi
jne 0x4112aa
push 1
mov byte [ebp - 0xc], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4f797a], 1
jmp 0x4112ae
mov edi, dword [ebp + 0xc]
mov byte [ebp - 0xc], 0
xor bl, bl
cmp word [esi], 0
mov byte [ebp - 0xa], bl
je 0x411c23
jmp 0x4112c3
mov edi, dword [ebp + 0xc]
cmp dword [0x4fa7fc], 0
mov byte [ebp - 5], 0
jne 0x41132f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4f48cc]
sub eax, dword [0x4fa584]
cmp eax, dword [ecx + 0xd8]
jbe 0x41132f
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x411324
mov edx, 1
mov dword [0x4f48c4], 0
or ecx, 0xffffffff
call fcn.00401890
mov dword [0x4f48c4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4fa584], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x411b4a
movzx eax, word [esi]
push eax
push 0x4e3150
call fcn.004ace17
add esp, 8
test eax, eax
je 0x411b87
movzx eax, word [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x411369.34
movzx eax, byte [eax + 0x411e60]
jmp dword [eax*4 + 0x411e44]
test bh, 3
jne case.0x411369.34
or bl, 1
jmp 0x411c0b
test bh, 0x30
jne case.0x411369.34
or bl, 0x10
jmp 0x411c0b
test bh, 0xc
jne case.0x411369.34
or bl, 4
jmp 0x411c0b
test bh, 0xc0
jne case.0x411369.34
or bl, 0x40
jmp 0x411c0b
lea edi, [esi + 2]
push 0x7d
push edi
call fcn.004ace17
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x411369.34
mov esi, edi
nop
movzx ecx, word [esi]
cmp ecx, 0x20
je 0x4113dd
cmp ecx, 9
jne 0x4113e2
add esi, 2
jmp 0x4113d0
mov edi, eax
sub edi, esi
sar edi, 1
mov dword [ebp - 0x34], edi
jne 0x411472
lea edi, [eax + 2]
movzx eax, word [edi]
cmp eax, 0x7d
jne 0x411404
mov dword [ebp - 0x18], edi
lea edi, [eax - 0x7c]
jmp 0x41146f
cmp eax, 0x20
je 0x411412
cmp eax, 9
jne 0x411b42
cmp ax, 0x20
je 0x41141e
cmp ax, 9
jne 0x411427
movzx eax, word [edi + 2]
add edi, 2
jmp 0x411412
push 4
push str.Down
push edi
call fcn.004af905
add esp, 0xc
test eax, eax
je 0x411453
push 2
push 0x4cf5cc
push edi
call fcn.004af905
add esp, 0xc
test eax, eax
jne 0x411b42
push 0x7d
push edi
call fcn.004ace17
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x411369.34
mov edi, eax
sub edi, esi
sar edi, 1
mov dword [ebp - 0x34], edi
push 5
push 0x4cda78
push esi
call fcn.004af905
add esp, 0xc
test eax, eax
jne 0x41152b
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov word [eax], cx
lea ecx, [esi + 0xa]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x4114a2
cmp eax, 9
jne 0x4114a7
add ecx, 2
jmp 0x411495
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x44]
call fcn.00412b70
mov eax, dword [ebp - 0x18]
add esp, 0x14
mov ecx, 0x7d
push dword [ebp - 0x4c]
mov word [eax], cx
mov eax, dword [ebp - 0x3c]
cmp eax, 1
jge 0x411501
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x44]
movzx eax, byte [eax + 0xef]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00413800
mov esi, dword [ebp - 0x18]
add esp, 0xc
jmp 0x411c09
push dword [ebp - 0x50]
mov cl, byte [ebp - 2]
xor edx, edx
push dword [ebp - 0x44]
push dword [ebp + 0xc]
push 0
push dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xa]
call fcn.00411ee0
mov esi, dword [ebp - 0x18]
add esp, 0x24
jmp 0x411c09
push 3
push 0x4e3160
push esi
call fcn.004af905
add esp, 0xc
test eax, eax
jne 0x41154e
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 1
jmp 0x411c09
push 4
push 0x4e30b0
push esi
call fcn.004af905
add esp, 0xc
test eax, eax
jne 0x41158f
lea ecx, [esi + 8]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x411572
cmp eax, 9
jne 0x411577
add ecx, 2
jmp 0x411565
cmp ecx, dword [ebp - 0x18]
jne 0x411b42
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 2
jmp 0x411c09
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov ebx, 1
mov dword [ebp - 0x14], 2
mov edx, 0x4e2ac4
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x3c], ebx
mov word [eax], cx
mov ecx, esi
mov dword [ebp - 0x40], edi
call fcn.0040bad0
mov dword [ebp - 0x58], eax
test eax, eax
je 0x411678
movzx ecx, word [eax]
lea edi, [eax + 2]
mov dword [ebp - 0x5c], ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, eax
sub ecx, esi
sar ecx, 1
mov dword [ebp - 0x40], ecx
nop word [eax + eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x4115ed
cmp eax, 9
jne 0x4115f2
add edi, 2
jmp 0x4115e0
mov eax, dword [ebp - 0x18]
sub eax, edi
sar eax, 1
je 0x411678
push 4
push str.Down
push edi
call fcn.004af905
add esp, 0xc
test eax, eax
jne 0x411652
push 4
add edi, 8
mov dword [ebp - 0x14], eax
push str.Temp
push edi
call fcn.004af905
add esp, 0xc
test eax, eax
jne 0x411632
mov dword [ebp - 0x2c], eax
jmp 0x411678
xor eax, eax
cmp word [edi], 0x52
sete al
push eax
call fcn.004b2de2
add esp, 4
mov edi, eax
neg edi
sbb edi, edi
neg edi
inc edi
mov dword [ebp - 0x2c], edi
jmp 0x411678
push 0x4cf5cc
push edi
call fcn.004af78f
add esp, 8
test eax, eax
jne 0x411669
mov dword [ebp - 0x14], ebx
jmp 0x411678
mov ecx, edi
call fcn.00410b20
mov ebx, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x3c], ebx
push dword [0x4fa78c]
lea eax, [ebp - 0xa]
mov ecx, esi
push eax
lea eax, [ebp - 0x60]
push eax
lea edx, [ebp - 2]
call fcn.00415750
mov eax, dword [ebp - 0x58]
add esp, 0xc
test eax, eax
je 0x4116a0
mov ecx, dword [ebp - 0x5c]
mov word [eax], cx
mov eax, dword [ebp - 0x18]
mov ecx, 0x7d
mov word [eax], cx
cmp ebx, 1
jl 0x411b3f
mov bh, byte [ebp - 2]
mov edi, dword [ebp - 0x60]
test bh, bh
jne 0x411a80
test di, di
jne 0x411a80
movzx eax, byte [esi]
push eax
call fcn.004b2989
add esp, 4
test eax, eax
mov eax, dword [ebp - 0x40]
je 0x411782
cmp eax, 1
jbe 0x411785
cmp dword [0x4fa7fc], 0
je 0x411717
mov ecx, esi
call fcn.00410b20
push eax
push 0
push 0
xor dl, dl
xor cl, cl
call fcn.00413b30
mov bh, byte [ebp - 1]
add esp, 0xc
mov esi, dword [ebp - 0x18]
jmp 0x411c09
mov eax, dword [ebp - 0x48]
mov dword [0x4f48c4], 0
cmp dword [0x4f9a38], eax
je 0x41175a
mov ecx, esi
call fcn.00410b20
test eax, eax
js 0x41175a
mov ecx, esi
call fcn.00410b20
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov bh, byte [ebp - 1]
mov esi, dword [ebp - 0x18]
mov dword [0x4f48c4], 1
jmp 0x411c09
mov ecx, esi
call fcn.00410b20
mov edx, 1
mov ecx, eax
call fcn.00401890
mov bh, byte [ebp - 1]
mov esi, dword [ebp - 0x18]
mov dword [0x4f48c4], 1
jmp 0x411c09
cmp eax, 1
jne 0x4117e7
cmp dword [ebp - 0x14], 1
je 0x411b3f
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4117c5
mov ebx, dword [ebp - 0x24]
test ebx, ebx
jle 0x411b3f
movzx eax, word [esi]
push 0
push eax
push 0x102
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
sub ebx, 1
jne 0x4117a3
mov bh, byte [ebp - 1]
mov esi, dword [ebp - 0x18]
jmp 0x411c09
mov al, byte [ebp - 0xa]
mov bh, byte [ebp - 1]
mov edx, dword [ebp - 0x24]
or al, bh
mov cx, word [esi]
movzx eax, al
push eax
call fcn.00412090
mov esi, dword [ebp - 0x18]
add esp, 4
jmp 0x411c09
mov ebx, dword [ebp + 0xc]
mov ecx, esi
mov edi, dword [ebp - 0x34]
test ebx, ebx
mov edx, edi
sete al
movzx eax, al
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00415820
add esp, 0xc
mov byte [ebp - 2], al
test al, al
je 0x411903
mov esi, dword [ebp - 0x14]
mov edi, ebx
test edi, edi
jne 0x41182e
test esi, esi
jne 0x411827
mov byte [ebp - 5], al
jmp 0x41182e
mov cl, al
call fcn.00410d10
cmp dword [0x4fa7fc], 0
je 0x41183e
mov al, byte [0x4fa7f0]
jmp 0x411845
xor cl, cl
call fcn.00414ad0
push 0xffc3d44d
push 0
mov dl, al
mov al, byte [ebp - 0x10]
push 0
push edi
mov cl, al
mov byte [ebp - 1], al
call fcn.00414460
mov ebx, dword [ebp - 0x24]
add esp, 0x10
test ebx, ebx
jle 0x411b3f
nop dword [eax]
mov dl, byte [ebp - 2]
mov ecx, esi
push 0xffc3d44d
push 1
push edi
push 0
call fcn.004124d0
add esp, 0x10
cmp dword [0x4fa7fc], 0
jne 0x4118ef
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4f48cc]
sub eax, dword [0x4fa584]
cmp eax, dword [ecx + 0xd8]
jbe 0x4118ef
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4118e4
mov edx, 1
mov dword [0x4f48c4], 0
or ecx, 0xffffffff
call fcn.00401890
mov dword [0x4f48c4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4fa584], eax
sub ebx, 1
jne 0x411870
mov bh, byte [ebp - 1]
mov esi, dword [ebp - 0x18]
jmp 0x411c09
cmp edi, 4
jbe 0x411974
push 4
push str.ASC
push esi
call fcn.004af905
add esp, 0xc
test eax, eax
jne 0x411974
test ebx, ebx
jne 0x411974
lea ecx, [esi + 6]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x411930
cmp eax, 9
jne 0x411935
add ecx, 2
jmp 0x411923
call fcn.004121f0
cmp dword [0x4fa7fc], 2
mov eax, dword [0x4f48cc]
jne 0x41195e
mov ecx, dword [eax + 0x60]
call fcn.00414120
mov bh, byte [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov byte [ebp - 1], bh
jmp 0x411c09
mov ecx, dword [eax + 0x5c]
call fcn.00414120
mov bh, byte [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov byte [ebp - 1], bh
jmp 0x411c09
cmp edi, 2
jbe 0x411966
push 2
push 0x4e3180
push esi
call fcn.004af905
add esp, 0xc
test eax, eax
jne 0x411966
push 0x10
push eax
lea eax, [esi + 4]
push eax
call fcn.004b2a5a
mov edx, eax
add esp, 0xc
cmp edx, 0x10000
jb 0x4119d1
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 0x4119d6
movzx ecx, dx
xor esi, esi
mov edi, ebx
mov bh, byte [ebp - 0x10]
mov byte [ebp - 1], bh
test edi, edi
je 0x411a0d
push 0
movzx eax, cx
push eax
push 0x102
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
test si, si
je 0x411a52
push 0
movzx eax, si
push eax
push 0x102
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x411a52
cmp dword [0x4fa7fc], 2
je 0x411a32
mov bl, byte [ebp - 0xa]
or bl, bh
mov dl, bl
call fcn.00410d90
test si, si
je 0x411a52
mov dl, bl
mov ecx, esi
call fcn.00410d90
jmp 0x411a52
mov eax, 0x30
mov word [ebp - 0x80], ax
lea eax, [ebp - 0x7e]
push 0xa
push eax
push edx
call fcn.004af6a6
add esp, 0xc
lea ecx, [ebp - 0x80]
call fcn.004121f0
cmp dword [0x4fa7fc], 2
mov eax, dword [0x4f48cc]
jne 0x411a70
mov ecx, dword [eax + 0x60]
call fcn.00414120
mov esi, dword [ebp - 0x18]
jmp 0x411c09
mov ecx, dword [eax + 0x5c]
call fcn.00414120
mov esi, dword [ebp - 0x18]
jmp 0x411c09
push 0
mov edx, edi
mov cl, bh
call fcn.00414ce0
mov esi, dword [ebp - 0x14]
mov bl, al
add esp, 4
mov byte [ebp - 0x64], bl
test bl, bl
je 0x411b17
cmp dword [ebp + 0xc], 0
jne 0x411b17
test esi, esi
jne 0x411ad2
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 5], bh
cmp eax, 1
jne 0x411ac0
mov al, byte [ebp - 1]
or byte [0x4fa78a], bl
or al, bl
jmp 0x411b11
cmp eax, 2
jne 0x411acb
or byte [0x4fa78b], bl
mov al, byte [ebp - 1]
or al, bl
jmp 0x411b11
cmp esi, 1
jne 0x411b17
mov cl, bh
call fcn.00410d10
mov cl, byte [ebp - 4]
not bl
and byte [0x4fa78b], bl
mov al, bl
and al, byte [0x4fa78a]
and cl, bl
mov byte [0x4fa78a], al
mov byte [ebp - 4], cl
cmp bh, 0xa5
jne 0x411b0f
cmp dword [0x4fa7e0], 3
jne 0x411b0f
and cl, 0xfe
mov byte [ebp - 4], cl
or al, cl
mov byte [ebp - 0x10], al
mov byte [ebp - 1], al
push 0
push SysReAllocString
push SysReAllocString
push dword [ebp + 0xc]
mov edx, edi
mov cl, bh
push dword [ebp - 0x64]
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0xa]
call fcn.00411ee0
add esp, 0x24
mov bh, byte [ebp - 1]
mov esi, dword [ebp - 0x18]
jmp 0x411c09
cmp eax, 2
jne 0x411b8a
movzx eax, word [esi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x411b5a.11
jmp dword [eax*4 + 0x411ec0]
cmp word [esi + 2], 0xa
lea eax, [esi + 2]
cmove esi, eax
mov al, 0xd
mov byte [ebp - 2], al
jmp 0x411bb4
mov al, 8
mov byte [ebp - 2], al
jmp 0x411bb4
mov al, 9
mov byte [ebp - 2], al
jmp 0x411bb4
mov byte [ebp - 2], 0
jmp 0x411bde
mov eax, dword [ebp - 0x1c]
or bl, bh
je 0x411b96
test eax, eax
jne 0x411b96
mov al, 1
jmp 0x411b98
xor al, al
mov cx, word [esi]
lea edx, [ebp - 0xa]
push eax
push dword [0x4fa78c]
call fcn.00415680
add esp, 8
mov byte [ebp - 2], al
test al, al
je 0x411bdb
push 0
push SysReAllocString
push SysReAllocString
push edi
push 0
push 2
push 1
push dword [ebp - 0x10]
xor edx, edx
mov cl, al
push dword [ebp - 0xa]
call fcn.00411ee0
add esp, 0x24
jmp 0x411c09
mov bl, byte [ebp - 0xa]
movzx ecx, word [esi]
test edi, edi
je 0x411bf6
push 0
push ecx
push 0x102
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x411c09
or bl, bh
mov edx, 1
movzx eax, bl
push eax
call fcn.00412090
add esp, 4
xor bl, bl
mov byte [ebp - 0xa], bl
mov al, byte [ebp - 5]
add esi, 2
mov byte [0x4fa789], al
cmp word [esi], 0
jne 0x4112c0
cmp dword [0x4fa7fc], 0
je 0x411ccd
or esi, 0xffffffff
cmp byte [0x4fa7f2], 0
mov dword [ebp - 0x2c], esi
jne 0x411c8d
cmp dword [0x4fa7e4], 0
jbe 0x411c8d
cmp byte [0x4fa800], 0
je 0x411c55
xor bl, bl
jmp 0x411c5d
mov bl, byte [ebp - 6]
not bl
and bl, byte [ebp - 3]
or bl, byte [0x4fa78b]
mov dl, byte [0x4fa7f0]
or bl, bh
push 0xffc3d44d
push 1
push 1
push 0
mov cl, bl
call fcn.00414460
add esp, 0x10
lea ecx, [ebp - 0x2c]
mov dl, bl
call fcn.00413f20
mov esi, dword [ebp - 0x2c]
cmp dword [0x4fa7fc], 1
mov eax, 0x5dc
mov ecx, 0x1f4
cmove eax, ecx
cmp dword [0x4fa7e8], eax
jbe 0x411cb7
push dword [0x4f8448]
call fcn.004b113e
add esp, 4
mov ecx, esi
mov dword [0x4fa7fc], 0
call fcn.00414120
jmp 0x411d59
cmp dword [0x4f790c], 0
je 0x411ce1
mov cl, byte [0x4f79aa]
mov dl, byte [ebp - 3]
jmp 0x411d0a
cmp dword [0x4f5b44], 0
jl 0x411d05
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4fa544]
cmp eax, dword [0x4f5b44]
jb 0x411d05
mov dl, byte [ebp - 3]
xor cl, cl
jmp 0x411d0a
mov dl, byte [ebp - 3]
mov cl, dl
or cl, byte [0x4fa78b]
cmp byte [0x4fa800], 0
je 0x411d2b
mov al, cl
xor al, dl
mov bl, al
and al, cl
and bl, dl
not bl
and bl, bh
or bl, al
jmp 0x411d34
mov bl, byte [ebp - 6]
not bl
and bl, cl
or bl, bh
push 0xffc3d44d
push 1
push 1
push dword [ebp + 0xc]
xor cl, cl
call fcn.00414ad0
or al, byte [0x4f79a7]
mov cl, bl
mov dl, al
call fcn.00414460
add esp, 0x10
cmp dword [0x4f790c], 0
je 0x411d7c
mov cl, byte [0x4f79ab]
mov al, cl
xor al, byte [0x4f82e4]
and al, cl
not al
and cl, al
mov byte [0x4f79ab], cl
cmp dword [ebp - 0x30], 1
jne 0x411d8e
mov edx, 1
mov cl, 0x14
call fcn.00414340
cmp byte [ebp - 0xb], 0
je 0x411da5
push 0
push dword [ebp - 0x38]
push dword [0x4f9a38]
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 0xc], 0
je 0x411dc0
cmp byte [ebp - 0x1d], 0
jne 0x411dc0
push 0
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4f797a], 0
mov eax, dword [ebp + 8]
test eax, eax
jne 0x411dea
mov eax, dword [ebp - 0x68]
cmp dword [0x4fa580], eax
je 0x411e27
call fcn.00404770
test eax, eax
je 0x411e27
mov edx, 1
or ecx, 0xffffffff
call fcn.00401890
jmp 0x411e27
cmp eax, 1
jne 0x411e27
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4f9a38]
jne 0x411e27
mov edx, 1
mov dword [0x4f48c4], 0
or ecx, 0xffffffff
call fcn.00401890
mov dword [0x4f48c4], 1
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x6c]
mov dword [eax + 0x5c], ecx
mov ecx, dword [ebp - 0x54]
mov dword [eax + 0x64], ecx
lea esp, [ebp - 0xa8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret