Function at 0x40d940
Capabilities:
Check for time delay via gettickcount
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0
je 0x40eac4
mov bl, byte [ebp + 0xc]
mov esi, dword [0x4c39ac]
mov dword [ebp - 0x38], esi
test bl, bl
jne 0x40d9dc
push 7
push str.Blind
push edi
call fcn.0048db57
add esp, 0xc
test eax, eax
jne 0x40d9dc
add edi, 0xe
mov byte [0x4c63bf], 1
mov dword [ebp + 8], edi
mov edi, dword [ebp + 0x10]
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ecx
cmp edi, 1
je 0x40d9a3
cmp edi, 3
jne 0x40da0f
cmp dword [0x4ca2cc], 0
je 0x40d9e5
call fcn.00408ef0
test al, al
jne 0x40d9e5
test bl, bl
jne 0x40d9d3
call fcn.00408f50
test al, al
je 0x40d9d3
mov ecx, dword [ebp + 8]
mov eax, str.Click
call fcn.00474240
test eax, eax
jne 0x40d9e5
mov dword [ebp + 0x10], 1
jmp 0x40da0f
mov byte [0x4c63bf], 0
jmp 0x40d98a
cmp edi, 3
jne 0x40d9f3
mov dword [ebp + 0x10], 2
jmp 0x40da0f
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40da05
cmp dword [esi + 0x64], eax
jge 0x40da05
or eax, 0xffffffff
mov dword [esi + 0x64], eax
mov dword [esi + 0x5c], 0xffffffff
xor edi, edi
mov byte [ebp - 0xb], 0
cmp dword [ebp + 0x14], edi
je 0x40dab7
mov edx, dword [ebp + 0x14]
push edi
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov dword [ebp - 0x54], ebx
test ebx, ebx
je 0x40da60
cmp ebx, dword [0x4c95bc]
je 0x40da60
mov esi, dword [ebp + 0x14]
call fcn.00478b00
test al, al
jne 0x40da5d
mov eax, dword [0x4c95bc]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xb]
mov edi, ebx
mov esi, dword [ebp - 0x38]
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4c63e4], eax
push eax
xor eax, eax
call fcn.00411f60
add esp, 4
push 1
mov dword [0x4c63e0], eax
call fcn.00411990
add esp, 4
cmp dword [0x4c75d8], 0
mov bl, al
mov byte [ebp - 4], bl
je 0x40dbc3
mov cl, byte [0x4c74a5]
mov dl, byte [0x4c74a7]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 0xa], cl
jmp 0x40dbee
test byte [0x4ca0e2], 0xc0
je 0x40dba5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ca0d8]
cmp eax, 0x32
jae 0x40dba5
cmp dword [ebp + 0x10], 2
je 0x40dba5
cmp byte [0x4c63bf], 0
jne 0x40dba5
cmp byte [0x4ca2be], 0
je 0x40dba5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4c95bc]
jne 0x40dba5
mov eax, dword [ebp + 8]
test bl, bl
mov ebx, 0x4a39b4
je 0x40db73
call fcn.004096a0
test eax, eax
setne al
test al, al
je 0x40dba5
lea esp, [esp]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x40db52
push 0x5c
call ebx
mov edx, 0x8000
test dx, ax
je 0x40dba5
push 1
push 0x8000012f
mov dword [0x4c38b4], edi
call fcn.00401360
add esp, 8
mov dword [0x4c38b4], 1
jmp 0x40db30
call fcn.004096a0
test eax, eax
je 0x40dba5
lea esp, [esp]
add eax, 2
mov ebx, 0x4a39bc
call fcn.004096a0
test eax, eax
je 0x40db30
cmp word [eax], 0x7b
je 0x40db30
mov ebx, 0x4a39b4
call fcn.004096a0
test eax, eax
jne 0x40db80
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x40da60
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
jmp 0x40da60
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ca0d8]
cmp eax, dword [0x4c38ac]
jae 0x40dbe3
mov al, byte [0x4ca0e2]
and al, bl
mov byte [ebp - 2], al
jmp 0x40dbea
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4c8eb0]
not al
and al, bl
and cl, al
mov al, byte [0x4c63bf]
mov byte [0x4c8eb0], cl
test al, al
je 0x40dc15
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 8], bl
jmp 0x40dc1c
mov byte [ebp - 3], 0
mov byte [ebp - 8], cl
cmp byte [esi + 0xf3], 0
je 0x40dc3d
test al, al
jne 0x40dc3d
push 2
mov bl, 0x14
call fcn.00411180
mov bl, byte [ebp - 4]
add esp, 4
mov dword [ebp - 0x40], eax
jmp 0x40dc44
mov dword [ebp - 0x40], 0
mov edi, dword [ebp + 0x10]
mov dword [0x4c8f08], edi
test edi, edi
je 0x40dcb6
cmp edi, 1
jne 0x40dc67
mov eax, 0x36b0
mov dword [0x4c63d4], 0x1f4
jmp 0x40dc76
mov eax, 0x2ee0
mov dword [0x4c63d4], 0x5dc
call fcn.004948e0
mov eax, esp
mov dword [0x4c63dc], eax
mov eax, SysReAllocString
mov byte [0x4c63c7], bl
mov dword [0x4c63c8], eax
mov dword [0x4c63cc], eax
mov byte [0x4c63c6], 0
mov dword [0x4c63d8], 0
mov byte [0x4c63c5], 0
mov byte [0x4c63c4], 1
mov al, byte [0x4c7ca3]
mov byte [ebp - 0x25], al
mov eax, dword [0x4c39bc]
cmp eax, 8
je 0x40dccd
cmp eax, 0xa
jne 0x40dd0e
test edi, edi
jne 0x40dd0e
cmp dword [ebp + 0x14], edi
jne 0x40dd0e
test byte [0x4cab70], 1
mov byte [ebp - 4], 1
jne 0x40dd14
or dword [0x4cab70], 1
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [0x4c8f08]
mov dword [0x4cab6c], eax
jmp 0x40dd19
mov byte [ebp - 4], 0
jmp 0x40dd2e
mov eax, dword [0x4cab6c]
test eax, eax
je 0x40dd27
push 1
call eax
mov edi, dword [0x4c8f08]
mov byte [0x4c7ca3], 1
mov edx, dword [ebp + 8]
xor ecx, ecx
mov word [ebp - 0x2a], cx
mov byte [ebp - 1], 0
cmp word [edx], cx
je 0x40e738
mov esi, edx
cmp dword [0x4c8f08], 0
mov byte [ebp - 9], 0
jne 0x40ddaf
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x4ca114]
mov ecx, dword [0x4c39ac]
cmp eax, dword [ecx + 0xd8]
jbe 0x40ddaf
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40dda8
push 1
push 0xffffffffffffffff
mov dword [0x4c38b4], 0
call fcn.00401360
add esp, 8
mov dword [0x4c38b4], 1
call edi
mov dword [0x4ca114], eax
cmp byte [ebp + 0xc], 0
jne 0x40e5f1
movzx eax, word [esi]
push eax
push 0x4a39c4
call fcn.0048e0e1
add esp, 8
test eax, eax
je 0x40e5f1
movzx eax, word [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40dde8.34
movzx ecx, byte [eax + 0x40eaf0]
jmp dword [ecx*4 + 0x40ead4]
test byte [ebp - 8], 3
jne case.0x40dde8.34
or byte [ebp - 1], 1
jmp case.0x40dde8.34
test byte [ebp - 8], 0x30
jne case.0x40dde8.34
or byte [ebp - 1], 0x10
jmp case.0x40dde8.34
test byte [ebp - 8], 0xc
jne case.0x40dde8.34
or byte [ebp - 1], 4
jmp case.0x40dde8.34
test byte [ebp - 8], 0xc0
jne case.0x40dde8.34
or byte [ebp - 1], 0x40
jmp case.0x40dde8.34
lea ebx, [esi + 2]
push 0x7d
push ebx
call fcn.0048e0e1
mov edi, eax
add esp, 8
mov dword [ebp - 0x18], edi
test edi, edi
je case.0x40dde8.34
mov eax, ebx
call fcn.004096f0
mov esi, eax
mov ebx, edi
sub ebx, esi
sar ebx, 1
mov dword [ebp + 8], esi
mov dword [ebp - 0x30], ebx
jne 0x40dee9
movzx ecx, word [edi + 2]
lea eax, [edi + 2]
cmp ecx, 0x7d
jne 0x40de85
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], 1
jmp 0x40dee3
cmp ecx, 0x20
je 0x40de93
cmp ecx, 9
jne 0x40e5e4
call fcn.004096f0
push 4
mov edi, eax
push str.Down
push edi
call fcn.0048db57
add esp, 0xc
test eax, eax
je 0x40dec6
push 2
push 0x4a0db4
push edi
call fcn.0048db57
add esp, 0xc
test eax, eax
jne 0x40e5e4
push 0x7d
push edi
call fcn.0048e0e1
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x40dde8.34
sub eax, esi
sar eax, 1
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x18]
push 5
push 0x4a27dc
push esi
call fcn.0048db57
add esp, 0xc
test eax, eax
jne 0x40df91
xor edx, edx
lea eax, [ebp - 0x48]
push eax
mov word [edi], dx
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x1d]
push eax
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [esi + 0xa]
call fcn.004096f0
call fcn.0040fad0
mov ecx, dword [ebp - 0x24]
add esp, 0x18
mov eax, 0x7d
mov word [edi], ax
cmp ecx, 1
jge 0x40df6c
mov edx, dword [ebp - 0x38]
movzx eax, byte [edx + 0xef]
mov ecx, dword [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x4c]
call fcn.00410720
mov ecx, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e715
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x50]
push edx
mov edx, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp + 0x14]
push edx
mov edx, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push 0
push edx
mov edx, dword [ebp - 0x1d]
push eax
push 0
push edx
jmp 0x40e5d9
push 3
push 0x4a39d4
push esi
call fcn.0048db57
add esp, 0xc
test eax, eax
jne 0x40dfb6
mov ecx, dword [ebp - 0x18]
mov byte [ebp + 0xc], 1
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e715
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov word [ecx], ax
mov dword [ebp - 0x44], ebx
mov ebx, 0x4a36ac
mov eax, esi
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x24], 1
call fcn.004096a0
mov edi, eax
test edi, edi
je 0x40e065
movzx edx, word [edi]
xor eax, eax
mov word [edi], ax
mov eax, edi
sub eax, dword [ebp + 8]
mov dword [ebp - 0x60], edx
sar eax, 1
mov dword [ebp - 0x44], eax
lea eax, [edi + 2]
call fcn.004096f0
mov ecx, dword [ebp - 0x18]
mov esi, eax
sub ecx, esi
sar ecx, 1
je 0x40e062
push 4
push str.Down
push esi
call fcn.0048db57
add esp, 0xc
test eax, eax
jne 0x40e03f
push 4
push str.Temp
add esi, 8
push esi
mov dword [ebp - 0x10], eax
call fcn.0048db57
add esp, 0xc
test eax, eax
setne byte [ebp - 0x19]
jmp 0x40e062
push 0x4a0db4
push esi
call fcn.0048d309
add esp, 8
test eax, eax
jne 0x40e05a
mov dword [ebp - 0x10], 1
jmp 0x40e062
call fcn.0040d2c0
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 8]
movzx eax, word [esi]
test ax, ax
je 0x40e0ae
cmp word [esi + 2], 0
jne 0x40e087
mov ecx, dword [0x4c63e4]
lea esi, [ebp - 1]
call fcn.004123c0
mov esi, dword [ebp + 8]
jmp 0x40e0b0
mov ebx, dword [ebp + 8]
xor esi, esi
lea esp, [esp]
mov edx, dword [esi*8 + 0x4c46e8]
push ebx
push edx
call fcn.0048d309
add esp, 8
test eax, eax
je 0x40e0c5
inc esi
cmp esi, 0x6d
jl 0x40e090
mov esi, dword [ebp + 8]
xor al, al
mov bl, al
mov byte [ebp - 0x1d], bl
test al, al
je 0x40e0d1
mov dword [ebp - 0x3c], 0
jmp 0x40e156
mov al, byte [esi*8 + 0x4c46ec]
mov esi, dword [ebp + 8]
jmp 0x40e0b0
mov eax, esi
call fcn.00412250
movzx eax, ax
mov dword [ebp - 0x3c], eax
test ax, ax
jne 0x40e156
mov ax, word [esi]
call fcn.00409670
cmp ax, 0x56
jne 0x40e156
mov ax, word [esi + 2]
call fcn.00409670
cmp ax, 0x4b
jne 0x40e156
mov eax, dword [ebp + 8]
add eax, 4
mov ebx, 0x4a39e8
call fcn.004096a0
mov esi, eax
test esi, esi
je 0x40e13b
mov ax, word [esi + 2]
call fcn.00409670
cmp ax, 0x43
jne 0x40e13b
push 0x10
push 0
add esi, 4
push esi
call fcn.0048e93b
movzx eax, ax
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
push 0x10
add eax, 4
push 0
push eax
call fcn.0048e93b
mov esi, dword [ebp + 8]
mov bl, al
add esp, 0xc
mov byte [ebp - 0x1d], bl
test edi, edi
je 0x40e161
mov cx, word [ebp - 0x60]
mov word [edi], cx
cmp dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x18]
mov edx, 0x7d
mov word [eax], dx
jl 0x40e5e4
test bl, bl
jne 0x40e546
cmp word [ebp - 0x3c], 0
jne 0x40e546
mov eax, 1
cmp dword [ebp - 0x44], eax
jne 0x40e1e0
cmp dword [ebp - 0x10], eax
je 0x40e5e4
cmp dword [ebp + 0x14], 0
je 0x40e1c4
movzx ecx, word [esi]
mov edx, dword [ebp + 0x14]
push 0
push ecx
push 0x102
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e715
movzx eax, word [esi]
push eax
mov eax, dword [ebp - 0x24]
call fcn.0040eef0
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e715
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
sete bl
push edx
call fcn.00412440
add esp, 8
mov byte [ebp - 0x1d], al
test al, al
je 0x40e3e3
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40e21e
cmp dword [ebp - 0x10], edi
jne 0x40e219
mov byte [ebp - 9], al
jmp 0x40e21e
call fcn.0040d490
cmp dword [0x4c8f08], 0
je 0x40e232
mov bl, byte [0x4c63c7]
jmp 0x40e324
cmp dword [0x4c75d8], 0
je 0x40e246
mov bl, byte [0x4c74a5]
jmp 0x40e324
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e261
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40e275
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e289
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40e29d
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e2b1
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40e2c5
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e2d6
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40e2e7
or bl, 0x80
cmp dword [0x4c75d8], 0
je 0x40e324
mov al, bl
not al
and al, byte [0x4c74a5]
je 0x40e324
mov cl, byte [0x4c74a7]
not al
and byte [0x4c74a5], al
and byte [0x4c74a6], al
and cl, al
mov al, cl
mov byte [0x4c74a7], cl
mov ecx, 0x4c74c8
call fcn.00411a90
mov eax, dword [ebp - 8]
push 0
push 0
push edi
push ebx
push eax
mov esi, 0xffc3d44d
call fcn.00411290
mov eax, dword [ebp - 0x24]
add esp, 0x14
test eax, eax
jle 0x40e5e4
mov ebx, dword [ebp - 0x1d]
mov edi, eax
jmp 0x40e350
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
push 0xffc3d44d
push 1
push ecx
push 0
push ebx
push edx
call fcn.0040f400
add esp, 0x18
cmp dword [0x4c8f08], 0
jne 0x40e3cf
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4ca114]
mov ecx, dword [0x4c39ac]
cmp eax, dword [ecx + 0xd8]
jbe 0x40e3cf
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40e3c8
push 1
push 0xffffffffffffffff
mov dword [0x4c38b4], 0
call fcn.00401360
add esp, 8
mov dword [0x4c38b4], 1
call esi
mov dword [0x4ca114], eax
dec edi
jne 0x40e350
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e715
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp + 8]
cmp edi, 4
jbe 0x40e418
push 4
push str.ASC
push esi
call fcn.0048db57
add esp, 0xc
test eax, eax
jne 0x40e418
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jne 0x40e41b
lea eax, [esi + 6]
call fcn.004096f0
mov edi, eax
jmp 0x40e4fb
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x40e5e4
push 2
push 0x4a39fc
push esi
call fcn.0048db57
add esp, 0xc
test eax, eax
jne 0x40e5e4
push 0x10
push eax
add esi, 4
push esi
call fcn.0048e93b
add esp, 0xc
cmp eax, 0x10000
jb 0x40e47e
sub eax, 0x10000
mov edx, eax
shr edx, 0xa
and edx, 0x3ff
sub edx, 0x2800
movzx ecx, dx
mov edx, eax
and edx, 0x3ff
sub edx, 0x2400
movzx esi, dx
jmp 0x40e483
movzx ecx, ax
xor esi, esi
test ebx, ebx
je 0x40e4b0
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
movzx eax, cx
push eax
push 0x102
push ebx
call edi
test si, si
je 0x40e500
push 0
movzx ecx, si
push ecx
push 0x102
push ebx
call edi
jmp 0x40e500
cmp dword [0x4c8f08], 2
je 0x40e4e0
movzx edx, byte [ebp - 8]
movzx edi, byte [ebp - 1]
or edi, edx
push ecx
mov eax, edi
call fcn.0040d510
add esp, 4
test si, si
je 0x40e500
push esi
mov eax, edi
call fcn.0040d510
add esp, 4
jmp 0x40e500
push 0xa
lea edx, [ebp - 0x72]
push edx
mov ecx, 0x30
push eax
mov word [ebp - 0x74], cx
call fcn.0048d085
add esp, 0xc
lea edi, [ebp - 0x74]
call fcn.0040f000
cmp dword [0x4c8f08], 2
jne 0x40e527
mov eax, dword [0x4c39ac]
mov eax, dword [eax + 0x60]
push eax
call fcn.00410e90
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e715
mov ecx, dword [0x4c39ac]
mov eax, dword [ecx + 0x5c]
push eax
call fcn.00410e90
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e715
mov esi, dword [ebp - 0x3c]
xor ecx, ecx
mov edx, esi
mov al, bl
call fcn.00411b60
mov byte [ebp - 0x14], al
test al, al
je 0x40e5b5
cmp dword [ebp + 0x14], 0
jne 0x40e5b5
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x40e57b
mov byte [ebp - 9], bl
cmp byte [ebp - 0x19], cl
je 0x40e576
or byte [0x4c8eb0], al
or byte [ebp - 8], al
jmp 0x40e5b5
cmp ecx, 1
jne 0x40e5b5
mov al, bl
call fcn.0040d490
mov al, byte [ebp - 0x14]
mov cl, byte [0x4c8eb0]
not al
and byte [ebp - 3], al
and cl, al
mov byte [0x4c8eb0], cl
cmp bl, 0xa5
jne 0x40e5af
cmp dword [0x4c63e0], 3
jne 0x40e5af
and byte [ebp - 3], 0xfe
or cl, byte [ebp - 3]
mov byte [ebp - 8], cl
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
push 0
push SysReAllocString
push SysReAllocString
push edx
mov edx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x1d]
push ecx
mov ecx, dword [ebp - 0x24]
push edx
push esi
push eax
mov al, byte [ebp - 1]
call fcn.0040eb50
add esp, 0x24
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], ecx
mov esi, ecx
jmp 0x40e715
mov ax, word [esi]
mov word [ebp - 0x2c], ax
test ax, ax
je 0x40e6a1
cmp word [ebp - 0x2a], 0
jne 0x40e621
mov ecx, dword [0x4c63e4]
mov eax, dword [ebp - 0x2c]
lea esi, [ebp - 1]
call fcn.004123c0
mov esi, dword [ebp + 8]
jmp 0x40e6a3
movzx esi, ax
test esi, 0xffffff80
jne 0x40e63e
push 2
push esi
call fcn.0048e55e
add esp, 8
test eax, eax
je 0x40e63e
and esi, 0xffffffdf
cmp si, 0x56
jne 0x40e67d
movzx esi, word [ebp - 0x2a]
test esi, 0xffffff80
jne 0x40e662
push 2
push esi
call fcn.0048e55e
add esp, 8
test eax, eax
je 0x40e662
and esi, 0xffffffdf
cmp si, 0x4b
jne 0x40e67d
push 0x10
lea edx, [ebp - 0x28]
push 0
push edx
call fcn.0048e93b
mov esi, dword [ebp + 8]
add esp, 0xc
jmp 0x40e6a3
xor esi, esi
nop
mov ecx, dword [esi*8 + 0x4c46e8]
lea eax, [ebp - 0x2c]
push eax
push ecx
call fcn.0048d309
add esp, 8
test eax, eax
je 0x40e6dd
inc esi
cmp esi, 0x6d
jl 0x40e680
mov esi, dword [ebp + 8]
xor al, al
mov byte [ebp - 0x34], al
mov byte [ebp - 0x1d], al
test al, al
je 0x40e6e9
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x34]
push 0
push SysReAllocString
push SysReAllocString
push edx
push 0
push 2
push eax
mov al, byte [ebp - 1]
push 0
push ecx
mov ecx, 1
call fcn.0040eb50
add esp, 0x24
jmp 0x40e715
mov al, byte [esi*8 + 0x4c46ec]
mov esi, dword [ebp + 8]
jmp 0x40e6a3
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40e704
movzx edx, word [esi]
push 0
push edx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40e715
movzx eax, word [esi]
push eax
mov eax, 1
call fcn.0040eef0
add esp, 4
mov byte [ebp - 1], 0
mov cl, byte [ebp - 9]
add esi, 2
cmp word [esi], 0
mov dword [ebp + 8], esi
mov byte [0x4c7eef], cl
jne 0x40dd46
mov edi, dword [0x4c8f08]
test edi, edi
je 0x40e7f8
cmp byte [0x4c63c5], 0
mov dword [ebp - 0x14], 0xffffffff
jne 0x40e7af
cmp dword [0x4c63d8], 0
jbe 0x40e7af
cmp byte [0x4c63bf], 0
je 0x40e766
xor eax, eax
jmp 0x40e772
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 2]
not eax
and eax, edx
or al, byte [ebp - 8]
mov ebx, 1
push ebx
mov byte [ebp + 8], al
movzx eax, byte [0x4c63c7]
mov edi, dword [ebp + 8]
push ebx
push 0
push eax
push edi
mov esi, 0xffc3d44d
call fcn.00411290
add esp, 0x14
lea ecx, [ebp - 0x14]
push edi
push ecx
call fcn.00410d40
mov edi, dword [0x4c8f08]
add esp, 8
jmp 0x40e7b4
mov ebx, 1
sub edi, ebx
neg edi
sbb edi, edi
and edi, 0x3e8
add edi, 0x1f4
cmp dword [0x4c63d4], edi
jbe 0x40e7dd
mov edx, dword [0x4c63dc]
push edx
call fcn.0048e96f
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov dword [0x4c8f08], 0
call fcn.00410e90
add esp, 4
jmp 0x40e974
cmp dword [0x4c75d8], 0
je 0x40e809
mov cl, byte [0x4c74a7]
jmp 0x40e82d
cmp dword [0x4c38ac], 0
jl 0x40e82a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ca0d8]
cmp eax, dword [0x4c38ac]
jb 0x40e82a
xor cl, cl
jmp 0x40e82d
mov cl, byte [ebp - 2]
cmp byte [0x4c63bf], 0
je 0x40e84f
mov dl, byte [ebp - 2]
mov al, cl
xor al, dl
mov bl, al
and bl, dl
not bl
and bl, byte [ebp - 8]
and al, cl
or bl, al
mov byte [ebp + 8], bl
jmp 0x40e85c
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 8]
mov byte [ebp + 8], al
cmp dword [0x4c75d8], 0
je 0x40e873
mov cl, byte [0x4c74a5]
mov byte [ebp - 0x14], cl
jmp 0x40e954
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov edx, 0x8000
test dx, ax
je 0x40e88e
mov bl, 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e8a2
or bl, 0x20
push 0xa2
call esi
mov edx, 0x8000
test dx, ax
je 0x40e8b6
or bl, 1
push 0xa3
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e8ca
or bl, 2
push 0xa4
call esi
mov edx, 0x8000
test dx, ax
je 0x40e8de
or bl, 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e8f2
or bl, 8
push 0x5b
call esi
mov edx, 0x8000
test dx, ax
je 0x40e903
or bl, 0x40
push 0x5c
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e914
or bl, 0x80
cmp dword [0x4c75d8], 0
je 0x40e951
mov al, bl
not al
and al, byte [0x4c74a5]
je 0x40e951
mov cl, byte [0x4c74a7]
not al
and byte [0x4c74a5], al
and byte [0x4c74a6], al
and cl, al
mov al, cl
mov byte [0x4c74a7], cl
mov ecx, 0x4c74c8
call fcn.00411a90
mov byte [ebp - 0x14], bl
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov ebx, 1
push ebx
push ebx
push edx
push eax
push ecx
mov esi, 0xffc3d44d
call fcn.00411290
add esp, 0x14
cmp dword [0x4c75d8], 0
je 0x40e995
mov al, byte [0x4c74a6]
mov dl, al
xor dl, byte [0x4c74a5]
and dl, al
not dl
and al, dl
mov byte [0x4c74a6], al
cmp dword [ebp - 0x40], ebx
jne 0x40ea19
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x40ea19
push 0x14
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e9d0
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push ebx
call fcn.0040f400
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push 2
call fcn.0040f400
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c95bc]
jne 0x40ea19
push ebx
push 0xffffffffffffffff
mov dword [0x4c38b4], 0
call fcn.00401360
add esp, 8
mov dword [0x4c38b4], ebx
cmp byte [ebp - 0xb], 0
je 0x40ea31
mov edx, dword [ebp - 0x54]
mov eax, dword [0x4c95bc]
push 0
push edx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 4], 0
je 0x40ea7e
cmp byte [ebp - 0x25], 0
jne 0x40ea7e
test byte [0x4cab70], 1
jne 0x40ea6a
or dword [0x4cab70], ebx
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cab6c], eax
jmp 0x40ea6f
mov eax, dword [0x4cab6c]
test eax, eax
je 0x40ea77
push 0
call eax
mov byte [0x4c7ca3], 0
cmp dword [ebp + 0x10], ebx
jne 0x40eab5
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c95bc]
jne 0x40eab5
push ebx
push 0xffffffffffffffff
mov dword [0x4c38b4], 0
call fcn.00401360
add esp, 8
mov dword [0x4c38b4], ebx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x64], edx
lea esp, [ebp - 0xa0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret