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 0x40e403
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.00489302
add esp, 0xc
test eax, eax
jne 0x40d31b
add edi, 0xe
mov byte [0x4c0d67], 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 [0x4c4dfc], 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.00470140
test eax, eax
jne 0x40d324
mov dword [ebp + 0x10], 1
jmp 0x40d351
mov byte [0x4c0d67], 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 [0x4c3f64]
je 0x40d4aa
call fcn.004746a0
test al, al
jne 0x40d4aa
mov edx, dword [0x4c3f64]
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 [0x4c4a42], 0xc0
je 0x40d495
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x4c4a38]
cmp eax, 0x32
jae 0x40d495
cmp dword [ebp + 0x10], 2
je 0x40d495
cmp byte [0x4c0d67], 0
jne 0x40d495
cmp byte [0x4c4de6], 0
je 0x40d495
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp eax, dword [0x4c3f64]
jne 0x40d495
mov eax, dword [ebp + 8]
test bl, bl
mov ebx, 0x49f7bc
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, 0x49f7c4
call fcn.00409140
test eax, eax
je 0x40d420
cmp word [eax], 0x7b
je 0x40d420
mov ebx, 0x49f7bc
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 [0x4c0d8c], eax
push eax
xor eax, eax
call fcn.004118d0
add esp, 4
push 1
mov dword [0x4c0d88], eax
call fcn.00411330
add esp, 4
cmp dword [0x4c1f78], 0
mov bl, al
mov byte [ebp - 4], bl
je 0x40d4fa
mov cl, byte [0x4c1e45]
mov dl, byte [0x4c1e47]
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 [0x4c4a38]
cmp eax, dword [0x4be3cc]
jae 0x40d51a
mov al, byte [0x4c4a42]
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 [0x4c3858]
not al
and al, bl
and cl, al
mov al, byte [0x4c0d67]
mov byte [0x4c3858], 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.0040ed30
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c3f64]
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.0040ed30
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 [0x4c38b0], esi
test esi, esi
je 0x40d6a5
cmp esi, 1
jne 0x40d656
mov eax, 0x36b0
mov dword [0x4c0d7c], 0x1f4
jmp 0x40d665
mov eax, 0x2ee0
mov dword [0x4c0d7c], 0x5dc
call fcn.0048fed0
mov eax, esp
mov dword [0x4c0d84], eax
mov eax, SysReAllocString
mov byte [0x4c0d6f], bl
mov dword [0x4c0d70], eax
mov dword [0x4c0d74], eax
mov byte [0x4c0d6e], 0
mov dword [0x4c0d80], 0
mov byte [0x4c0d6d], 0
mov byte [0x4c0d6c], 1
mov eax, dword [0x4be4e8]
mov dl, byte [0x4c264b]
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 [0x4c56a0], 1
mov byte [ebp - 4], 1
jne 0x40d6fe
or dword [0x4c56a0], 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 [0x4c569c], eax
jmp 0x40d703
mov byte [ebp - 4], 0
jmp 0x40d712
mov eax, dword [0x4c569c]
test eax, eax
je 0x40d70b
push 1
call eax
mov byte [0x4c264b], 1
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x2a], ax
mov byte [ebp - 1], 0
cmp word [ecx], ax
je 0x40e0bd
cmp dword [0x4c38b0], 0
mov byte [ebp - 9], 0
jne 0x40d791
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
sub eax, dword [0x4c4a7c]
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 [0x4c4a7c], eax
cmp byte [ebp + 0xc], 0
mov edi, dword [ebp + 8]
jne 0x40df8b
movzx ecx, word [edi]
push ecx
push 0x49f7cc
call fcn.00489891
add esp, 8
test eax, eax
je 0x40df8b
movzx eax, word [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40d7cd.34
movzx edx, byte [eax + 0x40e42c]
jmp dword [edx*4 + 0x40e410]
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
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.00489891
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 0x40d8d9
movzx ecx, word [esi + 2]
lea eax, [esi + 2]
cmp ecx, 0x7d
jne 0x40d871
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 1
jmp 0x40d8d3
cmp ecx, 0x20
je 0x40d87f
cmp ecx, 9
jne 0x40df80
call fcn.00409190
push 4
mov esi, eax
push str.Down
push esi
call fcn.00489302
add esp, 0xc
test eax, eax
je 0x40d8b2
push 2
push 0x49cd18
push esi
call fcn.00489302
add esp, 0xc
test eax, eax
jne 0x40df80
push 0x7d
push esi
call fcn.00489891
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 0x49e720
push edi
call fcn.00489302
add esp, 0xc
test eax, eax
jne 0x40d97c
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.0040f490
mov ecx, 0x7d
mov word [esi], cx
mov ecx, dword [ebp - 0x24]
add esp, 0x18
cmp ecx, 1
jge 0x40d958
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.004100e0
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp + 8], edx
jmp 0x40e09d
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 0x40df75
push 3
push 0x49f7dc
push edi
call fcn.00489302
add esp, 0xc
test eax, eax
jne 0x40d99f
mov edx, dword [ebp - 0x18]
mov byte [ebp + 0xc], 1
mov dword [ebp + 8], edx
jmp 0x40e09d
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov word [ecx], ax
mov esi, 2
mov dword [ebp - 0x48], ebx
mov ebx, 0x49f4d4
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 0x40da56
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 0x40da56
push 4
push str.Down
push ebx
call fcn.00489302
add esp, 0xc
test eax, eax
jne 0x40da2d
push 4
push str.Temp
add ebx, 8
xor esi, esi
push ebx
mov dword [ebp - 0x10], esi
call fcn.00489302
add esp, 0xc
test eax, eax
setne byte [ebp - 0x1e]
jmp 0x40da56
push 0x49cd18
push ebx
call fcn.00488ac9
add esp, 8
test eax, eax
jne 0x40da49
mov esi, 1
mov dword [ebp - 0x10], esi
jmp 0x40da56
mov esi, ebx
call fcn.0040cbe0
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
movzx eax, word [edi]
test ax, ax
je 0x40da9b
cmp word [edi + 2], 0
jne 0x40da78
mov ecx, dword [0x4c0d8c]
lea esi, [ebp - 1]
call fcn.00411c10
mov esi, dword [ebp - 0x10]
jmp 0x40da9d
xor ebx, ebx
lea ebx, [ebx]
mov edx, dword [ebx*8 + 0x4bf1f0]
push edi
push edx
call fcn.00488ac9
add esp, 8
test eax, eax
je 0x40dab2
inc ebx
cmp ebx, 0x6d
jl 0x40da80
xor al, al
mov bl, al
mov byte [ebp - 0x1d], bl
test al, al
je 0x40dabb
mov dword [ebp - 0x30], 0
jmp 0x40db37
mov al, byte [ebx*8 + 0x4bf1f4]
jmp 0x40da9d
mov eax, edi
call fcn.00411ab0
movzx eax, ax
mov dword [ebp - 0x30], eax
test ax, ax
jne 0x40db37
mov ax, word [edi]
call fcn.00409110
cmp ax, 0x56
jne 0x40db37
mov ax, word [edi + 2]
call fcn.00409110
cmp ax, 0x4b
jne 0x40db37
lea eax, [edi + 4]
mov ebx, 0x49f7f0
call fcn.00409140
mov ebx, eax
test ebx, ebx
je 0x40db22
mov ax, word [ebx + 2]
call fcn.00409110
cmp ax, 0x43
jne 0x40db22
push 0x10
push 0
add ebx, 4
push ebx
call fcn.0048a0eb
movzx eax, ax
add esp, 0xc
mov dword [ebp - 0x30], eax
push 0x10
lea eax, [edi + 4]
push 0
push eax
call fcn.0048a0eb
mov bl, al
add esp, 0xc
mov byte [ebp - 0x1d], bl
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40db45
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 0x40df80
test bl, bl
jne 0x40dee5
cmp word [ebp - 0x30], 0
jne 0x40dee5
cmp dword [ebp - 0x48], 1
jne 0x40dbbc
cmp esi, 1
je 0x40df80
cmp dword [ebp + 0x14], 0
je 0x40dba2
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 0x40e09d
movzx eax, word [edi]
push eax
mov eax, dword [ebp - 0x24]
call fcn.0040e830
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp + 8], edx
jmp 0x40e09d
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.00411c90
add esp, 8
mov byte [ebp - 0x1d], al
test al, al
je 0x40ddb5
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40dbf7
cmp dword [ebp - 0x10], edi
jne 0x40dbf2
mov byte [ebp - 9], al
jmp 0x40dbf7
call fcn.0040cdb0
cmp dword [0x4c38b0], 0
je 0x40dc0b
mov bl, byte [0x4c0d6f]
jmp 0x40dcfd
cmp dword [0x4c1f78], 0
je 0x40dc1f
mov bl, byte [0x4c1e45]
jmp 0x40dcfd
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dc3a
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40dc4e
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dc62
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40dc76
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dc8a
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40dc9e
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40dcaf
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40dcc0
or bl, 0x80
cmp dword [0x4c1f78], 0
je 0x40dcfd
mov al, bl
not al
and al, byte [0x4c1e45]
je 0x40dcfd
mov cl, byte [0x4c1e47]
not al
and byte [0x4c1e45], al
and byte [0x4c1e46], al
and cl, al
mov al, cl
mov byte [0x4c1e47], cl
mov ecx, 0x4c1e68
call fcn.00411430
mov eax, dword [ebp - 8]
push 0
push 0
push edi
push ebx
push eax
mov eax, 0xffc3d44d
call fcn.00410c30
mov eax, dword [ebp - 0x24]
add esp, 0x14
test eax, eax
jle 0x40df80
mov ebx, dword [ebp - 0x1d]
mov edi, eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
push 0xffc3d44d
push 1
push ecx
push 0
push ebx
push edx
call fcn.0040ed30
add esp, 0x18
cmp dword [0x4c38b0], 0
jne 0x40dda3
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
sub eax, dword [0x4c4a7c]
mov ecx, dword [0x4be40c]
cmp eax, dword [ecx + 0xd4]
jbe 0x40dda3
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 0x40dd9c
push 1
push 0xffffffffffffffff
mov dword [0x4be3d4], 0
call fcn.004012b0
add esp, 8
mov dword [0x4be3d4], 1
call esi
mov dword [0x4c4a7c], eax
dec edi
jne 0x40dd24
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e09d
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp + 8]
cmp edi, 4
jbe 0x40de20
push 4
push str.ASC
push esi
call fcn.00489302
add esp, 0xc
test eax, eax
jne 0x40de20
cmp dword [ebp + 0x14], eax
jne 0x40de20
lea eax, [esi + 6]
call fcn.00409190
call fcn.0040e930
cmp dword [0x4c38b0], 2
jne 0x40de07
mov eax, dword [0x4be40c]
mov esi, dword [eax + 0x60]
call fcn.00410850
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e09d
mov ecx, dword [0x4be40c]
mov esi, dword [ecx + 0x5c]
call fcn.00410850
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e09d
mov ebx, 2
cmp edi, ebx
jbe 0x40df80
push ebx
push 0x49f804
push esi
call fcn.00489302
add esp, 0xc
test eax, eax
jne 0x40df80
push 0x10
push eax
add esi, 4
push esi
call fcn.0048a0eb
movzx ecx, ax
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x40de6e
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40deab
cmp dword [0x4c38b0], ebx
je 0x40de8b
movzx edx, byte [ebp - 8]
movzx eax, byte [ebp - 1]
or eax, edx
push ecx
call fcn.0040ce30
add esp, 4
jmp 0x40deab
push 0xa
lea edx, [ebp - 0x72]
push edx
mov eax, 0x30
push ecx
mov word [ebp - 0x74], ax
call fcn.00488845
add esp, 0xc
lea eax, [ebp - 0x74]
call fcn.0040e930
cmp dword [0x4c38b0], ebx
jne 0x40decc
mov ecx, dword [0x4be40c]
mov esi, dword [ecx + 0x60]
call fcn.00410850
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e09d
mov edx, dword [0x4be40c]
mov esi, dword [edx + 0x5c]
call fcn.00410850
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e09d
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov al, bl
call fcn.00411500
mov byte [ebp - 0x14], al
test al, al
je 0x40df50
cmp dword [ebp + 0x14], 0
jne 0x40df50
test esi, esi
jne 0x40df16
cmp byte [ebp - 0x1e], 0
mov byte [ebp - 9], bl
je 0x40df11
or byte [0x4c3858], al
or byte [ebp - 8], al
jmp 0x40df50
cmp esi, 1
jne 0x40df50
mov al, bl
call fcn.0040cdb0
mov al, byte [ebp - 0x14]
mov cl, byte [0x4c3858]
not al
and byte [ebp - 3], al
and cl, al
mov byte [0x4c3858], cl
cmp bl, 0xa5
jne 0x40df4a
cmp dword [0x4c0d88], 3
jne 0x40df4a
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.0040e490
add esp, 0x20
mov edx, dword [ebp - 0x18]
mov dword [ebp + 8], edx
jmp 0x40e09d
mov ax, word [edi]
mov word [ebp - 0x2c], ax
test ax, ax
je 0x40e02e
cmp word [ebp - 0x2a], 0
jne 0x40dfb5
mov ecx, dword [0x4c0d8c]
mov eax, dword [ebp - 0x2c]
lea esi, [ebp - 1]
call fcn.00411c10
jmp 0x40e030
movzx ebx, ax
test ebx, 0xffffff80
jne 0x40dfd2
push 2
push ebx
call fcn.00489d0e
add esp, 8
test eax, eax
je 0x40dfd2
and ebx, 0xffffffdf
cmp bx, 0x56
jne 0x40e00e
movzx ebx, word [ebp - 0x2a]
test ebx, 0xffffff80
jne 0x40dff6
push 2
push ebx
call fcn.00489d0e
add esp, 8
test eax, eax
je 0x40dff6
and ebx, 0xffffffdf
cmp bx, 0x4b
jne 0x40e00e
push 0x10
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.0048a0eb
add esp, 0xc
jmp 0x40e030
xor ebx, ebx
mov edx, dword [ebx*8 + 0x4bf1f0]
lea ecx, [ebp - 0x2c]
push ecx
push edx
call fcn.00488ac9
add esp, 8
test eax, eax
je 0x40e06b
inc ebx
cmp ebx, 0x6d
jl 0x40e010
xor al, al
mov byte [ebp - 0x34], al
mov byte [ebp - 0x1d], al
test al, al
mov eax, dword [ebp + 0x14]
je 0x40e074
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.0040e490
add esp, 0x20
jmp 0x40e09d
mov al, byte [ebx*8 + 0x4bf1f4]
jmp 0x40e030
test eax, eax
je 0x40e08c
movzx ecx, word [edi]
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40e09d
movzx edx, word [edi]
push edx
mov eax, 1
call fcn.0040e830
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 [0x4c2897], cl
jne 0x40d728
cmp dword [0x4c38b0], 0
je 0x40e16e
cmp byte [0x4c0d6d], 0
mov dword [ebp - 0x14], 0xffffffff
jne 0x40e12e
cmp dword [0x4c0d80], 0
jbe 0x40e12e
cmp byte [0x4c0d67], 0
je 0x40e0f0
xor eax, eax
jmp 0x40e0fc
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 [0x4c0d6f]
mov esi, dword [ebp + 8]
push 1
push 0
push eax
push esi
mov eax, 0xffc3d44d
call fcn.00410c30
add esp, 0x14
lea ecx, [ebp - 0x14]
push esi
push ecx
call fcn.00410700
add esp, 8
mov eax, dword [0x4c38b0]
dec eax
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4c0d7c], eax
jbe 0x40e159
mov edx, dword [0x4c0d84]
push edx
call fcn.0048a11f
add esp, 4
mov esi, dword [ebp - 0x14]
xor edi, edi
mov dword [0x4c38b0], edi
call fcn.00410850
jmp 0x40e2e8
cmp dword [0x4c1f78], 0
je 0x40e17f
mov cl, byte [0x4c1e47]
jmp 0x40e1a3
cmp dword [0x4be3cc], 0
jl 0x40e1a0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x4c4a38]
cmp eax, dword [0x4be3cc]
jb 0x40e1a0
xor cl, cl
jmp 0x40e1a3
mov cl, byte [ebp - 2]
cmp byte [0x4c0d67], 0
je 0x40e1c5
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 0x40e1d2
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 8]
mov byte [ebp + 8], al
cmp dword [0x4c1f78], 0
je 0x40e1e8
mov al, byte [0x4c1e45]
mov byte [ebp - 0x14], al
jmp 0x40e2c9
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e203
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40e217
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e22b
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40e23f
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e253
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40e267
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e278
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40e289
or bl, 0x80
cmp dword [0x4c1f78], 0
je 0x40e2c6
mov al, bl
not al
and al, byte [0x4c1e45]
je 0x40e2c6
mov cl, byte [0x4c1e47]
not al
and byte [0x4c1e45], al
and byte [0x4c1e46], al
and cl, al
mov al, cl
mov byte [0x4c1e47], cl
mov ecx, 0x4c1e68
call fcn.00411430
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.00410c30
add esp, 0x14
xor edi, edi
cmp dword [0x4c1f78], edi
je 0x40e308
mov al, byte [0x4c1e46]
mov cl, al
xor cl, byte [0x4c1e45]
and cl, al
not cl
and al, cl
mov byte [0x4c1e46], al
mov esi, 1
cmp dword [ebp - 0x38], esi
jne 0x40e35f
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
jne 0x40e35f
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.0040ed30
add esp, 0x18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c3f64]
jne 0x40e35f
push esi
push 0xffffffffffffffff
mov dword [0x4be3d4], edi
call fcn.004012b0
add esp, 8
mov dword [0x4be3d4], esi
cmp byte [ebp - 0xb], 0
je 0x40e376
mov edx, dword [ebp - 0x60]
mov eax, dword [0x4c3f64]
push edi
push edx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 4], 0
je 0x40e3c2
cmp byte [ebp - 0x19], 0
jne 0x40e3c2
test byte [0x4c56a0], 1
jne 0x40e3af
or dword [0x4c56a0], 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 [0x4c569c], eax
jmp 0x40e3b4
mov eax, dword [0x4c569c]
cmp eax, edi
je 0x40e3bb
push edi
call eax
mov byte [0x4c264b], 0
cmp dword [ebp + 0x10], esi
jne 0x40e3f4
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4c3f64]
jne 0x40e3f4
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