Function at 0x40eaa0
Capabilities:
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
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp + 0x50], esi
mov dword [ebp + 0x60], edi
cmp word [edi], 0
je case.0x40eb16.0
mov eax, dword [0x4d78c8]
xor bh, bh
mov dword [ebp + 0x40], eax
mov eax, dword [0x4dd444]
mov dword [ebp + 0xc], eax
mov byte [ebp + 0x6f], bh
test esi, esi
jne 0x40eb45
push 6
push str.Blind
push edi
call fcn.00497b0e
add esp, 0xc
test eax, eax
jne 0x40eb45
movzx eax, word [edi + 0xc]
add edi, 0xc
mov byte [0x4dd6f8], 1
mov dword [ebp + 0x60], edi
cmp eax, 0x7d
je 0x40eb50
mov ecx, eax
movzx eax, cx
cmp eax, 0x5e
ja case.0x40eb16.1
movzx eax, byte [eax + 0x40fd08]
jmp dword [eax*4 + 0x40fcf0]
or bh, 3
jmp 0x40eb2f
or bh, 0x30
jmp 0x40eb2f
or bh, 0xc
jmp 0x40eb2f
or bh, 0xc0
mov byte [ebp + 0x6f], bh
movzx eax, word [edi + 2]
add edi, 2
mov dword [ebp + 0x60], edi
mov ecx, eax
cmp eax, 0x7d
jne 0x40eb07
jmp 0x40eb50
mov byte [0x4dd6f8], 0
test esi, esi
jne 0x40eb71
push 6
push 0x4c6954
push edi
call fcn.00497b0e
add esp, 0xc
test eax, eax
jne 0x40eb71
add edi, 0xc
mov dword [ebp + 0x50], 2
mov dword [ebp + 0x60], edi
mov edx, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x78]
mov eax, dword [edx + 0x6c]
mov dword [ebp + 8], eax
mov eax, dword [edx + 0x74]
mov dword [ebp + 0x14], eax
cmp ecx, 1
je 0x40eb91
cmp ecx, 3
jne 0x40ec4f
mov eax, dword [0x4dd658]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40eba3
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 [0x4dd658], 0
mov ebx, eax
je 0x40ebcd
mov dword [0x4dd658], esi
jmp 0x40ebd4
test esi, esi
je 0x40ebd4
push esi
call edi
cmp ebx, 0xb7
je 0x40ec13
cmp dword [ebp + 0x50], 0
jne 0x40ec07
call fcn.00409560
mov edi, dword [ebp + 0x60]
test al, al
je 0x40ec0a
mov edx, 0x4c6db0
mov ecx, edi
call fcn.0047abc0
test eax, eax
jne 0x40ec16
mov dword [ebp + 0x78], 1
jmp 0x40ec4c
mov edi, dword [ebp + 0x60]
mov dword [ebp + 0x78], 1
jmp 0x40ec4c
mov edi, dword [ebp + 0x60]
cmp dword [ebp + 0x78], 3
jne 0x40ec25
mov dword [ebp + 0x78], 2
jmp 0x40ec4c
mov edx, dword [ebp + 0x40]
mov dword [ebp + 0x78], 0
cmp dword [edx + 0x6c], 0
jge 0x40ec40
cmp dword [edx + 0x74], 0
jge 0x40ec40
or eax, 0xffffffff
jmp 0x40ec42
xor eax, eax
mov dword [edx + 0x74], eax
mov dword [edx + 0x6c], 0xffffffff
mov bh, byte [ebp + 0x6f]
mov eax, dword [ebp + 0x7c]
xor esi, esi
mov byte [ebp + 0x5b], 0
test eax, eax
je 0x40ecab
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 0x40ed8d
cmp edi, dword [0x4dcd34]
je 0x40ed8d
mov ecx, dword [ebp + 0x7c]
call fcn.0047fe40
test al, al
jne 0x40ed8d
push 1
push edi
push dword [0x4dcd34]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
mov esi, edi
setne byte [ebp + 0x5b]
jmp 0x40ed8d
test byte [0x4dd416], 0xc0
je 0x40ed4b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4dd40c]
cmp eax, 0x32
jae 0x40ed4b
cmp dword [ebp + 0x78], 2
je 0x40ed4b
cmp byte [0x4dd6f8], 0
jne 0x40ed4b
mov esi, dword [ebp + 0x50]
cmp esi, 2
je 0x40ed4b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4dcd34]
jne 0x40ed4b
test esi, esi
je 0x40eddd
mov eax, dword [ebp + 0x60]
test eax, eax
je 0x40ed41
movzx eax, word [eax]
test ax, ax
je 0x40ed41
mov esi, eax
nop dword [eax + eax]
mov ecx, 0x4c6dc0
mov edx, 0x4c
nop word [eax + eax]
cmp si, dx
je 0x40ed43
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x40ed20
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x40ed10
xor edi, edi
test edi, edi
jne 0x40ee8d
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor esi, esi
test eax, eax
je 0x40ed87
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 0x40ed87
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x40ed87
push 0
push eax
call edi
mov esi, eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x18], eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, eax
mov dword [0x4dd684], eax
call fcn.00412d50
mov cl, 1
mov dword [0x4dd6d8], eax
call fcn.00412810
mov bl, al
and byte [0x4dd683], bl
cmp dword [0x4dbeb0], 0
je 0x40eed2
mov dl, byte [0x4dbebd]
mov ah, byte [0x4dbebb]
mov cl, dl
not dl
and cl, ah
and dl, ah
mov byte [ebp + 0x66], dl
jmp 0x40eef8
mov esi, edi
nop
test esi, esi
je 0x40ed4b
movzx eax, word [esi]
test ax, ax
je 0x40ed4b
mov edi, eax
nop word [eax + eax]
mov ecx, 0x4c6dc0
mov edx, 0x4c
nop word [eax + eax]
cmp di, dx
je 0x40ee36
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x40ee10
movzx eax, word [esi + 2]
add esi, 2
mov edi, eax
test ax, ax
jne 0x40ee00
jmp 0x40ed4b
add esi, 2
je 0x40ee8d
movzx eax, word [esi]
test ax, ax
je 0x40ee8d
mov edi, eax
nop word [eax + eax]
mov eax, 0x4c6dc8
mov edx, 0x7b
nop word [eax + eax]
cmp di, dx
je 0x40ee83
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x40ee60
movzx eax, word [esi + 2]
add esi, 2
mov edi, eax
test ax, ax
jne 0x40ee50
jmp 0x40ee8d
cmp word [esi], 0x7b
jne 0x40ede0
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call esi
bt ax, 0xf
jb 0x40eead
push 0x5c
call esi
bt ax, 0xf
jae 0x40ed4b
mov edx, 1
mov dword [0x4d78c0], 0
mov ecx, 0x8000012f
call fcn.00401950
mov dword [0x4d78c0], 1
jmp 0x40ee93
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4dd40c]
cmp eax, dword [0x4d7e38]
jae 0x40eef0
mov ah, byte [0x4dd416]
and ah, bl
jmp 0x40eef2
xor ah, ah
mov cl, ah
mov byte [ebp + 0x66], 0
mov al, byte [0x4dd682]
not cl
and cl, bl
mov byte [ebp + 0x6d], ah
and al, cl
mov byte [ebp + 0x67], 0
cmp byte [0x4dd6f8], 0
mov byte [ebp + 0x6e], al
mov byte [0x4dd682], al
je 0x40ef3c
mov al, bl
mov byte [ebp + 0x6e], al
mov byte [ebp + 0x5c], al
test bh, bh
je 0x40ef44
mov al, bh
not al
and al, bl
mov bh, al
xor al, bl
mov byte [ebp + 0x6e], bh
mov byte [ebp + 0x5c], bh
mov byte [ebp + 0x67], al
jmp 0x40ef47
mov bh, byte [ebp + 0x6e]
mov byte [ebp + 0x5c], bh
jmp 0x40ef47
mov bh, byte [ebp + 0x6e]
mov eax, dword [ebp + 0x40]
cmp byte [eax + 0x98], 0
je 0x40ef73
cmp byte [0x4dd6f8], 0
jne 0x40ef73
cmp dword [ebp + 0x50], 2
je 0x40ef73
mov edx, 2
mov cl, 0x14
call fcn.004120e0
mov dword [ebp + 0x1c], eax
jmp 0x40ef7a
mov dword [ebp + 0x1c], 0
mov edx, dword [ebp + 0x78]
mov eax, 0x1f4
mov dword [0x4dd6f4], edx
mov ecx, 0x5dc
test edx, edx
je 0x40eff3
cmp edx, 1
cmovne eax, ecx
mov ecx, 0x2ee0
mov dword [0x4dd6e0], eax
mov eax, 0x36b0
cmovne eax, ecx
call fcn.004ac040
mov eax, dword [0x4da9b8]
mov ecx, esp
mov edx, dword [ebp + 0x78]
mov byte [0x4dd6e8], bl
mov byte [0x4dd6e9], 0
mov dword [eax], ecx
mov dword [0x4dd6ec], 0x80000000
mov dword [0x4dd6f0], 0x80000000
mov dword [0x4dd6dc], 0
mov byte [0x4dd6ea], 0
mov byte [0x4dd6eb], 1
mov al, byte [0x4dbcb0]
mov byte [ebp + 0x4f], al
mov eax, dword [0x4d7d40]
cmp eax, 7
je 0x40f00a
cmp eax, 9
jne 0x40f02a
mov esi, dword [ebp + 0x7c]
test edx, edx
jne 0x40f02d
test esi, esi
jne 0x40f02d
push 1
mov byte [ebp + 0x5a], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4dbcb0], 1
jmp 0x40f031
mov esi, dword [ebp + 0x7c]
mov byte [ebp + 0x5a], 0
mov edi, dword [ebp + 0x60]
xor bl, bl
mov byte [ebp + 0x69], bl
cmp word [edi], 0
je 0x40f9ee
jmp 0x40f056
mov bh, byte [ebp + 0x6e]
mov esi, dword [ebp + 0x7c]
cmp dword [0x4dd6f4], 0
mov byte [ebp + 0x68], 0
jne 0x40f0bc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4d78c8]
sub eax, dword [0x4dd444]
cmp eax, dword [ecx + 0x5c]
jbe 0x40f0bc
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 0x40f0b1
mov edx, 1
mov dword [0x4d78c0], 0
or ecx, 0xffffffff
call fcn.00401950
mov dword [0x4d78c0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4dd444], eax
mov eax, dword [ebp + 0x50]
test eax, eax
jne 0x40f915
movzx eax, word [edi]
push eax
push 0x4c6dd0
call fcn.0049515e
add esp, 8
test eax, eax
je 0x40f952
movzx eax, word [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40f0f6.34
movzx eax, byte [eax + 0x40fd84]
jmp dword [eax*4 + 0x40fd68]
test bh, 3
jne case.0x40f0f6.34
or bl, 1
jmp 0x40f9d6
test bh, 0x30
jne case.0x40f0f6.34
or bl, 0x10
jmp 0x40f9d6
test bh, 0xc
jne case.0x40f0f6.34
or bl, 4
jmp 0x40f9d6
test bh, 0xc0
jne case.0x40f0f6.34
or bl, 0x40
jmp 0x40f9d6
lea esi, [edi + 2]
push 0x7d
push esi
call fcn.0049515e
add esp, 8
mov dword [ebp + 0x48], eax
test eax, eax
je case.0x40f0f6.34
mov edi, esi
nop dword [eax]
movzx ecx, word [edi]
cmp ecx, 0x20
je 0x40f16d
cmp ecx, 9
jne 0x40f172
add edi, 2
jmp 0x40f160
mov esi, eax
mov dword [ebp + 0x60], edi
sub esi, edi
sar esi, 1
mov dword [ebp + 0x34], esi
jne 0x40f214
lea esi, [eax + 2]
movzx eax, word [esi]
cmp eax, 0x7d
jne 0x40f19e
mov ebx, esi
mov esi, 1
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x34], esi
jmp 0x40f217
cmp eax, 0x20
je 0x40f1b0
cmp eax, 9
jne 0x40f90d
nop dword [eax]
cmp ax, 0x20
je 0x40f1bc
cmp ax, 9
jne 0x40f1c5
movzx eax, word [esi + 2]
add esi, 2
jmp 0x40f1b0
push 4
push str.Down
push esi
call fcn.00497b0e
add esp, 0xc
test eax, eax
je 0x40f1f1
push 2
push 0x4b51a4
push esi
call fcn.00497b0e
add esp, 0xc
test eax, eax
jne 0x40f90d
push 0x7d
push esi
call fcn.0049515e
add esp, 8
mov dword [ebp + 0x48], eax
test eax, eax
je case.0x40f0f6.34
mov ebx, eax
mov esi, ebx
sub esi, edi
sar esi, 1
mov dword [ebp + 0x34], esi
jmp 0x40f217
mov ebx, dword [ebp + 0x48]
push 5
push str.Click
push edi
call fcn.00497b0e
add esp, 0xc
test eax, eax
jne 0x40f2b8
mov word [ebx], ax
lea ecx, [edi + 0xa]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x40f242
cmp eax, 9
jne 0x40f247
add ecx, 2
jmp 0x40f235
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x6f]
push eax
lea eax, [ebp + 0x2c]
push eax
lea edx, [ebp + 0x28]
call fcn.00410960
add esp, 0x14
mov eax, 0x7d
mov word [ebx], ax
mov eax, dword [ebp + 0x30]
push dword [ebp + 0x20]
cmp eax, 1
jge 0x40f29e
mov eax, dword [ebp + 0x40]
lea edx, [ebp + 0x2c]
lea ecx, [ebp + 0x28]
movzx eax, byte [eax + 0x97]
push eax
lea eax, [ebp + 4]
push eax
call fcn.00411590
mov edi, dword [ebp + 0x48]
add esp, 0xc
jmp 0x40f9d4
push dword [ebp + 0x2c]
mov edi, dword [ebp + 0x7c]
xor edx, edx
push dword [ebp + 0x28]
mov cl, byte [ebp + 0x6f]
push edi
push 0
push dword [ebp + 0x54]
push eax
jmp 0x40f8ff
push 3
push 0x4c6dec
push edi
call fcn.00497b0e
add esp, 0xc
test eax, eax
jne 0x40f2db
mov edi, dword [ebp + 0x48]
mov dword [ebp + 0x50], 1
jmp 0x40f9d4
push 4
push str.Text
push edi
call fcn.00497b0e
add esp, 0xc
test eax, eax
jne 0x40f31b
lea ecx, [edi + 8]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x40f2ff
cmp eax, 9
jne 0x40f304
add ecx, 2
jmp 0x40f2f2
cmp ecx, ebx
jne 0x40f90d
mov edi, dword [ebp + 0x48]
mov dword [ebp + 0x50], 2
jmp 0x40f9d4
mov eax, 1
mov dword [ebp + 0x54], 2
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x30], eax
xor eax, eax
mov word [ebx], ax
mov ebx, edi
movzx eax, word [edi]
mov dword [ebp + 0x24], esi
test ax, ax
je 0x40f371
mov esi, eax
mov edx, 0x4c678c
mov ecx, 0x20
nop dword [eax + eax]
cmp si, cx
je 0x40f391
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
test ax, ax
jne 0x40f350
movzx eax, word [ebx + 2]
add ebx, 2
mov esi, eax
test ax, ax
jne 0x40f341
push dword [0x4dd684]
lea eax, [ebp + 0x69]
mov ecx, edi
push eax
lea eax, [ebp + 0x38]
push eax
lea edx, [ebp + 0x6f]
call fcn.00413350
add esp, 0xc
jmp 0x40f464
movzx edi, word [ebx]
lea esi, [ebx + 2]
xor eax, eax
mov word [ebx], ax
mov eax, ebx
sub eax, dword [ebp + 0x60]
sar eax, 1
mov dword [ebp + 0x24], eax
movzx eax, word [esi]
cmp eax, 0x20
je 0x40f3b3
cmp eax, 9
jne 0x40f3b8
add esi, 2
jmp 0x40f3a6
mov eax, dword [ebp + 0x48]
sub eax, esi
sar eax, 1
je 0x40f43e
push 4
push str.Down
push esi
call fcn.00497b0e
add esp, 0xc
test eax, eax
jne 0x40f416
push 4
add esi, 8
mov dword [ebp + 0x54], eax
push str.Temp
push esi
call fcn.00497b0e
add esp, 0xc
test eax, eax
jne 0x40f3f8
mov dword [ebp + 0x3c], eax
jmp 0x40f43e
xor eax, eax
cmp word [esi], 0x52
sete al
push eax
call fcn.0049af76
add esp, 4
neg eax
sbb esi, esi
neg esi
inc esi
mov dword [ebp + 0x3c], esi
jmp 0x40f43e
push 0x4b51a4
push esi
call fcn.004979b3
add esp, 8
test eax, eax
jne 0x40f431
mov dword [ebp + 0x54], 1
jmp 0x40f43e
mov ecx, esi
call fcn.0047b060
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x30], eax
push dword [0x4dd684]
mov ecx, dword [ebp + 0x60]
lea eax, [ebp + 0x69]
push eax
lea eax, [ebp + 0x38]
push eax
lea edx, [ebp + 0x6f]
call fcn.00413350
add esp, 0xc
test ebx, ebx
je 0x40f461
mov word [ebx], di
mov edi, dword [ebp + 0x60]
mov eax, dword [ebp + 0x48]
mov ecx, 0x7d
mov word [eax], cx
mov ecx, dword [ebp + 0x44]
cmp ecx, 1
jl 0x40f90d
mov bh, byte [ebp + 0x6f]
mov esi, dword [ebp + 0x38]
test bh, bh
jne 0x40f7ec
test si, si
jne 0x40f7ec
cmp dword [ebp + 0x24], 1
jne 0x40f4fd
cmp dword [ebp + 0x54], 1
je 0x40f90d
mov edx, dword [ebp + 0x7c]
test edx, edx
je 0x40f4de
mov ebx, ecx
test ebx, ebx
jle 0x40f90d
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
nop dword [eax]
movzx eax, word [edi]
push 0
push eax
push 0x102
push edx
call esi
mov edx, dword [ebp + 0x7c]
sub ebx, 1
jne 0x40f4c0
mov edi, dword [ebp + 0x48]
jmp 0x40f9d4
mov al, byte [ebp + 0x69]
mov edx, ecx
or al, byte [ebp + 0x6e]
mov cx, word [edi]
movzx eax, al
push eax
call fcn.0040ffb0
mov edi, dword [ebp + 0x48]
add esp, 4
jmp 0x40f9d4
cmp dword [ebp + 0x7c], 0
mov ecx, edi
mov esi, dword [ebp + 0x34]
mov edx, esi
sete al
movzx eax, al
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x54]
push eax
call fcn.00413420
mov bl, al
add esp, 0xc
mov byte [ebp + 0x6f], bl
test bl, bl
je 0x40f668
mov edi, dword [ebp + 0x7c]
mov esi, dword [ebp + 0x54]
test edi, edi
jne 0x40f5a3
test esi, esi
jne 0x40f53f
mov byte [ebp + 0x68], bl
jmp 0x40f5a3
cmp dword [0x4dd67c], 0
jne 0x40f5a3
cmp byte [0x4dd681], bl
je 0x40f5a3
cmp byte [0x4dd6f8], 0
jne 0x40f5a3
mov al, byte [0x4dd680]
cmp bl, 0x5b
je 0x40f568
cmp bl, 0x5c
jne 0x40f579
cmp al, 0x5b
je 0x40f570
cmp al, 0x5c
jne 0x40f579
cmp dword [0x4dd6f4], 2
jne 0x40f594
cmp bl, 0xa4
je 0x40f58c
cmp bl, 0xa5
jne 0x40f5a3
cmp dword [0x4dd6d8], 3
je 0x40f5a3
cmp al, 0xa4
je 0x40f594
cmp al, 0xa5
jne 0x40f5a3
mov edx, 0xffc3d44d
mov ecx, 2
call fcn.004108c0
cmp dword [0x4dd6f4], 0
je 0x40f5b3
mov al, byte [0x4dd6e8]
jmp 0x40f5ba
xor cl, cl
call fcn.00412810
mov bh, byte [ebp + 0x5c]
mov dl, al
push 0xffc3d44d
push 0
push 0
push edi
mov cl, bh
mov byte [ebp + 0x6e], bh
call fcn.004121f0
mov edi, dword [ebp + 0x44]
add esp, 0x10
test edi, edi
jle 0x40f90d
push 0xffc3d44d
push 1
push dword [ebp + 0x7c]
mov dl, bl
mov ecx, esi
push 0
call fcn.004103a0
add esp, 0x10
cmp dword [0x4dd6f4], 0
jne 0x40f65b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4d78c8]
sub eax, dword [0x4dd444]
cmp eax, dword [ecx + 0x5c]
jbe 0x40f65b
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 0x40f650
mov edx, 1
mov dword [0x4d78c0], 0
or ecx, 0xffffffff
call fcn.00401950
mov dword [0x4d78c0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4dd444], eax
sub edi, 1
jne 0x40f5e1
mov edi, dword [ebp + 0x48]
jmp 0x40f9d4
cmp esi, 4
jbe 0x40f6e1
push 4
push str.ASC
push edi
call fcn.00497b0e
add esp, 0xc
test eax, eax
jne 0x40f6e6
cmp dword [ebp + 0x7c], eax
jne 0x40f6e6
lea ecx, [edi + 6]
nop dword [eax]
movzx eax, word [ecx]
cmp eax, 0x20
je 0x40f69d
cmp eax, 9
jne 0x40f6a2
add ecx, 2
jmp 0x40f690
call fcn.004100c0
cmp dword [0x4dd6f4], 2
mov eax, dword [0x4d78c8]
jne 0x40f6cb
mov ecx, dword [eax + 0x70]
call fcn.00411e00
mov al, byte [ebp + 0x5c]
mov edi, dword [ebp + 0x48]
mov byte [ebp + 0x6e], al
jmp 0x40f9d4
mov ecx, dword [eax + 0x6c]
call fcn.00411e00
mov al, byte [ebp + 0x5c]
mov edi, dword [ebp + 0x48]
mov byte [ebp + 0x6e], al
jmp 0x40f9d4
cmp esi, 2
jbe 0x40f6d3
push 2
push 0x4c6e18
push edi
call fcn.00497b0e
add esp, 0xc
test eax, eax
jne 0x40f6d3
push 0x10
push eax
lea eax, [edi + 4]
push eax
call fcn.0049afeb
mov edx, eax
add esp, 0xc
cmp edx, 0x10000
jb 0x40f73e
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 0x40f743
movzx ecx, dx
xor esi, esi
mov edi, dword [ebp + 0x7c]
mov bh, byte [ebp + 0x5c]
mov byte [ebp + 0x6e], bh
test edi, edi
je 0x40f779
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
push 0
movzx eax, cx
push eax
push 0x102
push edi
call ebx
test si, si
je 0x40f7be
push 0
movzx eax, si
push eax
push 0x102
push edi
call ebx
jmp 0x40f7be
cmp dword [0x4dd6f4], 2
je 0x40f79e
mov bl, byte [ebp + 0x69]
or bl, bh
mov dl, bl
call fcn.0040e850
test si, si
je 0x40f7be
mov dl, bl
mov ecx, esi
call fcn.0040e850
jmp 0x40f7be
mov eax, 0x30
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xa]
push 0xa
push eax
push edx
call fcn.0049993e
add esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.004100c0
cmp dword [0x4dd6f4], 2
mov eax, dword [0x4d78c8]
jne 0x40f7dc
mov ecx, dword [eax + 0x70]
call fcn.00411e00
mov edi, dword [ebp + 0x48]
jmp 0x40f9d4
mov ecx, dword [eax + 0x6c]
call fcn.00411e00
mov edi, dword [ebp + 0x48]
jmp 0x40f9d4
push 0
mov edx, esi
mov cl, bh
call fcn.00412a20
mov edi, dword [ebp + 0x7c]
mov bl, al
add esp, 4
mov byte [ebp + 0x10], bl
test bl, bl
je 0x40f8e5
test edi, edi
jne 0x40f8e5
mov eax, dword [ebp + 0x54]
test eax, eax
jne 0x40f849
mov eax, dword [ebp + 0x3c]
mov byte [ebp + 0x68], bh
cmp eax, 1
jne 0x40f834
mov al, byte [ebp + 0x6e]
or byte [0x4dd682], bl
or al, bl
jmp 0x40f8df
cmp eax, 2
jne 0x40f83f
or byte [0x4dd683], bl
mov al, byte [ebp + 0x6e]
or al, bl
jmp 0x40f8df
cmp eax, 1
jne 0x40f8e5
cmp dword [0x4dd67c], 0
jne 0x40f8b6
cmp byte [0x4dd681], bh
je 0x40f8b6
cmp byte [0x4dd6f8], 0
jne 0x40f8b6
mov al, byte [0x4dd680]
cmp bh, 0x5b
je 0x40f87b
cmp bh, 0x5c
jne 0x40f88c
cmp al, 0x5b
je 0x40f883
cmp al, 0x5c
jne 0x40f88c
cmp dword [0x4dd6f4], 2
jne 0x40f8a7
cmp bh, 0xa4
je 0x40f89f
cmp bh, 0xa5
jne 0x40f8b6
cmp dword [0x4dd6d8], 3
je 0x40f8b6
cmp al, 0xa4
je 0x40f8a7
cmp al, 0xa5
jne 0x40f8b6
mov edx, 0xffc3d44d
mov ecx, 2
call fcn.004108c0
not bl
and byte [0x4dd682], bl
and byte [0x4dd683], bl
and bl, byte [ebp + 0x6e]
mov al, bl
mov byte [ebp + 0x6e], al
mov byte [ebp + 0x5c], al
cmp bh, 0xa5
jne 0x40f8e5
cmp dword [0x4dd6d8], 3
jne 0x40f8e5
and al, 0xfe
mov byte [ebp + 0x5c], al
mov byte [ebp + 0x6e], al
push 0
push SysReAllocString
push SysReAllocString
push edi
push dword [ebp + 0x10]
mov edx, esi
mov cl, bh
push dword [ebp + 0x54]
push dword [ebp + 0x44]
push dword [ebp + 0x5c]
push dword [ebp + 0x69]
call fcn.0040fe00
add esp, 0x24
mov edi, dword [ebp + 0x48]
jmp 0x40f9d4
cmp eax, 2
jne 0x40f955
movzx eax, word [edi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x40f925.11
jmp dword [eax*4 + 0x40fde4]
cmp word [edi + 2], 0xa
lea eax, [edi + 2]
cmove edi, eax
mov al, 0xd
mov byte [ebp + 0x6f], al
jmp 0x40f97f
mov al, 8
mov byte [ebp + 0x6f], al
jmp 0x40f97f
mov al, 9
mov byte [ebp + 0x6f], al
jmp 0x40f97f
mov byte [ebp + 0x6f], 0
jmp 0x40f9a9
mov eax, dword [ebp + 0x50]
or bl, bh
je 0x40f961
test eax, eax
jne 0x40f961
mov al, 1
jmp 0x40f963
xor al, al
mov cx, word [edi]
lea edx, [ebp + 0x69]
push eax
push dword [0x4dd684]
call fcn.00413270
add esp, 8
mov byte [ebp + 0x6f], al
test al, al
je 0x40f9a6
push 0
push SysReAllocString
push SysReAllocString
push esi
push 0
push 2
push 1
push dword [ebp + 0x5c]
xor edx, edx
mov cl, al
push dword [ebp + 0x69]
call fcn.0040fe00
add esp, 0x24
jmp 0x40f9d4
mov bl, byte [ebp + 0x69]
movzx ecx, word [edi]
test esi, esi
je 0x40f9c1
push 0
push ecx
push 0x102
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40f9d4
or bl, bh
mov edx, 1
movzx eax, bl
push eax
call fcn.0040ffb0
add esp, 4
xor bl, bl
mov byte [ebp + 0x69], bl
mov al, byte [ebp + 0x68]
add edi, 2
mov byte [0x4dd681], al
cmp word [edi], 0
jne 0x40f050
cmp dword [0x4dd6f4], 0
je 0x40fa9a
or esi, 0xffffffff
cmp byte [0x4dd6ea], 0
mov dword [ebp + 0x3c], esi
jne 0x40fa5a
cmp dword [0x4dd6dc], 0
jbe 0x40fa5a
cmp byte [0x4dd6f8], 0
je 0x40fa21
mov bl, byte [ebp + 0x67]
jmp 0x40fa29
mov bl, byte [ebp + 0x66]
not bl
and bl, byte [ebp + 0x6d]
or bl, byte [0x4dd683]
or bl, byte [ebp + 0x6e]
mov dl, byte [0x4dd6e8]
mov cl, bl
push 0xffc3d44d
push 1
push 1
push 0
call fcn.004121f0
add esp, 0x10
lea ecx, [ebp + 0x3c]
mov dl, bl
call fcn.00411ca0
mov esi, dword [ebp + 0x3c]
cmp dword [0x4dd6f4], 1
mov eax, 0x5dc
mov ecx, 0x1f4
cmove eax, ecx
cmp dword [0x4dd6e0], eax
jbe 0x40fa84
push dword [0x4dc00c]
call fcn.00497f48
add esp, 4
mov ecx, esi
mov dword [0x4dd6f4], 0
call fcn.00411e00
jmp 0x40fb2d
cmp dword [0x4dbeb0], 0
je 0x40faae
mov cl, byte [0x4dbebb]
mov dl, byte [ebp + 0x6d]
jmp 0x40fad7
cmp dword [0x4d7e38], 0
jl 0x40fad2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4dd40c]
cmp eax, dword [0x4d7e38]
jb 0x40fad2
mov dl, byte [ebp + 0x6d]
xor cl, cl
jmp 0x40fad7
mov dl, byte [ebp + 0x6d]
mov cl, dl
or cl, byte [0x4dd683]
cmp byte [0x4dd6f8], 0
je 0x40fafe
mov al, cl
xor al, dl
mov bl, al
and al, cl
and bl, dl
mov dl, byte [ebp + 0x6e]
or dl, byte [ebp + 0x67]
not bl
and bl, dl
or bl, al
jmp 0x40fb08
mov bl, byte [ebp + 0x66]
not bl
and bl, cl
or bl, byte [ebp + 0x6e]
push 0xffc3d44d
push 1
push 1
push dword [ebp + 0x7c]
xor cl, cl
call fcn.00412810
or al, byte [0x4dbeba]
mov cl, bl
mov dl, al
call fcn.004121f0
add esp, 0x10
cmp dword [0x4dbeb0], 0
je 0x40fb50
mov cl, byte [0x4dbebc]
mov al, cl
xor al, byte [0x4dbebd]
and al, cl
not al
and cl, al
mov byte [0x4dbebc], cl
cmp dword [ebp + 0x1c], 1
jne 0x40fbe5
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x40fbe5
push 0x14
call esi
bt ax, 0xf
jae 0x40fb8d
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 1
call fcn.004103a0
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 2
call fcn.004103a0
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 [0x4dcd34]
jne 0x40fbf1
mov edx, 1
mov dword [0x4d78c0], 0
or ecx, 0xffffffff
call fcn.00401950
mov dword [0x4d78c0], 1
jmp 0x40fbf1
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp byte [ebp + 0x5b], 0
je 0x40fc08
push 0
push dword [ebp + 0x18]
push dword [0x4dcd34]
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp + 0x5a], 0
je 0x40fc23
cmp byte [ebp + 0x4f], 0
jne 0x40fc23
push 0
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4dbcb0], 0
mov eax, dword [ebp + 0x78]
test eax, eax
jne 0x40fca1
mov eax, dword [ebp + 0xc]
cmp dword [0x4dd444], eax
je 0x40fcd6
cmp dword [0x4d78c0], 0
je 0x40fcd6
cmp dword [0x4dbc4c], 0
jne 0x40fcd6
cmp dword [0x4dbc60], 0
je 0x40fc92
mov ecx, dword [0x4d78c8]
cmp byte [ecx + 0x53], 0
jne 0x40fc92
cmp dword [ecx + 0x44], 0xffffffff
jle 0x40fc8c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4d78c8]
sub eax, dword [ecx + 0x48]
cmp eax, dword [ecx + 0x44]
jb 0x40fc8c
cmp dword [ecx + 0x40], 0
je 0x40fc8c
mov byte [ecx + 0x53], 1
cmp byte [ecx + 0x53], 0
je 0x40fcd6
mov edx, 1
or ecx, 0xffffffff
call fcn.00401950
jmp 0x40fcd6
cmp eax, 1
jne 0x40fcd6
push 0
call esi
push eax
call ebx
cmp eax, dword [0x4dcd34]
jne 0x40fcd6
mov edx, 1
mov dword [0x4d78c0], 0
or ecx, 0xffffffff
call fcn.00401950
mov dword [0x4d78c0], 1
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x6c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x74], ecx
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x70]
pop ebp
ret