Function at 0x40d9b0
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 0x40eb1c
mov bl, byte [ebp + 0xc]
mov esi, dword [0x4c48ec]
mov dword [ebp - 0x38], esi
test bl, bl
jne 0x40da4c
push 7
push str.Blind
push edi
call fcn.0048e247
add esp, 0xc
test eax, eax
jne 0x40da4c
add edi, 0xe
mov byte [0x4c73df], 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 0x40da13
cmp edi, 3
jne 0x40da7f
cmp dword [0x4cb2ec], 0
je 0x40da55
call fcn.00408ec0
test al, al
jne 0x40da55
test bl, bl
jne 0x40da43
call fcn.00408f20
test al, al
je 0x40da43
mov ecx, dword [ebp + 8]
mov eax, str.Click
call fcn.00474930
test eax, eax
jne 0x40da55
mov dword [ebp + 0x10], 1
jmp 0x40da7f
mov byte [0x4c73df], 0
jmp 0x40d9fa
cmp edi, 3
jne 0x40da63
mov dword [ebp + 0x10], 2
jmp 0x40da7f
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40da75
cmp dword [esi + 0x64], eax
jge 0x40da75
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 0x40db27
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 0x40dad0
cmp ebx, dword [0x4ca5dc]
je 0x40dad0
mov esi, dword [ebp + 0x14]
call fcn.004791f0
test al, al
jne 0x40dacd
mov eax, dword [0x4ca5dc]
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 [0x4c7404], eax
push eax
xor eax, eax
call fcn.00411fc0
add esp, 4
push 1
mov dword [0x4c7400], eax
call fcn.004119f0
add esp, 4
cmp dword [0x4c85f8], 0
mov bl, al
mov byte [ebp - 4], bl
je 0x40dc33
mov cl, byte [0x4c84c5]
mov dl, byte [0x4c84c7]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 0xa], cl
jmp 0x40dc5e
test byte [0x4cb102], 0xc0
je 0x40dc15
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4cb0f8]
cmp eax, 0x32
jae 0x40dc15
cmp dword [ebp + 0x10], 2
je 0x40dc15
cmp byte [0x4c73df], 0
jne 0x40dc15
cmp byte [0x4cb2de], 0
je 0x40dc15
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4ca5dc]
jne 0x40dc15
mov eax, dword [ebp + 8]
test bl, bl
mov ebx, 0x4a48a4
je 0x40dbe3
call fcn.00409670
test eax, eax
setne al
test al, al
je 0x40dc15
lea esp, [esp]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call ebx
mov ecx, 0x8000
test cx, ax
jne 0x40dbc2
push 0x5c
call ebx
mov edx, 0x8000
test dx, ax
je 0x40dc15
push 1
push 0x8000012f
mov dword [0x4c48b4], edi
call fcn.00401360
add esp, 8
mov dword [0x4c48b4], 1
jmp 0x40dba0
call fcn.00409670
test eax, eax
je 0x40dc15
lea esp, [esp]
add eax, 2
mov ebx, 0x4a48ac
call fcn.00409670
test eax, eax
je 0x40dba0
cmp word [eax], 0x7b
je 0x40dba0
mov ebx, 0x4a48a4
call fcn.00409670
test eax, eax
jne 0x40dbf0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x40dad0
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
jmp 0x40dad0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4cb0f8]
cmp eax, dword [0x4c48ac]
jae 0x40dc53
mov al, byte [0x4cb102]
and al, bl
mov byte [ebp - 2], al
jmp 0x40dc5a
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4c9ed1]
not al
and al, bl
and cl, al
mov al, byte [0x4c73df]
mov byte [0x4c9ed1], cl
test al, al
je 0x40dc85
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 8], bl
jmp 0x40dc8c
mov byte [ebp - 3], 0
mov byte [ebp - 8], cl
cmp byte [esi + 0xf3], 0
je 0x40dcad
test al, al
jne 0x40dcad
push 2
mov bl, 0x14
call fcn.004111e0
mov bl, byte [ebp - 4]
add esp, 4
mov dword [ebp - 0x40], eax
jmp 0x40dcb4
mov dword [ebp - 0x40], 0
mov edi, dword [ebp + 0x10]
mov dword [0x4c9f28], edi
test edi, edi
je 0x40dd26
cmp edi, 1
jne 0x40dcd7
mov eax, 0x36b0
mov dword [0x4c73f4], 0x1f4
jmp 0x40dce6
mov eax, 0x2ee0
mov dword [0x4c73f4], 0x5dc
call fcn.00494fd0
mov eax, esp
mov dword [0x4c73fc], eax
mov eax, SysReAllocString
mov byte [0x4c73e7], bl
mov dword [0x4c73e8], eax
mov dword [0x4c73ec], eax
mov byte [0x4c73e6], 0
mov dword [0x4c73f8], 0
mov byte [0x4c73e5], 0
mov byte [0x4c73e4], 1
mov al, byte [0x4c8ed4]
mov byte [ebp - 0x25], al
mov eax, dword [0x4c49c8]
cmp eax, 8
je 0x40dd3d
cmp eax, 0xa
jne 0x40dd7e
test edi, edi
jne 0x40dd7e
cmp dword [ebp + 0x14], edi
jne 0x40dd7e
test byte [0x4cbb90], 1
mov byte [ebp - 4], 1
jne 0x40dd84
or dword [0x4cbb90], 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 [0x4c9f28]
mov dword [0x4cbb8c], eax
jmp 0x40dd89
mov byte [ebp - 4], 0
jmp 0x40dd9e
mov eax, dword [0x4cbb8c]
test eax, eax
je 0x40dd97
push 1
call eax
mov edi, dword [0x4c9f28]
mov byte [0x4c8ed4], 1
mov edx, dword [ebp + 8]
xor ecx, ecx
mov word [ebp - 0x2a], cx
mov byte [ebp - 1], 0
cmp word [edx], cx
je 0x40e794
mov esi, edx
cmp dword [0x4c9f28], 0
mov byte [ebp - 9], 0
jne 0x40de1f
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x4cb134]
mov ecx, dword [0x4c48ec]
cmp eax, dword [ecx + 0xd8]
jbe 0x40de1f
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 0x40de18
push 1
push 0xffffffffffffffff
mov dword [0x4c48b4], 0
call fcn.00401360
add esp, 8
mov dword [0x4c48b4], 1
call edi
mov dword [0x4cb134], eax
cmp byte [ebp + 0xc], 0
jne 0x40e649
movzx eax, word [esi]
push eax
push 0x4a48b4
call fcn.0048e7d1
add esp, 8
test eax, eax
je 0x40e649
movzx eax, word [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40de58.34
movzx ecx, byte [eax + 0x40eb48]
jmp dword [ecx*4 + 0x40eb2c]
test byte [ebp - 8], 3
jne case.0x40de58.34
or byte [ebp - 1], 1
jmp case.0x40de58.34
test byte [ebp - 8], 0x30
jne case.0x40de58.34
or byte [ebp - 1], 0x10
jmp case.0x40de58.34
test byte [ebp - 8], 0xc
jne case.0x40de58.34
or byte [ebp - 1], 4
jmp case.0x40de58.34
test byte [ebp - 8], 0xc0
jne case.0x40de58.34
or byte [ebp - 1], 0x40
jmp case.0x40de58.34
lea ebx, [esi + 2]
push 0x7d
push ebx
call fcn.0048e7d1
mov edi, eax
add esp, 8
mov dword [ebp - 0x18], edi
test edi, edi
je case.0x40de58.34
mov eax, ebx
call fcn.004096c0
mov esi, eax
mov ebx, edi
sub ebx, esi
sar ebx, 1
mov dword [ebp + 8], esi
mov dword [ebp - 0x30], ebx
jne 0x40df59
movzx ecx, word [edi + 2]
lea eax, [edi + 2]
cmp ecx, 0x7d
jne 0x40def5
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], 1
jmp 0x40df53
cmp ecx, 0x20
je 0x40df03
cmp ecx, 9
jne 0x40e63c
call fcn.004096c0
push 4
mov edi, eax
push str.Down
push edi
call fcn.0048e247
add esp, 0xc
test eax, eax
je 0x40df36
push 2
push 0x4a1d60
push edi
call fcn.0048e247
add esp, 0xc
test eax, eax
jne 0x40e63c
push 0x7d
push edi
call fcn.0048e7d1
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x40de58.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 0x4a3788
push esi
call fcn.0048e247
add esp, 0xc
test eax, eax
jne 0x40e001
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.004096c0
call fcn.0040fb30
mov ecx, dword [ebp - 0x24]
add esp, 0x18
mov eax, 0x7d
mov word [edi], ax
cmp ecx, 1
jge 0x40dfdc
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.00410780
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40e772
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 0x40e631
push 3
push 0x4a48c4
push esi
call fcn.0048e247
add esp, 0xc
test eax, eax
jne 0x40e026
mov edx, dword [ebp - 0x18]
mov byte [ebp + 0xc], 1
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40e772
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov word [ecx], ax
mov dword [ebp - 0x44], ebx
mov ebx, 0x4a459c
mov eax, esi
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x24], 1
call fcn.00409670
mov edi, eax
test edi, edi
je 0x40e0d5
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.004096c0
mov ecx, dword [ebp - 0x18]
mov esi, eax
sub ecx, esi
sar ecx, 1
je 0x40e0d2
push 4
push str.Down
push esi
call fcn.0048e247
add esp, 0xc
test eax, eax
jne 0x40e0af
push 4
push str.Temp
add esi, 8
push esi
mov dword [ebp - 0x10], eax
call fcn.0048e247
add esp, 0xc
test eax, eax
setne byte [ebp - 0x19]
jmp 0x40e0d2
push 0x4a1d60
push esi
call fcn.0048d9f9
add esp, 8
test eax, eax
jne 0x40e0ca
mov dword [ebp - 0x10], 1
jmp 0x40e0d2
call fcn.0040d310
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 8]
movzx eax, word [esi]
test ax, ax
je 0x40e11e
cmp word [esi + 2], 0
jne 0x40e0f7
mov ecx, dword [0x4c7404]
lea esi, [ebp - 1]
call fcn.00412410
mov esi, dword [ebp + 8]
jmp 0x40e120
mov ebx, dword [ebp + 8]
xor esi, esi
lea esp, [esp]
mov edx, dword [esi*8 + 0x4c56f8]
push ebx
push edx
call fcn.0048d9f9
add esp, 8
test eax, eax
je 0x40e135
inc esi
cmp esi, 0x6d
jl 0x40e100
mov esi, dword [ebp + 8]
xor al, al
mov bl, al
mov byte [ebp - 0x1d], bl
test al, al
je 0x40e141
mov dword [ebp - 0x3c], 0
jmp 0x40e1c6
mov al, byte [esi*8 + 0x4c56fc]
mov esi, dword [ebp + 8]
jmp 0x40e120
mov eax, esi
call fcn.004122b0
movzx eax, ax
mov dword [ebp - 0x3c], eax
test ax, ax
jne 0x40e1c6
mov ax, word [esi]
call fcn.00409640
cmp ax, 0x56
jne 0x40e1c6
mov ax, word [esi + 2]
call fcn.00409640
cmp ax, 0x4b
jne 0x40e1c6
mov eax, dword [ebp + 8]
add eax, 4
mov ebx, 0x4a48d8
call fcn.00409670
mov esi, eax
test esi, esi
je 0x40e1ab
mov ax, word [esi + 2]
call fcn.00409640
cmp ax, 0x43
jne 0x40e1ab
push 0x10
push 0
add esi, 4
push esi
call fcn.0048f02b
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.0048f02b
mov esi, dword [ebp + 8]
mov bl, al
add esp, 0xc
mov byte [ebp - 0x1d], bl
test edi, edi
je 0x40e1d1
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 0x40e63c
test bl, bl
jne 0x40e59e
cmp word [ebp - 0x3c], 0
jne 0x40e59e
mov eax, 1
cmp dword [ebp - 0x44], eax
jne 0x40e250
cmp dword [ebp - 0x10], eax
je 0x40e63c
cmp dword [ebp + 0x14], 0
je 0x40e234
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 edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40e772
movzx eax, word [esi]
push eax
mov eax, dword [ebp - 0x24]
call fcn.0040ef50
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40e772
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.00412490
add esp, 8
mov byte [ebp - 0x1d], al
test al, al
je 0x40e453
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40e28e
cmp dword [ebp - 0x10], edi
jne 0x40e289
mov byte [ebp - 9], al
jmp 0x40e28e
call fcn.0040d4e0
cmp dword [0x4c9f28], 0
je 0x40e2a2
mov bl, byte [0x4c73e7]
jmp 0x40e394
cmp dword [0x4c85f8], 0
je 0x40e2b6
mov bl, byte [0x4c84c5]
jmp 0x40e394
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e2d1
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40e2e5
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e2f9
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40e30d
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e321
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40e335
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e346
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40e357
or bl, 0x80
cmp dword [0x4c85f8], 0
je 0x40e394
mov al, bl
not al
and al, byte [0x4c84c5]
je 0x40e394
mov cl, byte [0x4c84c7]
not al
and byte [0x4c84c5], al
and byte [0x4c84c6], al
and cl, al
mov al, cl
mov byte [0x4c84c7], cl
mov ecx, 0x4c84e8
call fcn.00411af0
mov eax, dword [ebp - 8]
push 0
push 0
push edi
push ebx
push eax
mov esi, 0xffc3d44d
call fcn.004112f0
mov eax, dword [ebp - 0x24]
add esp, 0x14
test eax, eax
jle 0x40e63c
mov ebx, dword [ebp - 0x1d]
mov edi, eax
jmp 0x40e3c0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
push 0xffc3d44d
push 1
push ecx
push 0
push ebx
push edx
call fcn.0040f460
add esp, 0x18
cmp dword [0x4c9f28], 0
jne 0x40e43f
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4cb134]
mov ecx, dword [0x4c48ec]
cmp eax, dword [ecx + 0xd8]
jbe 0x40e43f
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 0x40e438
push 1
push 0xffffffffffffffff
mov dword [0x4c48b4], 0
call fcn.00401360
add esp, 8
mov dword [0x4c48b4], 1
call esi
mov dword [0x4cb134], eax
dec edi
jne 0x40e3c0
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40e772
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebp + 8]
cmp ebx, 4
jbe 0x40e4ce
push 4
push str.ASC
push edi
call fcn.0048e247
add esp, 0xc
test eax, eax
jne 0x40e4ce
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x40e4d1
lea eax, [edi + 6]
call fcn.004096c0
mov edi, eax
call fcn.0040f060
cmp dword [0x4c9f28], 2
jne 0x40e4af
mov eax, dword [0x4c48ec]
mov eax, dword [eax + 0x60]
push eax
call fcn.00410ef0
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40e772
mov ecx, dword [0x4c48ec]
mov eax, dword [ecx + 0x5c]
push eax
call fcn.00410ef0
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40e772
mov esi, dword [ebp + 0x14]
cmp ebx, 2
jbe 0x40e63c
push 2
push 0x4a48ec
push edi
call fcn.0048e247
add esp, 0xc
test eax, eax
jne 0x40e63c
push 0x10
push eax
add edi, 4
push edi
call fcn.0048f02b
add esp, 0xc
movzx ecx, ax
test esi, esi
je 0x40e519
push 0
push ecx
push 0x102
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40e557
cmp dword [0x4c9f28], 2
je 0x40e537
movzx edx, byte [ebp - 8]
movzx eax, byte [ebp - 1]
or eax, edx
push ecx
call fcn.0040d560
add esp, 4
jmp 0x40e557
push 0xa
lea edx, [ebp - 0x72]
push edx
mov eax, 0x30
push ecx
mov word [ebp - 0x74], ax
call fcn.0048d775
add esp, 0xc
lea edi, [ebp - 0x74]
call fcn.0040f060
cmp dword [0x4c9f28], 2
jne 0x40e57f
mov ecx, dword [0x4c48ec]
mov eax, dword [ecx + 0x60]
push eax
call fcn.00410ef0
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40e772
mov edx, dword [0x4c48ec]
mov eax, dword [edx + 0x5c]
push eax
call fcn.00410ef0
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40e772
mov esi, dword [ebp - 0x3c]
xor ecx, ecx
mov edx, esi
mov al, bl
call fcn.00411bc0
mov byte [ebp - 0x14], al
test al, al
je 0x40e60d
cmp dword [ebp + 0x14], 0
jne 0x40e60d
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x40e5d3
mov byte [ebp - 9], bl
cmp byte [ebp - 0x19], cl
je 0x40e5ce
or byte [0x4c9ed1], al
or byte [ebp - 8], al
jmp 0x40e60d
cmp ecx, 1
jne 0x40e60d
mov al, bl
call fcn.0040d4e0
mov al, byte [ebp - 0x14]
mov cl, byte [0x4c9ed1]
not al
and byte [ebp - 3], al
and cl, al
mov byte [0x4c9ed1], cl
cmp bl, 0xa5
jne 0x40e607
cmp dword [0x4c7400], 3
jne 0x40e607
and byte [ebp - 3], 0xfe
or cl, byte [ebp - 3]
mov byte [ebp - 8], cl
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push 0
push SysReAllocString
push SysReAllocString
push eax
mov eax, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x1d]
push edx
push eax
push esi
push ecx
mov ecx, dword [ebp - 0x24]
mov al, byte [ebp - 1]
call fcn.0040ebb0
add esp, 0x24
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
mov esi, edx
jmp 0x40e772
mov ax, word [esi]
mov word [ebp - 0x2c], ax
test ax, ax
je 0x40e701
cmp word [ebp - 0x2a], 0
jne 0x40e679
mov ecx, dword [0x4c7404]
mov eax, dword [ebp - 0x2c]
lea esi, [ebp - 1]
call fcn.00412410
mov esi, dword [ebp + 8]
jmp 0x40e703
movzx esi, ax
test esi, 0xffffff80
jne 0x40e696
push 2
push esi
call fcn.0048ec4e
add esp, 8
test eax, eax
je 0x40e696
and esi, 0xffffffdf
cmp si, 0x56
jne 0x40e6d5
movzx esi, word [ebp - 0x2a]
test esi, 0xffffff80
jne 0x40e6ba
push 2
push esi
call fcn.0048ec4e
add esp, 8
test eax, eax
je 0x40e6ba
and esi, 0xffffffdf
cmp si, 0x4b
jne 0x40e6d5
push 0x10
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.0048f02b
mov esi, dword [ebp + 8]
add esp, 0xc
jmp 0x40e703
xor esi, esi
jmp 0x40e6e0
mov edx, dword [esi*8 + 0x4c56f8]
lea ecx, [ebp - 0x2c]
push ecx
push edx
call fcn.0048d9f9
add esp, 8
test eax, eax
je 0x40e73d
inc esi
cmp esi, 0x6d
jl 0x40e6e0
mov esi, dword [ebp + 8]
xor al, al
mov byte [ebp - 0x34], al
mov byte [ebp - 0x1d], al
test al, al
mov eax, dword [ebp + 0x14]
je 0x40e749
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x34]
push 0
push SysReAllocString
push SysReAllocString
push eax
mov al, byte [ebp - 1]
push 0
push 2
push ecx
push 0
push edx
mov ecx, 1
call fcn.0040ebb0
add esp, 0x24
jmp 0x40e772
mov al, byte [esi*8 + 0x4c56fc]
mov esi, dword [ebp + 8]
jmp 0x40e703
test eax, eax
je 0x40e761
movzx ecx, word [esi]
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40e772
movzx edx, word [esi]
push edx
mov eax, 1
call fcn.0040ef50
add esp, 4
mov byte [ebp - 1], 0
mov al, byte [ebp - 9]
add esi, 2
cmp word [esi], 0
mov dword [ebp + 8], esi
mov byte [0x4c9ed0], al
jne 0x40ddb6
mov edi, dword [0x4c9f28]
test edi, edi
je 0x40e854
cmp byte [0x4c73e5], 0
mov dword [ebp - 0x14], 0xffffffff
jne 0x40e80b
cmp dword [0x4c73f8], 0
jbe 0x40e80b
cmp byte [0x4c73df], 0
je 0x40e7c2
xor eax, eax
jmp 0x40e7ce
movzx eax, byte [ebp - 0xa]
movzx ecx, byte [ebp - 2]
not eax
and eax, ecx
or al, byte [ebp - 8]
movzx edx, byte [0x4c73e7]
mov ebx, 1
push ebx
push ebx
mov byte [ebp + 8], al
mov edi, dword [ebp + 8]
push 0
push edx
push edi
mov esi, 0xffc3d44d
call fcn.004112f0
add esp, 0x14
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00410da0
mov edi, dword [0x4c9f28]
add esp, 8
jmp 0x40e810
mov ebx, 1
sub edi, ebx
neg edi
sbb edi, edi
and edi, 0x3e8
add edi, 0x1f4
cmp dword [0x4c73f4], edi
jbe 0x40e839
mov ecx, dword [0x4c73fc]
push ecx
call fcn.0048f05f
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
mov dword [0x4c9f28], 0
call fcn.00410ef0
add esp, 4
jmp 0x40e9cf
cmp dword [0x4c85f8], 0
je 0x40e865
mov cl, byte [0x4c84c7]
jmp 0x40e889
cmp dword [0x4c48ac], 0
jl 0x40e886
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4cb0f8]
cmp eax, dword [0x4c48ac]
jb 0x40e886
xor cl, cl
jmp 0x40e889
mov cl, byte [ebp - 2]
cmp byte [0x4c73df], 0
je 0x40e8ab
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 0x40e8b8
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 8]
mov byte [ebp + 8], al
cmp dword [0x4c85f8], 0
je 0x40e8ce
mov al, byte [0x4c84c5]
mov byte [ebp - 0x14], al
jmp 0x40e9af
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e8e9
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40e8fd
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e911
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40e925
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e939
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40e94d
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e95e
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40e96f
or bl, 0x80
cmp dword [0x4c85f8], 0
je 0x40e9ac
mov al, bl
not al
and al, byte [0x4c84c5]
je 0x40e9ac
mov cl, byte [0x4c84c7]
not al
and byte [0x4c84c5], al
and byte [0x4c84c6], al
and cl, al
mov al, cl
mov byte [0x4c84c7], cl
mov ecx, 0x4c84e8
call fcn.00411af0
mov byte [ebp - 0x14], bl
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov ebx, 1
push ebx
push ebx
push eax
push ecx
push edx
mov esi, 0xffc3d44d
call fcn.004112f0
add esp, 0x14
cmp dword [0x4c85f8], 0
je 0x40e9f0
mov al, byte [0x4c84c6]
mov cl, al
xor cl, byte [0x4c84c5]
and cl, al
not cl
and al, cl
mov byte [0x4c84c6], al
cmp dword [ebp - 0x40], ebx
jne 0x40ea70
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x40ea70
push 0x14
call esi
mov edx, 0x8000
test dx, ax
je 0x40ea27
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push ebx
call fcn.0040f460
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push 2
call fcn.0040f460
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ca5dc]
jne 0x40ea70
push ebx
push 0xffffffffffffffff
mov dword [0x4c48b4], 0
call fcn.00401360
add esp, 8
mov dword [0x4c48b4], ebx
cmp byte [ebp - 0xb], 0
je 0x40ea89
mov eax, dword [ebp - 0x54]
mov ecx, dword [0x4ca5dc]
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 4], 0
je 0x40ead6
cmp byte [ebp - 0x25], 0
jne 0x40ead6
test byte [0x4cbb90], 1
jne 0x40eac2
or dword [0x4cbb90], 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 [0x4cbb8c], eax
jmp 0x40eac7
mov eax, dword [0x4cbb8c]
test eax, eax
je 0x40eacf
push 0
call eax
mov byte [0x4c8ed4], 0
cmp dword [ebp + 0x10], ebx
jne 0x40eb0d
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ca5dc]
jne 0x40eb0d
push ebx
push 0xffffffffffffffff
mov dword [0x4c48b4], 0
call fcn.00401360
add esp, 8
mov dword [0x4c48b4], ebx
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
mov dword [eax + 0x5c], edx
mov dword [eax + 0x64], ecx
lea esp, [ebp - 0xa0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret