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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x40e61c
mov bl, byte [ebp + 0xc]
mov esi, dword [0x4a6918]
mov dword [ebp - 0x3c], esi
test bl, bl
jne 0x40d57d
push 7
push str.Blind
push edi
call fcn.00485860
add esp, 0xc
test eax, eax
jne 0x40d57d
add edi, 7
mov byte [0x4a9145], 1
mov dword [ebp + 8], edi
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], ecx
cmp eax, 1
je 0x40d542
cmp eax, 3
jne 0x40d5b3
cmp dword [0x4aca60], 0
je 0x40d589
call fcn.00408c40
test al, al
jne 0x40d586
test bl, bl
jne 0x40d574
call fcn.00408ca0
test al, al
je 0x40d574
push str.Click
mov eax, edi
call fcn.00472320
add esp, 4
test eax, eax
jne 0x40d586
mov dword [ebp + 0x10], 1
jmp 0x40d5b3
mov byte [0x4a9145], 0
jmp 0x40d529
mov eax, dword [ebp + 0x10]
cmp eax, 3
jne 0x40d597
mov dword [ebp + 0x10], 2
jmp 0x40d5b3
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40d5a9
cmp dword [esi + 0x64], eax
jge 0x40d5a9
or eax, 0xffffffff
mov dword [esi + 0x64], eax
mov dword [esi + 0x5c], 0xffffffff
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov byte [ebp - 0x15], 0
test esi, esi
je 0x40d60b
push ebx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
mov dword [ebp - 0x54], edi
test edi, edi
je 0x40d707
cmp edi, dword [0x4ac238]
je 0x40d707
call fcn.00476b90
test al, al
jne 0x40d707
mov edx, dword [0x4ac238]
push 1
push edi
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0x15]
mov ebx, edi
jmp 0x40d707
test byte [0x4ac879], 0xc0
je 0x40d6f2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ac870]
cmp eax, 0x32
jae 0x40d6f2
cmp dword [ebp + 0x10], 2
je 0x40d6f2
cmp byte [0x4a9145], bl
jne 0x40d6f2
cmp byte [0x4aca56], bl
je 0x40d6f2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4ac238]
jne 0x40d6f2
mov eax, dword [ebp + 8]
mov edi, 0x49a274
call fcn.004093c0
cmp byte [ebp + 0xc], bl
je 0x40d6c3
test eax, eax
setne al
test al, al
je 0x40d6f2
lea esp, [esp]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
jne 0x40d6a2
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40d6f2
push 1
push 0x8000012f
mov dword [0x4a6884], ebx
call fcn.00401350
add esp, 8
mov dword [0x4a6884], 1
jmp 0x40d680
test eax, eax
je 0x40d6f2
jmp 0x40d6d0
inc eax
mov edi, 0x49a278
call fcn.004093c0
test eax, eax
je 0x40d680
cmp byte [eax], 0x7b
je 0x40d680
mov edi, 0x49a274
call fcn.004093c0
test eax, eax
jne 0x40d6d0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x40d707
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4a916c], eax
push eax
xor eax, eax
call fcn.004119d0
add esp, 4
push 1
mov dword [0x4a9168], eax
call fcn.004114a0
add esp, 4
cmp dword [0x4aa360], 0
mov bl, al
mov byte [ebp - 4], bl
je 0x40d757
mov cl, byte [0x4aa22d]
mov dl, byte [0x4aa22f]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 3], dl
mov byte [ebp - 0xa], cl
jmp 0x40d782
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ac870]
cmp eax, dword [0x4a687c]
jae 0x40d777
mov al, byte [0x4ac879]
and al, bl
mov byte [ebp - 3], al
jmp 0x40d77e
mov byte [ebp - 3], 0
mov al, byte [ebp - 3]
mov byte [ebp - 0xa], 0
mov cl, byte [0x4abb34]
not al
and al, bl
and cl, al
mov al, byte [0x4a9145]
mov byte [0x4abb34], cl
test al, al
je 0x40d7a9
not cl
and cl, bl
mov byte [ebp - 2], cl
mov byte [ebp - 8], bl
jmp 0x40d7b0
mov byte [ebp - 2], 0
mov byte [ebp - 8], cl
mov ecx, dword [ebp - 0x3c]
cmp byte [ecx + 0xd3], 0
je 0x40d7d4
test al, al
jne 0x40d7d4
push 2
mov bl, 0x14
call fcn.00410c90
mov bl, byte [ebp - 4]
add esp, 4
mov dword [ebp - 0x40], eax
jmp 0x40d7db
mov dword [ebp - 0x40], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4abb88], esi
test esi, esi
je 0x40d84d
cmp esi, 1
jne 0x40d7fe
mov eax, 0x36b0
mov dword [0x4a915c], 0x1f4
jmp 0x40d80d
mov eax, 0x2ee0
mov dword [0x4a915c], 0x5dc
call fcn.0048e810
mov eax, esp
mov dword [0x4a9164], eax
mov eax, SysReAllocString
mov byte [0x4a914d], bl
mov dword [0x4a9150], eax
mov dword [0x4a9154], eax
mov byte [0x4a914c], 0
mov dword [0x4a9160], 0
mov byte [0x4a9147], 0
mov byte [0x4a9146], 1
mov eax, dword [0x4a6928]
mov dl, byte [0x4aaa2b]
mov byte [ebp - 0x26], dl
cmp eax, 8
je 0x40d865
cmp eax, 0xa
jne 0x40d8a0
test esi, esi
jne 0x40d8a0
cmp dword [ebp + 0x14], esi
jne 0x40d8a0
test byte [0x4ad314], 1
mov byte [ebp - 4], 1
jne 0x40d8a6
or dword [0x4ad314], 1
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ad310], eax
jmp 0x40d8ab
mov byte [ebp - 4], 0
jmp 0x40d8ba
mov eax, dword [0x4ad310]
test eax, eax
je 0x40d8b3
push 1
call eax
mov byte [0x4aaa2b], 1
mov eax, dword [ebp + 8]
mov byte [ebp - 0x13], 0
cmp byte [eax], 0
mov byte [ebp - 1], 0
je 0x40e2aa
cmp dword [0x4abb88], 0
mov byte [ebp - 9], 0
jne 0x40d937
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4ac8ac]
mov ecx, dword [0x4a6918]
cmp eax, dword [ecx + 0xb8]
jbe 0x40d937
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40d930
push 1
push 0xffffffffffffffff
mov dword [0x4a6884], 0
call fcn.00401350
add esp, 8
mov dword [0x4a6884], 1
call esi
mov dword [0x4ac8ac], eax
cmp byte [ebp + 0xc], 0
mov edi, dword [ebp + 8]
jne 0x40e185
movsx eax, byte [edi]
push eax
push str._
call fcn.00485dd1
add esp, 8
test eax, eax
je 0x40e185
movsx eax, byte [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40d973.34
movzx eax, byte [eax + 0x40e648]
jmp dword [eax*4 + 0x40e62c]
test byte [ebp - 8], 3
jne case.0x40d973.34
or byte [ebp - 1], 1
jmp case.0x40d973.34
test byte [ebp - 8], 0x30
jne case.0x40d973.34
or byte [ebp - 1], 0x10
jmp case.0x40d973.34
test byte [ebp - 8], 0xc
jne case.0x40d973.34
or byte [ebp - 1], 4
jmp case.0x40d973.34
test byte [ebp - 8], 0xc0
jne case.0x40d973.34
or byte [ebp - 1], 0x40
jmp case.0x40d973.34
mov esi, dword [ebp + 8]
inc esi
push 0x7d
push esi
call fcn.00485dd1
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
test edi, edi
je case.0x40d973.34
mov ebx, esi
mov al, byte [ebx]
cmp al, 0x20
je 0x40d9ee
cmp al, 9
jne 0x40d9f1
inc ebx
jmp 0x40d9e4
mov esi, edi
sub esi, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp + 8], ebx
mov dword [ebp - 0x2c], esi
jne 0x40da7c
mov al, byte [edi + 1]
lea esi, [edi + 1]
cmp al, 0x7d
jne 0x40da16
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], 1
jmp 0x40da76
cmp al, 0x20
je 0x40da22
cmp al, 9
jne 0x40e17a
mov al, byte [esi]
cmp al, 0x20
je 0x40da2c
cmp al, 9
jne 0x40da2f
inc esi
jmp 0x40da22
push 4
push str.Down
push esi
call fcn.00485860
add esp, 0xc
test eax, eax
je 0x40da5b
push 2
push 0x498b18
push esi
call fcn.00485860
add esp, 0xc
test eax, eax
jne 0x40e17a
push 0x7d
push esi
call fcn.00485dd1
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
je case.0x40d973.34
sub eax, ebx
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x2c]
push 5
push 0x499934
push ebx
call fcn.00485860
add esp, 0xc
test eax, eax
jne 0x40db2b
mov byte [edi], al
add ebx, 5
lea esp, [esp]
mov al, byte [ebx]
cmp al, 0x20
je 0x40daaa
cmp al, 9
jne 0x40daad
inc ebx
jmp 0x40daa0
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xe]
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0040f5f0
mov ecx, dword [ebp - 0x30]
add esp, 0x18
mov byte [edi], 0x7d
cmp ecx, 1
jge 0x40db06
mov edx, dword [ebp - 0x3c]
movzx eax, byte [edx + 0xcf]
mov ecx, dword [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x6c]
lea eax, [ebp - 0x4c]
call fcn.00410260
mov ecx, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp + 8], ecx
jmp 0x40e28d
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 - 0x1c]
push eax
mov eax, dword [ebp - 8]
push 0
push edx
mov edx, dword [ebp - 0xe]
push eax
push 0
push edx
jmp 0x40e16f
push 3
push 0x49a284
push ebx
call fcn.00485860
add esp, 0xc
test eax, eax
jne 0x40db4e
mov ecx, dword [ebp - 0x24]
mov byte [ebp + 0xc], 1
mov dword [ebp + 8], ecx
jmp 0x40e28d
mov eax, dword [ebp - 0x24]
mov byte [eax], 0
mov edi, 0x49a0d8
mov eax, ebx
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x20], esi
call fcn.004093c0
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40dbef
mov esi, eax
mov cl, byte [esi]
sub eax, ebx
mov byte [ebp - 0x27], cl
mov byte [esi], 0
mov dword [ebp - 0x20], eax
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x40db87
cmp al, 9
je 0x40db87
mov edx, dword [ebp - 0x24]
sub edx, esi
je 0x40dbef
push 4
push str.Down
push esi
call fcn.00485860
add esp, 0xc
test eax, eax
jne 0x40dbcc
push 4
push str.Temp
add esi, 4
push esi
mov dword [ebp - 0x1c], eax
call fcn.00485860
add esp, 0xc
test eax, eax
setne byte [ebp - 0x25]
jmp 0x40dbef
push 0x498b18
push esi
call fcn.00484de1
add esp, 8
test eax, eax
jne 0x40dbe7
mov dword [ebp - 0x1c], 1
jmp 0x40dbef
call fcn.0040ce60
mov dword [ebp - 0x30], eax
mov al, byte [ebx]
test al, al
je 0x40dc2b
cmp byte [ebx + 1], 0
jne 0x40dc0b
mov ecx, dword [0x4a916c]
lea esi, [ebp - 1]
call fcn.00411e10
jmp 0x40dc2d
xor esi, esi
lea ecx, [ecx]
mov eax, dword [esi*8 + 0x4a7658]
push ebx
push eax
call fcn.00484de1
add esp, 8
test eax, eax
je 0x40dc38
inc esi
cmp esi, 0x6d
jl 0x40dc10
xor al, al
mov byte [ebp - 0xe], al
test al, al
je 0x40dc41
xor esi, esi
jmp 0x40dcb4
mov al, byte [esi*8 + 0x4a765c]
jmp 0x40dc2d
mov eax, ebx
call fcn.00411cb0
movzx esi, ax
mov dword [ebp + 8], esi
test si, si
jne 0x40dcb4
mov al, byte [ebx]
call fcn.00409390
cmp al, 0x56
jne 0x40dcb4
mov al, byte [ebx + 1]
call fcn.00409390
cmp al, 0x4b
jne 0x40dcb4
lea esi, [ebx + 2]
mov edi, 0x49a290
mov eax, esi
call fcn.004093c0
mov edi, eax
test edi, edi
je 0x40dca1
mov al, byte [edi + 1]
call fcn.00409390
cmp al, 0x43
jne 0x40dca1
push 0x10
push 0
add edi, 2
push edi
call fcn.00486764
movzx eax, ax
add esp, 0xc
mov dword [ebp + 8], eax
push 0x10
push 0
push esi
call fcn.00486764
mov esi, dword [ebp + 8]
add esp, 0xc
mov byte [ebp - 0xe], al
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40dcc0
mov cl, byte [ebp - 0x27]
mov byte [eax], cl
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x24]
mov eax, 1
mov byte [edx], 0x7d
cmp edi, eax
jl 0x40e17a
cmp byte [ebp - 0xe], 0
jne 0x40e0d9
test si, si
jne 0x40e0d9
cmp dword [ebp - 0x20], eax
jne 0x40dd2f
cmp dword [ebp - 0x1c], eax
je 0x40e17a
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40dd1b
movsx ecx, byte [ebx]
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
jmp 0x40e28d
mov cl, byte [ebx]
mov eax, edi
call fcn.0040ea50
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
jmp 0x40e28d
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x38]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x1c]
sete bl
push eax
call fcn.00411e80
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x40df31
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40dd6d
cmp dword [ebp - 0x1c], edi
jne 0x40dd68
mov byte [ebp - 9], al
jmp 0x40dd6d
call fcn.0040d030
cmp dword [0x4abb88], 0
je 0x40dd81
mov bl, byte [0x4a914d]
jmp 0x40de73
cmp dword [0x4aa360], 0
je 0x40dd95
mov bl, byte [0x4aa22d]
jmp 0x40de73
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ddb0
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40ddc4
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ddd8
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40ddec
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40de00
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40de14
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40de25
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40de36
or bl, 0x80
cmp dword [0x4aa360], 0
je 0x40de73
mov al, bl
not al
and al, byte [0x4aa22d]
je 0x40de73
mov cl, byte [0x4aa22f]
not al
and byte [0x4aa22d], al
and byte [0x4aa22e], al
and cl, al
mov al, cl
mov byte [0x4aa22f], cl
mov ecx, 0x4aa250
call fcn.004115a0
mov eax, dword [ebp - 8]
push 0
push 0
push edi
push ebx
push eax
mov esi, 0xffc3d44d
call fcn.00410da0
mov eax, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jle 0x40e17a
mov ebx, dword [ebp - 0xe]
mov edi, eax
lea ebx, [ebx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x1c]
push 0xffc3d44d
push 1
push ecx
push 0
push ebx
push edx
call fcn.0040ef20
add esp, 0x18
cmp dword [0x4abb88], 0
jne 0x40df1f
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4ac8ac]
mov ecx, dword [0x4a6918]
cmp eax, dword [ecx + 0xb8]
jbe 0x40df1f
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40df18
push 1
push 0xffffffffffffffff
mov dword [0x4a6884], 0
call fcn.00401350
add esp, 8
mov dword [0x4a6884], 1
call esi
mov dword [0x4ac8ac], eax
dec edi
jne 0x40dea0
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
jmp 0x40e28d
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x38]
cmp edi, 4
jbe 0x40dfb4
push 4
push str.ASC
push esi
call fcn.00485860
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x40dfb7
test ebx, ebx
jne 0x40dfb7
lea edi, [esi + 3]
lea ebx, [ebx]
mov al, byte [edi]
cmp al, 0x20
je 0x40df6a
cmp al, 9
jne 0x40df6d
inc edi
jmp 0x40df60
call fcn.0040eb30
cmp dword [0x4abb88], 2
jne 0x40df97
mov eax, dword [0x4a6918]
mov eax, dword [eax + 0x60]
push eax
call fcn.004109d0
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40e28d
mov ecx, dword [0x4a6918]
mov eax, dword [ecx + 0x5c]
push eax
call fcn.004109d0
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40e28d
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x40e17a
push 2
push 0x49a29c
push esi
call fcn.00485860
add esp, 0xc
test eax, eax
jne 0x40e17a
push 0x10
push eax
add esi, 2
push esi
call fcn.00486764
add esp, 0xc
cmp eax, 0x10000
jb 0x40e01a
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 0x40e01f
movzx ecx, ax
xor esi, esi
test ebx, ebx
je 0x40e04c
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 0x40e097
push 0
movzx ecx, si
push ecx
push 0x102
push ebx
call edi
jmp 0x40e097
cmp dword [0x4abb88], 2
je 0x40e07c
movzx edx, byte [ebp - 8]
movzx edi, byte [ebp - 1]
or edi, edx
push ecx
mov eax, edi
call fcn.0040d0b0
add esp, 4
test si, si
je 0x40e097
push esi
mov eax, edi
call fcn.0040d0b0
add esp, 4
jmp 0x40e097
push 0xa
lea ecx, [ebp - 0x67]
push ecx
push eax
mov byte [ebp - 0x68], 0x30
call fcn.00484a72
add esp, 0xc
lea edi, [ebp - 0x68]
call fcn.0040eb30
cmp dword [0x4abb88], 2
jne 0x40e0bd
mov edx, dword [0x4a6918]
mov eax, dword [edx + 0x60]
push eax
call fcn.004109d0
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40e28d
mov eax, dword [0x4a6918]
mov eax, dword [eax + 0x5c]
push eax
call fcn.004109d0
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40e28d
mov al, byte [ebp - 0xe]
xor ecx, ecx
mov edx, esi
call fcn.00411670
mov bl, al
mov byte [ebp - 0x5c], bl
test bl, bl
je 0x40e14c
cmp dword [ebp + 0x14], 0
jne 0x40e14c
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40e111
mov cl, byte [ebp - 0xe]
mov byte [ebp - 9], cl
cmp byte [ebp - 0x25], al
je 0x40e10c
or byte [0x4abb34], bl
or byte [ebp - 8], bl
jmp 0x40e14c
cmp eax, 1
jne 0x40e14c
mov al, byte [ebp - 0xe]
call fcn.0040d030
mov cl, byte [0x4abb34]
mov al, bl
not al
and byte [ebp - 2], al
and cl, al
cmp byte [ebp - 0xe], 0xa5
mov byte [0x4abb34], cl
jne 0x40e146
cmp dword [0x4a9168], 3
jne 0x40e146
and byte [ebp - 2], 0xfe
or cl, byte [ebp - 2]
mov byte [ebp - 8], cl
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x1c]
push 0
push SysReAllocString
push SysReAllocString
push edx
mov edx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xe]
push ecx
push edx
push esi
push eax
mov ecx, edi
mov al, byte [ebp - 1]
call fcn.0040e6b0
add esp, 0x24
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
jmp 0x40e28d
mov al, byte [edi]
mov byte [ebp - 0x14], al
test al, al
je 0x40e221
cmp byte [ebp - 0x13], 0
jne 0x40e1a8
mov ecx, dword [0x4a916c]
lea esi, [ebp - 1]
call fcn.00411e10
jmp 0x40e223
movzx esi, al
test esi, 0xffffff80
jne 0x40e1c5
push 2
push esi
call fcn.0048631e
add esp, 8
test eax, eax
je 0x40e1c5
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x56
jne 0x40e201
movzx esi, byte [ebp - 0x13]
test esi, 0xffffff80
jne 0x40e1e9
push 2
push esi
call fcn.0048631e
add esp, 8
test eax, eax
je 0x40e1e9
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x4b
jne 0x40e201
push 0x10
lea edx, [ebp - 0x12]
push 0
push edx
call fcn.00486764
add esp, 0xc
jmp 0x40e223
xor esi, esi
mov eax, dword [esi*8 + 0x4a7658]
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00484de1
add esp, 8
test eax, eax
je 0x40e25d
inc esi
cmp esi, 0x6d
jl 0x40e203
xor al, al
mov byte [ebp - 0x34], al
mov byte [ebp - 0xe], al
test al, al
je 0x40e266
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.0040e6b0
add esp, 0x24
jmp 0x40e28d
mov al, byte [esi*8 + 0x4a765c]
jmp 0x40e223
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40e281
movsx edx, byte [edi]
push 0
push edx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40e28d
mov cl, byte [edi]
mov eax, 1
call fcn.0040ea50
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 9]
inc eax
cmp byte [eax], 0
mov dword [ebp + 8], eax
mov byte [0x4abb13], cl
jne 0x40d8ce
cmp dword [0x4abb88], 0
je 0x40e367
cmp byte [0x4a9147], 0
mov dword [ebp - 0x20], 0xffffffff
jne 0x40e31b
cmp dword [0x4a9160], 0
jbe 0x40e31b
cmp byte [0x4a9145], 0
je 0x40e2dd
xor eax, eax
jmp 0x40e2e9
movzx eax, byte [ebp - 0xa]
movzx edx, byte [ebp - 3]
not eax
and eax, edx
or al, byte [ebp - 8]
push 1
mov byte [ebp + 8], al
movzx eax, byte [0x4a914d]
mov edi, dword [ebp + 8]
push 1
push 0
push eax
push edi
mov esi, 0xffc3d44d
call fcn.00410da0
add esp, 0x14
lea ecx, [ebp - 0x20]
push edi
push ecx
call fcn.00410880
add esp, 8
mov eax, dword [0x4abb88]
mov edi, 1
sub eax, edi
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4a915c], eax
jbe 0x40e34c
mov edx, dword [0x4a9164]
push edx
call fcn.00484df8
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov dword [0x4abb88], 0
call fcn.004109d0
add esp, 4
jmp 0x40e4e5
cmp dword [0x4aa360], 0
je 0x40e378
mov cl, byte [0x4aa22f]
jmp 0x40e39c
cmp dword [0x4a687c], 0
jl 0x40e399
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ac870]
cmp eax, dword [0x4a687c]
jb 0x40e399
xor cl, cl
jmp 0x40e39c
mov cl, byte [ebp - 3]
cmp byte [0x4a9145], 0
je 0x40e3be
mov dl, byte [ebp - 3]
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 0x40e3cb
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 8]
mov byte [ebp + 8], al
cmp dword [0x4aa360], 0
je 0x40e3e2
mov cl, byte [0x4aa22d]
mov byte [ebp - 0x20], cl
jmp 0x40e4c3
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov edx, 0x8000
test dx, ax
je 0x40e3fd
mov bl, 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e411
or bl, 0x20
push 0xa2
call esi
mov edx, 0x8000
test dx, ax
je 0x40e425
or bl, 1
push 0xa3
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e439
or bl, 2
push 0xa4
call esi
mov edx, 0x8000
test dx, ax
je 0x40e44d
or bl, 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e461
or bl, 8
push 0x5b
call esi
mov edx, 0x8000
test dx, ax
je 0x40e472
or bl, 0x40
push 0x5c
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e483
or bl, 0x80
cmp dword [0x4aa360], 0
je 0x40e4c0
mov al, bl
not al
and al, byte [0x4aa22d]
je 0x40e4c0
mov cl, byte [0x4aa22f]
not al
and byte [0x4aa22d], al
and byte [0x4aa22e], al
and cl, al
mov al, cl
mov byte [0x4aa22f], cl
mov ecx, 0x4aa250
call fcn.004115a0
mov byte [ebp - 0x20], bl
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
push 1
push 1
push edx
push eax
push ecx
mov esi, 0xffc3d44d
call fcn.00410da0
add esp, 0x14
mov edi, 1
xor ebx, ebx
cmp dword [0x4aa360], ebx
je 0x40e507
mov al, byte [0x4aa22e]
mov dl, al
xor dl, byte [0x4aa22d]
and dl, al
not dl
and al, dl
mov byte [0x4aa22e], al
cmp dword [ebp - 0x40], edi
jne 0x40e57c
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x40e57c
push 0x14
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e53b
push 0xffc3d44d
push ebx
push ebx
push ebx
push 0x14
push edi
call fcn.0040ef20
add esp, 0x18
push 0xffc3d44d
push ebx
push ebx
push ebx
push 0x14
push 2
call fcn.0040ef20
add esp, 0x18
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ac238]
jne 0x40e57c
push edi
push 0xffffffffffffffff
mov dword [0x4a6884], ebx
call fcn.00401350
add esp, 8
mov dword [0x4a6884], edi
cmp byte [ebp - 0x15], bl
je 0x40e592
mov edx, dword [ebp - 0x54]
mov eax, dword [0x4ac238]
push ebx
push edx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 4], bl
je 0x40e5db
cmp byte [ebp - 0x26], bl
jne 0x40e5db
test byte [0x4ad314], 1
jne 0x40e5c9
or dword [0x4ad314], edi
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ad310], eax
jmp 0x40e5ce
mov eax, dword [0x4ad310]
cmp eax, ebx
je 0x40e5d5
push ebx
call eax
mov byte [0x4aaa2b], bl
cmp dword [ebp + 0x10], edi
jne 0x40e60d
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ac238]
jne 0x40e60d
push edi
push 0xffffffffffffffff
mov dword [0x4a6884], ebx
call fcn.00401350
add esp, 8
mov dword [0x4a6884], edi
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x58]
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x64], edx
lea esp, [ebp - 0x98]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret