Function at 0x40d280
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 0x40e413
mov bl, byte [ebp + 0xc]
mov esi, dword [0x4be40c]
mov dword [ebp - 0x3c], esi
test bl, bl
jne 0x40d31b
push 7
push str.Blind
push edi
call fcn.00489652
add esp, 0xc
test eax, eax
jne 0x40d31b
add edi, 0xe
mov byte [0x4c0de7], 1
mov dword [ebp + 8], edi
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], ecx
cmp eax, 1
je 0x40d2e3
cmp eax, 3
jne 0x40d351
cmp dword [0x4c4e7c], 0
je 0x40d327
call fcn.00408990
test al, al
jne 0x40d324
test bl, bl
jne 0x40d312
call fcn.004089f0
test al, al
je 0x40d312
mov eax, str.Click
mov ecx, edi
call fcn.00470450
test eax, eax
jne 0x40d324
mov dword [ebp + 0x10], 1
jmp 0x40d351
mov byte [0x4c0de7], 0
jmp 0x40d2ca
mov eax, dword [ebp + 0x10]
cmp eax, 3
jne 0x40d335
mov dword [ebp + 0x10], 2
jmp 0x40d351
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40d347
cmp dword [esi + 0x64], eax
jge 0x40d347
or eax, 0xffffffff
mov dword [esi + 0x64], eax
mov dword [esi + 0x5c], 0xffffffff
mov esi, dword [ebp + 0x14]
xor edi, edi
mov byte [ebp - 0xb], 0
test esi, esi
je 0x40d3a9
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov dword [ebp - 0x60], ebx
test ebx, ebx
je 0x40d4aa
cmp ebx, dword [0x4c3fe4]
je 0x40d4aa
call fcn.004749b0
test al, al
jne 0x40d4aa
mov edx, dword [0x4c3fe4]
push 1
push ebx
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xb]
mov edi, ebx
jmp 0x40d4aa
test byte [0x4c4ac2], 0xc0
je 0x40d495
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c4ab8]
cmp eax, 0x32
jae 0x40d495
cmp dword [ebp + 0x10], 2
je 0x40d495
cmp byte [0x4c0de7], 0
jne 0x40d495
cmp byte [0x4c4e66], 0
je 0x40d495
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4c3fe4]
jne 0x40d495
mov eax, dword [ebp + 8]
test bl, bl
mov ebx, 0x49f864
je 0x40d463
call fcn.00409140
test eax, eax
setne al
test al, al
je 0x40d495
jmp 0x40d420
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
jne 0x40d442
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40d495
push 1
push 0x8000012f
mov dword [0x4be3d4], edi
call fcn.004012b0
add esp, 8
mov dword [0x4be3d4], 1
jmp 0x40d420
call fcn.00409140
test eax, eax
je 0x40d495
lea esp, [esp]
add eax, 2
mov ebx, 0x49f86c
call fcn.00409140
test eax, eax
je 0x40d420
cmp word [eax], 0x7b
je 0x40d420
mov ebx, 0x49f864
call fcn.00409140
test eax, eax
jne 0x40d470
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x40d4aa
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4c0e0c], eax
push eax
xor eax, eax
call fcn.004118e0
add esp, 4
push 1
mov dword [0x4c0e08], eax
call fcn.00411340
add esp, 4
cmp dword [0x4c1ff8], 0
mov bl, al
mov byte [ebp - 4], bl
je 0x40d4fa
mov cl, byte [0x4c1ec5]
mov dl, byte [0x4c1ec7]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 0xa], cl
jmp 0x40d525
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c4ab8]
cmp eax, dword [0x4be3cc]
jae 0x40d51a
mov al, byte [0x4c4ac2]
and al, bl
mov byte [ebp - 2], al
jmp 0x40d521
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4c38d8]
not al
and al, bl
and cl, al
mov al, byte [0x4c0de7]
mov byte [0x4c38d8], cl
test al, al
je 0x40d54c
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 8], bl
jmp 0x40d553
mov byte [ebp - 3], 0
mov byte [ebp - 8], cl
mov ecx, dword [ebp - 0x3c]
cmp byte [ecx + 0xef], 0
je 0x40d62c
test al, al
jne 0x40d62c
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call edi
and al, 1
movsx esi, al
neg esi
sbb esi, esi
add esi, 2
cmp esi, 2
jne 0x40d58e
mov dword [ebp - 0x38], esi
jmp 0x40d633
push 0xffc3d44d
push 0
push 0
push 0
push 0x14
push 2
call fcn.0040ed40
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c3fe4]
sete bl
test bl, bl
je 0x40d5e1
push 1
push 0xffffffffffffffff
mov dword [0x4be3d4], 0
call fcn.004012b0
add esp, 8
mov dword [0x4be3d4], 1
push 0x14
call edi
test al, 1
je 0x40d624
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push 2
call fcn.0040ed40
add esp, 0x18
test bl, bl
je 0x40d624
push 1
push 0xffffffffffffffff
mov dword [0x4be3d4], 0
call fcn.004012b0
add esp, 8
mov dword [0x4be3d4], 1
mov bl, byte [ebp - 4]
mov dword [ebp - 0x38], esi
jmp 0x40d633
mov dword [ebp - 0x38], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4c3930], esi
test esi, esi
je 0x40d6a5
cmp esi, 1
jne 0x40d656
mov eax, 0x36b0
mov dword [0x4c0dfc], 0x1f4
jmp 0x40d665
mov eax, 0x2ee0
mov dword [0x4c0dfc], 0x5dc
call fcn.00490220
mov eax, esp
mov dword [0x4c0e04], eax
mov eax, SysReAllocString
mov byte [0x4c0def], bl
mov dword [0x4c0df0], eax
mov dword [0x4c0df4], eax
mov byte [0x4c0dee], 0
mov dword [0x4c0e00], 0
mov byte [0x4c0ded], 0
mov byte [0x4c0dec], 1
mov eax, dword [0x4be4e8]
mov dl, byte [0x4c26cb]
mov byte [ebp - 0x19], dl
cmp eax, 8
je 0x40d6bd
cmp eax, 0xa
jne 0x40d6f8
test esi, esi
jne 0x40d6f8
cmp dword [ebp + 0x14], esi
jne 0x40d6f8
test byte [0x4c5720], 1
mov byte [ebp - 4], 1
jne 0x40d6fe
or dword [0x4c5720], 1
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c571c], eax
jmp 0x40d703
mov byte [ebp - 4], 0
jmp 0x40d712
mov eax, dword [0x4c571c]
test eax, eax
je 0x40d70b
push 1
call eax
mov byte [0x4c26cb], 1
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x2a], ax
mov byte [ebp - 1], 0
cmp word [ecx], ax
je 0x40e0cd
cmp dword [0x4c3930], 0
mov byte [ebp - 9], 0
jne 0x40d791
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4c4afc]
mov edx, dword [0x4be40c]
cmp eax, dword [edx + 0xd4]
jbe 0x40d791
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40d78a
push 1
push 0xffffffffffffffff
mov dword [0x4be3d4], 0
call fcn.004012b0
add esp, 8
mov dword [0x4be3d4], 1
call esi
mov dword [0x4c4afc], eax
cmp byte [ebp + 0xc], 0
mov edi, dword [ebp + 8]
jne 0x40df97
movzx ecx, word [edi]
push ecx
push str._
call fcn.00489be1
add esp, 8
test eax, eax
je 0x40df97
movzx eax, word [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40d7cd.34
movzx edx, byte [eax + 0x40e43c]
jmp dword [edx*4 + 0x40e420]
test byte [ebp - 8], 3
jne case.0x40d7cd.34
or byte [ebp - 1], 1
jmp case.0x40d7cd.34
test byte [ebp - 8], 0x30
jne case.0x40d7cd.34
or byte [ebp - 1], 0x10
jmp case.0x40d7cd.34
test byte [ebp - 8], 0xc
jne case.0x40d7cd.34
or byte [ebp - 1], 4
jmp case.0x40d7cd.34
cmp byte [0x4c4adf], 0
jne case.0x40d7cd.34
test byte [ebp - 8], 0xc0
jne case.0x40d7cd.34
or byte [ebp - 1], 0x40
jmp case.0x40d7cd.34
mov ebx, dword [ebp + 8]
add ebx, 2
push 0x7d
push ebx
call fcn.00489be1
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
test esi, esi
je case.0x40d7cd.34
mov eax, ebx
call fcn.00409190
mov edi, eax
mov ebx, esi
sub ebx, edi
sar ebx, 1
mov dword [ebp + 8], edi
mov dword [ebp - 0x28], ebx
jne 0x40d8e6
movzx ecx, word [esi + 2]
lea eax, [esi + 2]
cmp ecx, 0x7d
jne 0x40d87e
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 1
jmp 0x40d8e0
cmp ecx, 0x20
je 0x40d88c
cmp ecx, 9
jne 0x40df8c
call fcn.00409190
push 4
mov esi, eax
push str.Down
push esi
call fcn.00489652
add esp, 0xc
test eax, eax
je 0x40d8bf
push 2
push 0x49cd18
push esi
call fcn.00489652
add esp, 0xc
test eax, eax
jne 0x40df8c
push 0x7d
push esi
call fcn.00489be1
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je case.0x40d7cd.34
sub eax, dword [ebp + 8]
mov edi, dword [ebp + 8]
sar eax, 1
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x18]
push 5
push 0x49e7c8
push edi
call fcn.00489652
add esp, 0xc
test eax, eax
jne 0x40d989
lea ecx, [ebp - 0x4c]
push ecx
mov word [esi], ax
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1d]
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x40]
push eax
lea eax, [edi + 0xa]
call fcn.00409190
call fcn.0040f4a0
mov ecx, 0x7d
mov word [esi], cx
mov ecx, dword [ebp - 0x24]
add esp, 0x18
cmp ecx, 1
jge 0x40d965
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [eax + 0xeb]
mov edx, dword [ebp - 0x4c]
push edx
push ecx
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x40]
call fcn.004100f0
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp + 8], edx
jmp 0x40e0ad
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x40]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 8]
push edx
mov edx, dword [ebp - 0x1d]
push 0
push eax
push 0
push edx
jmp 0x40df81
push 3
push 0x49f884
push edi
call fcn.00489652
add esp, 0xc
test eax, eax
jne 0x40d9ac
mov edx, dword [ebp - 0x18]
mov byte [ebp + 0xc], 1
mov dword [ebp + 8], edx
jmp 0x40e0ad
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov word [ecx], ax
mov esi, 2
mov dword [ebp - 0x48], ebx
mov ebx, 0x49f57c
mov eax, edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x24], 1
call fcn.00409140
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40da63
mov ecx, eax
movzx edx, word [ecx]
xor eax, eax
mov word [ecx], ax
mov eax, ecx
sub eax, edi
sar eax, 1
mov dword [ebp - 0x48], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x54], edx
call fcn.00409190
mov ecx, dword [ebp - 0x18]
mov ebx, eax
sub ecx, ebx
sar ecx, 1
je 0x40da63
push 4
push str.Down
push ebx
call fcn.00489652
add esp, 0xc
test eax, eax
jne 0x40da3a
push 4
push str.Temp
add ebx, 8
xor esi, esi
push ebx
mov dword [ebp - 0x10], esi
call fcn.00489652
add esp, 0xc
test eax, eax
setne byte [ebp - 0x1e]
jmp 0x40da63
push 0x49cd18
push ebx
call fcn.00488e19
add esp, 8
test eax, eax
jne 0x40da56
mov esi, 1
mov dword [ebp - 0x10], esi
jmp 0x40da63
mov esi, ebx
call fcn.0040cbe0
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
movzx eax, word [edi]
test ax, ax
je 0x40daa2
cmp word [edi + 2], 0
jne 0x40da85
mov ecx, dword [0x4c0e0c]
lea esi, [ebp - 1]
call fcn.00411c20
mov esi, dword [ebp - 0x10]
jmp 0x40daa4
xor ebx, ebx
mov edx, dword [ebx*8 + 0x4bf260]
push edi
push edx
call fcn.00488e19
add esp, 8
test eax, eax
je 0x40dab9
inc ebx
cmp ebx, 0x6d
jl 0x40da87
xor al, al
mov bl, al
mov byte [ebp - 0x1d], bl
test al, al
je 0x40dac2
mov dword [ebp - 0x30], 0
jmp 0x40db3e
mov al, byte [ebx*8 + 0x4bf264]
jmp 0x40daa4
mov eax, edi
call fcn.00411ac0
movzx eax, ax
mov dword [ebp - 0x30], eax
test ax, ax
jne 0x40db3e
mov ax, word [edi]
call fcn.00409110
cmp ax, 0x56
jne 0x40db3e
mov ax, word [edi + 2]
call fcn.00409110
cmp ax, 0x4b
jne 0x40db3e
lea eax, [edi + 4]
mov ebx, 0x49f898
call fcn.00409140
mov ebx, eax
test ebx, ebx
je 0x40db29
mov ax, word [ebx + 2]
call fcn.00409110
cmp ax, 0x43
jne 0x40db29
push 0x10
push 0
add ebx, 4
push ebx
call fcn.0048a43b
movzx eax, ax
add esp, 0xc
mov dword [ebp - 0x30], eax
push 0x10
lea eax, [edi + 4]
push 0
push eax
call fcn.0048a43b
mov bl, al
add esp, 0xc
mov byte [ebp - 0x1d], bl
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40db4c
mov cx, word [ebp - 0x54]
mov word [eax], cx
cmp dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x18]
mov edx, 0x7d
mov word [eax], dx
jl 0x40df8c
test bl, bl
jne 0x40def1
cmp word [ebp - 0x30], 0
jne 0x40def1
cmp dword [ebp - 0x48], 1
jne 0x40dbc3
cmp esi, 1
je 0x40df8c
cmp dword [ebp + 0x14], 0
je 0x40dba9
movzx ecx, word [edi]
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
jmp 0x40e0ad
movzx eax, word [edi]
push eax
mov eax, dword [ebp - 0x24]
call fcn.0040e840
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], edx
jmp 0x40e0ad
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
sete bl
push edx
call fcn.00411ca0
add esp, 8
mov byte [ebp - 0x1d], al
test al, al
je 0x40ddc1
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40dbfe
cmp dword [ebp - 0x10], edi
jne 0x40dbf9
mov byte [ebp - 9], al
jmp 0x40dbfe
call fcn.0040cdb0
cmp dword [0x4c3930], 0
je 0x40dc12
mov bl, byte [0x4c0def]
jmp 0x40dd04
cmp dword [0x4c1ff8], 0
je 0x40dc26
mov bl, byte [0x4c1ec5]
jmp 0x40dd04
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dc41
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40dc55
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dc69
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40dc7d
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dc91
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40dca5
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dcb6
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40dcc7
or bl, 0x80
cmp dword [0x4c1ff8], 0
je 0x40dd04
mov al, bl
not al
and al, byte [0x4c1ec5]
je 0x40dd04
mov cl, byte [0x4c1ec7]
not al
and byte [0x4c1ec5], al
and byte [0x4c1ec6], al
and cl, al
mov al, cl
mov byte [0x4c1ec7], cl
mov ecx, 0x4c1ee8
call fcn.00411440
mov eax, dword [ebp - 8]
push 0
push 0
push edi
push ebx
push eax
mov eax, 0xffc3d44d
call fcn.00410c40
mov eax, dword [ebp - 0x24]
add esp, 0x14
test eax, eax
jle 0x40df8c
mov ebx, dword [ebp - 0x1d]
mov edi, eax
jmp 0x40dd30
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
push 0xffc3d44d
push 1
push ecx
push 0
push ebx
push edx
call fcn.0040ed40
add esp, 0x18
cmp dword [0x4c3930], 0
jne 0x40ddaf
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4c4afc]
mov ecx, dword [0x4be40c]
cmp eax, dword [ecx + 0xd4]
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 [0x4be3d4], 0
call fcn.004012b0
add esp, 8
mov dword [0x4be3d4], 1
call esi
mov dword [0x4c4afc], eax
dec edi
jne 0x40dd30
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e0ad
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp + 8]
cmp edi, 4
jbe 0x40de2c
push 4
push str.ASC
push esi
call fcn.00489652
add esp, 0xc
test eax, eax
jne 0x40de2c
cmp dword [ebp + 0x14], eax
jne 0x40de2c
lea eax, [esi + 6]
call fcn.00409190
call fcn.0040e940
cmp dword [0x4c3930], 2
jne 0x40de13
mov eax, dword [0x4be40c]
mov esi, dword [eax + 0x60]
call fcn.00410860
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e0ad
mov ecx, dword [0x4be40c]
mov esi, dword [ecx + 0x5c]
call fcn.00410860
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e0ad
mov ebx, 2
cmp edi, ebx
jbe 0x40df8c
push ebx
push 0x49f8ac
push esi
call fcn.00489652
add esp, 0xc
test eax, eax
jne 0x40df8c
push 0x10
push eax
add esi, 4
push esi
call fcn.0048a43b
movzx ecx, ax
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x40de7a
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40deb7
cmp dword [0x4c3930], ebx
je 0x40de97
movzx edx, byte [ebp - 8]
movzx eax, byte [ebp - 1]
or eax, edx
push ecx
call fcn.0040ce30
add esp, 4
jmp 0x40deb7
push 0xa
lea edx, [ebp - 0x72]
push edx
mov eax, 0x30
push ecx
mov word [ebp - 0x74], ax
call fcn.00488b95
add esp, 0xc
lea eax, [ebp - 0x74]
call fcn.0040e940
cmp dword [0x4c3930], ebx
jne 0x40ded8
mov ecx, dword [0x4be40c]
mov esi, dword [ecx + 0x60]
call fcn.00410860
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e0ad
mov edx, dword [0x4be40c]
mov esi, dword [edx + 0x5c]
call fcn.00410860
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e0ad
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov al, bl
call fcn.00411510
mov byte [ebp - 0x14], al
test al, al
je 0x40df5c
cmp dword [ebp + 0x14], 0
jne 0x40df5c
test esi, esi
jne 0x40df22
cmp byte [ebp - 0x1e], 0
mov byte [ebp - 9], bl
je 0x40df1d
or byte [0x4c38d8], al
or byte [ebp - 8], al
jmp 0x40df5c
cmp esi, 1
jne 0x40df5c
mov al, bl
call fcn.0040cdb0
mov al, byte [ebp - 0x14]
mov cl, byte [0x4c38d8]
not al
and byte [ebp - 3], al
and cl, al
mov byte [0x4c38d8], cl
cmp bl, 0xa5
jne 0x40df56
cmp dword [0x4c0e08], 3
jne 0x40df56
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 - 8]
push 0
push SysReAllocString
push SysReAllocString
push eax
mov eax, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1d]
push edx
push eax
push ecx
mov ecx, dword [ebp - 0x24]
mov edi, esi
mov al, byte [ebp - 1]
call fcn.0040e4a0
add esp, 0x20
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e0ad
mov ax, word [edi]
mov word [ebp - 0x2c], ax
test ax, ax
je 0x40e03e
cmp word [ebp - 0x2a], 0
jne 0x40dfc4
mov ecx, dword [0x4c0e0c]
mov eax, dword [ebp - 0x2c]
lea esi, [ebp - 1]
call fcn.00411c20
jmp 0x40e040
movzx ebx, ax
test ebx, 0xffffff80
jne 0x40dfe1
push 2
push ebx
call fcn.0048a05e
add esp, 8
test eax, eax
je 0x40dfe1
and ebx, 0xffffffdf
cmp bx, 0x56
jne 0x40e01d
movzx ebx, word [ebp - 0x2a]
test ebx, 0xffffff80
jne 0x40e005
push 2
push ebx
call fcn.0048a05e
add esp, 8
test eax, eax
je 0x40e005
and ebx, 0xffffffdf
cmp bx, 0x4b
jne 0x40e01d
push 0x10
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.0048a43b
add esp, 0xc
jmp 0x40e040
xor ebx, ebx
nop
mov edx, dword [ebx*8 + 0x4bf260]
lea ecx, [ebp - 0x2c]
push ecx
push edx
call fcn.00488e19
add esp, 8
test eax, eax
je 0x40e07b
inc ebx
cmp ebx, 0x6d
jl 0x40e020
xor al, al
mov byte [ebp - 0x34], al
mov byte [ebp - 0x1d], al
test al, al
mov eax, dword [ebp + 0x14]
je 0x40e084
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 ecx
mov edi, 2
push 0
push edx
lea ecx, [edi - 1]
call fcn.0040e4a0
add esp, 0x20
jmp 0x40e0ad
mov al, byte [ebx*8 + 0x4bf264]
jmp 0x40e040
test eax, eax
je 0x40e09c
movzx ecx, word [edi]
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40e0ad
movzx edx, word [edi]
push edx
mov eax, 1
call fcn.0040e840
add esp, 4
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 9]
add eax, 2
cmp word [eax], 0
mov dword [ebp + 8], eax
mov byte [0x4c2917], cl
jne 0x40d728
cmp dword [0x4c3930], 0
je 0x40e17e
cmp byte [0x4c0ded], 0
mov dword [ebp - 0x14], 0xffffffff
jne 0x40e13e
cmp dword [0x4c0e00], 0
jbe 0x40e13e
cmp byte [0x4c0de7], 0
je 0x40e100
xor eax, eax
jmp 0x40e10c
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 2]
not eax
and eax, edx
or al, byte [ebp - 8]
push 1
mov byte [ebp + 8], al
movzx eax, byte [0x4c0def]
mov esi, dword [ebp + 8]
push 1
push 0
push eax
push esi
mov eax, 0xffc3d44d
call fcn.00410c40
add esp, 0x14
lea ecx, [ebp - 0x14]
push esi
push ecx
call fcn.00410710
add esp, 8
mov eax, dword [0x4c3930]
dec eax
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4c0dfc], eax
jbe 0x40e169
mov edx, dword [0x4c0e04]
push edx
call fcn.0048a46f
add esp, 4
mov esi, dword [ebp - 0x14]
xor edi, edi
mov dword [0x4c3930], edi
call fcn.00410860
jmp 0x40e2f8
cmp dword [0x4c1ff8], 0
je 0x40e18f
mov cl, byte [0x4c1ec7]
jmp 0x40e1b3
cmp dword [0x4be3cc], 0
jl 0x40e1b0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c4ab8]
cmp eax, dword [0x4be3cc]
jb 0x40e1b0
xor cl, cl
jmp 0x40e1b3
mov cl, byte [ebp - 2]
cmp byte [0x4c0de7], 0
je 0x40e1d5
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 0x40e1e2
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 8]
mov byte [ebp + 8], al
cmp dword [0x4c1ff8], 0
je 0x40e1f8
mov al, byte [0x4c1ec5]
mov byte [ebp - 0x14], al
jmp 0x40e2d9
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e213
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40e227
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e23b
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40e24f
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e263
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40e277
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e288
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40e299
or bl, 0x80
cmp dword [0x4c1ff8], 0
je 0x40e2d6
mov al, bl
not al
and al, byte [0x4c1ec5]
je 0x40e2d6
mov cl, byte [0x4c1ec7]
not al
and byte [0x4c1ec5], al
and byte [0x4c1ec6], al
and cl, al
mov al, cl
mov byte [0x4c1ec7], cl
mov ecx, 0x4c1ee8
call fcn.00411440
mov byte [ebp - 0x14], bl
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 1
push 1
push eax
push ecx
push edx
mov eax, 0xffc3d44d
call fcn.00410c40
add esp, 0x14
xor edi, edi
cmp dword [0x4c1ff8], edi
je 0x40e318
mov al, byte [0x4c1ec6]
mov cl, al
xor cl, byte [0x4c1ec5]
and cl, al
not cl
and al, cl
mov byte [0x4c1ec6], al
mov esi, 1
cmp dword [ebp - 0x38], esi
jne 0x40e36f
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
jne 0x40e36f
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.0040ed40
add esp, 0x18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c3fe4]
jne 0x40e36f
push esi
push 0xffffffffffffffff
mov dword [0x4be3d4], edi
call fcn.004012b0
add esp, 8
mov dword [0x4be3d4], esi
cmp byte [ebp - 0xb], 0
je 0x40e386
mov edx, dword [ebp - 0x60]
mov eax, dword [0x4c3fe4]
push edi
push edx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 4], 0
je 0x40e3d2
cmp byte [ebp - 0x19], 0
jne 0x40e3d2
test byte [0x4c5720], 1
jne 0x40e3bf
or dword [0x4c5720], esi
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c571c], eax
jmp 0x40e3c4
mov eax, dword [0x4c571c]
cmp eax, edi
je 0x40e3cb
push edi
call eax
mov byte [0x4c26cb], 0
cmp dword [ebp + 0x10], esi
jne 0x40e404
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c3fe4]
jne 0x40e404
push esi
push 0xffffffffffffffff
mov dword [0x4be3d4], edi
call fcn.004012b0
add esp, 8
mov dword [0x4be3d4], esi
mov eax, dword [ebp - 0x3c]
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