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 0x40e5b9
mov bl, byte [ebp + 0xc]
mov esi, dword [0x4a6920]
mov dword [ebp - 0x3c], esi
test bl, bl
jne 0x40d57d
push 7
push str.Blind
push edi
call fcn.004850f0
add esp, 0xc
test eax, eax
jne 0x40d57d
add edi, 7
mov byte [0x4a9135], 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 [0x4aca50], 0
je 0x40d589
call fcn.00408bc0
test al, al
jne 0x40d586
test bl, bl
jne 0x40d574
call fcn.00408c20
test al, al
je 0x40d574
push str.Click
mov eax, edi
call fcn.00471bb0
add esp, 4
test eax, eax
jne 0x40d586
mov dword [ebp + 0x10], 1
jmp 0x40d5b3
mov byte [0x4a9135], 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 [0x4ac228]
je 0x40d707
call fcn.00476420
test al, al
jne 0x40d707
mov edx, dword [0x4ac228]
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 [0x4ac869], 0xc0
je 0x40d6f2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ac860]
cmp eax, 0x32
jae 0x40d6f2
cmp dword [ebp + 0x10], 2
je 0x40d6f2
cmp byte [0x4a9135], bl
jne 0x40d6f2
cmp byte [0x4aca46], bl
je 0x40d6f2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4ac228]
jne 0x40d6f2
mov eax, dword [ebp + 8]
mov edi, 0x49a19c
call fcn.00409340
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.00401330
add esp, 8
mov dword [0x4a6884], 1
jmp 0x40d680
test eax, eax
je 0x40d6f2
jmp 0x40d6d0
inc eax
mov edi, 0x49a1a0
call fcn.00409340
test eax, eax
je 0x40d680
cmp byte [eax], 0x7b
je 0x40d680
mov edi, 0x49a19c
call fcn.00409340
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 [0x4a915c], eax
push eax
xor eax, eax
call fcn.00411970
add esp, 4
push 1
mov dword [0x4a9158], eax
call fcn.00411440
add esp, 4
cmp dword [0x4aa350], 0
mov bl, al
mov byte [ebp - 4], bl
je 0x40d757
mov cl, byte [0x4aa21d]
mov dl, byte [0x4aa21f]
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 [0x4ac860]
cmp eax, dword [0x4a687c]
jae 0x40d777
mov al, byte [0x4ac869]
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 [0x4abb25]
not al
and al, bl
and cl, al
mov al, byte [0x4a9135]
mov byte [0x4abb25], 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 + 0xcf], 0
je 0x40d7d4
test al, al
jne 0x40d7d4
push 2
mov bl, 0x14
call fcn.00410c30
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 [0x4abb78], esi
test esi, esi
je 0x40d84d
cmp esi, 1
jne 0x40d7fe
mov eax, 0x36b0
mov dword [0x4a914c], 0x1f4
jmp 0x40d80d
mov eax, 0x2ee0
mov dword [0x4a914c], 0x5dc
call fcn.0048e0a0
mov eax, esp
mov dword [0x4a9154], eax
mov eax, SysReAllocString
mov byte [0x4a913d], bl
mov dword [0x4a9140], eax
mov dword [0x4a9144], eax
mov byte [0x4a913c], 0
mov dword [0x4a9150], 0
mov byte [0x4a9137], 0
mov byte [0x4a9136], 1
mov eax, dword [0x4a6930]
mov dl, byte [0x4aab28]
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 [0x4ad304], 1
mov byte [ebp - 4], 1
jne 0x40d8a6
or dword [0x4ad304], 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 [0x4ad300], eax
jmp 0x40d8ab
mov byte [ebp - 4], 0
jmp 0x40d8ba
mov eax, dword [0x4ad300]
test eax, eax
je 0x40d8b3
push 1
call eax
mov byte [0x4aab28], 1
mov eax, dword [ebp + 8]
mov byte [ebp - 0x13], 0
cmp byte [eax], 0
mov byte [ebp - 1], 0
je 0x40e247
cmp dword [0x4abb78], 0
mov byte [ebp - 9], 0
jne 0x40d937
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4ac89c]
mov ecx, dword [0x4a6920]
cmp eax, dword [ecx + 0xb4]
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.00401330
add esp, 8
mov dword [0x4a6884], 1
call esi
mov dword [0x4ac89c], eax
cmp byte [ebp + 0xc], 0
mov edi, dword [ebp + 8]
jne 0x40e11e
movsx eax, byte [edi]
push eax
push str._
call fcn.00485661
add esp, 8
test eax, eax
je 0x40e11e
movsx eax, byte [edi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40d973.34
movzx eax, byte [eax + 0x40e5e4]
jmp dword [eax*4 + 0x40e5c8]
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.00485661
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 0x40e113
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.004850f0
add esp, 0xc
test eax, eax
je 0x40da5b
push 2
push 0x498ad0
push esi
call fcn.004850f0
add esp, 0xc
test eax, eax
jne 0x40e113
push 0x7d
push esi
call fcn.00485661
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 0x4998ec
push ebx
call fcn.004850f0
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.0040f590
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 + 0xcb]
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.00410200
mov ecx, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp + 8], ecx
jmp 0x40e22a
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 0x40e108
push 3
push 0x49a1ac
push ebx
call fcn.004850f0
add esp, 0xc
test eax, eax
jne 0x40db4e
mov ecx, dword [ebp - 0x24]
mov byte [ebp + 0xc], 1
mov dword [ebp + 8], ecx
jmp 0x40e22a
mov eax, dword [ebp - 0x24]
mov byte [eax], 0
mov edi, 0x499ffc
mov eax, ebx
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x20], esi
call fcn.00409340
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.004850f0
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.004850f0
add esp, 0xc
test eax, eax
setne byte [ebp - 0x25]
jmp 0x40dbef
push 0x498ad0
push esi
call fcn.00484671
add esp, 8
test eax, eax
jne 0x40dbe7
mov dword [ebp - 0x1c], 1
jmp 0x40dbef
call fcn.0040ce40
mov dword [ebp - 0x30], eax
mov al, byte [ebx]
test al, al
je 0x40dc2b
cmp byte [ebx + 1], 0
jne 0x40dc0b
mov ecx, dword [0x4a915c]
lea esi, [ebp - 1]
call fcn.00411db0
jmp 0x40dc2d
xor esi, esi
lea ecx, [ecx]
mov eax, dword [esi*8 + 0x4a7660]
push ebx
push eax
call fcn.00484671
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 + 0x4a7664]
jmp 0x40dc2d
mov eax, ebx
call fcn.00411c50
movzx esi, ax
mov dword [ebp + 8], esi
test si, si
jne 0x40dcb4
mov al, byte [ebx]
call fcn.00409310
cmp al, 0x56
jne 0x40dcb4
mov al, byte [ebx + 1]
call fcn.00409310
cmp al, 0x4b
jne 0x40dcb4
lea esi, [ebx + 2]
mov edi, 0x49a1b8
mov eax, esi
call fcn.00409340
mov edi, eax
test edi, edi
je 0x40dca1
mov al, byte [edi + 1]
call fcn.00409310
cmp al, 0x43
jne 0x40dca1
push 0x10
push 0
add edi, 2
push edi
call fcn.00485ff4
movzx eax, ax
add esp, 0xc
mov dword [ebp + 8], eax
push 0x10
push 0
push esi
call fcn.00485ff4
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 0x40e113
cmp byte [ebp - 0xe], 0
jne 0x40e072
test si, si
jne 0x40e072
cmp dword [ebp - 0x20], eax
jne 0x40dd2f
cmp dword [ebp - 0x1c], eax
je 0x40e113
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 0x40e22a
mov cl, byte [ebx]
mov eax, edi
call fcn.0040e9f0
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
jmp 0x40e22a
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.00411e20
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.0040d010
cmp dword [0x4abb78], 0
je 0x40dd81
mov bl, byte [0x4a913d]
jmp 0x40de73
cmp dword [0x4aa350], 0
je 0x40dd95
mov bl, byte [0x4aa21d]
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 [0x4aa350], 0
je 0x40de73
mov al, bl
not al
and al, byte [0x4aa21d]
je 0x40de73
mov cl, byte [0x4aa21f]
not al
and byte [0x4aa21d], al
and byte [0x4aa21e], al
and cl, al
mov al, cl
mov byte [0x4aa21f], cl
mov ecx, 0x4aa240
call fcn.00411540
mov eax, dword [ebp - 8]
push 0
push 0
push edi
push ebx
push eax
mov esi, 0xffc3d44d
call fcn.00410d40
mov eax, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jle 0x40e113
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.0040eec0
add esp, 0x18
cmp dword [0x4abb78], 0
jne 0x40df1f
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4ac89c]
mov ecx, dword [0x4a6920]
cmp eax, dword [ecx + 0xb4]
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.00401330
add esp, 8
mov dword [0x4a6884], 1
call esi
mov dword [0x4ac89c], eax
dec edi
jne 0x40dea0
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
jmp 0x40e22a
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x38]
cmp edi, 4
jbe 0x40dfac
push 4
push str.ASC
push esi
call fcn.004850f0
add esp, 0xc
test eax, eax
jne 0x40dfac
cmp dword [ebp + 0x14], eax
jne 0x40dfac
lea edi, [esi + 3]
mov al, byte [edi]
cmp al, 0x20
je 0x40df62
cmp al, 9
jne 0x40df65
inc edi
jmp 0x40df58
call fcn.0040ead0
cmp dword [0x4abb78], 2
jne 0x40df8f
mov eax, dword [0x4a6920]
mov eax, dword [eax + 0x60]
push eax
call fcn.00410970
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40e22a
mov ecx, dword [0x4a6920]
mov eax, dword [ecx + 0x5c]
push eax
call fcn.00410970
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40e22a
mov ebx, 2
cmp edi, ebx
jbe 0x40e113
push ebx
push 0x49a1c4
push esi
call fcn.004850f0
add esp, 0xc
test eax, eax
jne 0x40e113
push 0x10
push eax
add esi, ebx
push esi
call fcn.00485ff4
movzx ecx, ax
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x40dff9
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40e031
cmp dword [0x4abb78], ebx
je 0x40e016
movzx edx, byte [ebp - 8]
movzx eax, byte [ebp - 1]
or eax, edx
push ecx
call fcn.0040d090
add esp, 4
jmp 0x40e031
push 0xa
lea eax, [ebp - 0x67]
push eax
push ecx
mov byte [ebp - 0x68], 0x30
call fcn.00484302
add esp, 0xc
lea edi, [ebp - 0x68]
call fcn.0040ead0
cmp dword [0x4abb78], ebx
jne 0x40e056
mov edx, dword [0x4a6920]
mov eax, dword [edx + 0x60]
push eax
call fcn.00410970
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40e22a
mov eax, dword [0x4a6920]
mov eax, dword [eax + 0x5c]
push eax
call fcn.00410970
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [ebp + 8], ecx
jmp 0x40e22a
mov al, byte [ebp - 0xe]
xor ecx, ecx
mov edx, esi
call fcn.00411610
mov bl, al
mov byte [ebp - 0x5c], bl
test bl, bl
je 0x40e0e5
cmp dword [ebp + 0x14], 0
jne 0x40e0e5
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40e0aa
mov cl, byte [ebp - 0xe]
mov byte [ebp - 9], cl
cmp byte [ebp - 0x25], al
je 0x40e0a5
or byte [0x4abb25], bl
or byte [ebp - 8], bl
jmp 0x40e0e5
cmp eax, 1
jne 0x40e0e5
mov al, byte [ebp - 0xe]
call fcn.0040d010
mov cl, byte [0x4abb25]
mov al, bl
not al
and byte [ebp - 2], al
and cl, al
cmp byte [ebp - 0xe], 0xa5
mov byte [0x4abb25], cl
jne 0x40e0df
cmp dword [0x4a9158], 3
jne 0x40e0df
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.0040e650
add esp, 0x24
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 8], ecx
jmp 0x40e22a
mov al, byte [edi]
mov byte [ebp - 0x14], al
test al, al
je 0x40e1be
cmp byte [ebp - 0x13], 0
jne 0x40e141
mov ecx, dword [0x4a915c]
lea esi, [ebp - 1]
call fcn.00411db0
jmp 0x40e1c0
movzx esi, al
test esi, 0xffffff80
jne 0x40e15e
push 2
push esi
call fcn.00485bae
add esp, 8
test eax, eax
je 0x40e15e
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x56
jne 0x40e19a
movzx esi, byte [ebp - 0x13]
test esi, 0xffffff80
jne 0x40e182
push 2
push esi
call fcn.00485bae
add esp, 8
test eax, eax
je 0x40e182
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x4b
jne 0x40e19a
push 0x10
lea edx, [ebp - 0x12]
push 0
push edx
call fcn.00485ff4
add esp, 0xc
jmp 0x40e1c0
xor esi, esi
lea esp, [esp]
mov eax, dword [esi*8 + 0x4a7660]
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00484671
add esp, 8
test eax, eax
je 0x40e1fa
inc esi
cmp esi, 0x6d
jl 0x40e1a0
xor al, al
mov byte [ebp - 0x34], al
mov byte [ebp - 0xe], al
test al, al
je 0x40e203
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.0040e650
add esp, 0x24
jmp 0x40e22a
mov al, byte [esi*8 + 0x4a7664]
jmp 0x40e1c0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40e21e
movsx edx, byte [edi]
push 0
push edx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40e22a
mov cl, byte [edi]
mov eax, 1
call fcn.0040e9f0
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 [0x4abb24], cl
jne 0x40d8ce
cmp dword [0x4abb78], 0
je 0x40e304
cmp byte [0x4a9137], 0
mov dword [ebp - 0x20], 0xffffffff
jne 0x40e2b8
cmp dword [0x4a9150], 0
jbe 0x40e2b8
cmp byte [0x4a9135], 0
je 0x40e27a
xor eax, eax
jmp 0x40e286
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 [0x4a913d]
mov edi, dword [ebp + 8]
push 1
push 0
push eax
push edi
mov esi, 0xffc3d44d
call fcn.00410d40
add esp, 0x14
lea ecx, [ebp - 0x20]
push edi
push ecx
call fcn.00410820
add esp, 8
mov eax, dword [0x4abb78]
mov edi, 1
sub eax, edi
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4a914c], eax
jbe 0x40e2e9
mov edx, dword [0x4a9154]
push edx
call fcn.00484688
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov dword [0x4abb78], 0
call fcn.00410970
add esp, 4
jmp 0x40e482
cmp dword [0x4aa350], 0
je 0x40e315
mov cl, byte [0x4aa21f]
jmp 0x40e339
cmp dword [0x4a687c], 0
jl 0x40e336
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ac860]
cmp eax, dword [0x4a687c]
jb 0x40e336
xor cl, cl
jmp 0x40e339
mov cl, byte [ebp - 3]
cmp byte [0x4a9135], 0
je 0x40e35b
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 0x40e368
mov al, byte [ebp - 0xa]
not al
and al, cl
or al, byte [ebp - 8]
mov byte [ebp + 8], al
cmp dword [0x4aa350], 0
je 0x40e37f
mov cl, byte [0x4aa21d]
mov byte [ebp - 0x20], cl
jmp 0x40e460
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov edx, 0x8000
test dx, ax
je 0x40e39a
mov bl, 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e3ae
or bl, 0x20
push 0xa2
call esi
mov edx, 0x8000
test dx, ax
je 0x40e3c2
or bl, 1
push 0xa3
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e3d6
or bl, 2
push 0xa4
call esi
mov edx, 0x8000
test dx, ax
je 0x40e3ea
or bl, 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e3fe
or bl, 8
push 0x5b
call esi
mov edx, 0x8000
test dx, ax
je 0x40e40f
or bl, 0x40
push 0x5c
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e420
or bl, 0x80
cmp dword [0x4aa350], 0
je 0x40e45d
mov al, bl
not al
and al, byte [0x4aa21d]
je 0x40e45d
mov cl, byte [0x4aa21f]
not al
and byte [0x4aa21d], al
and byte [0x4aa21e], al
and cl, al
mov al, cl
mov byte [0x4aa21f], cl
mov ecx, 0x4aa240
call fcn.00411540
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.00410d40
add esp, 0x14
mov edi, 1
xor ebx, ebx
cmp dword [0x4aa350], ebx
je 0x40e4a4
mov al, byte [0x4aa21e]
mov dl, al
xor dl, byte [0x4aa21d]
and dl, al
not dl
and al, dl
mov byte [0x4aa21e], al
cmp dword [ebp - 0x40], edi
jne 0x40e519
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x40e519
push 0x14
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e4d8
push 0xffc3d44d
push ebx
push ebx
push ebx
push 0x14
push edi
call fcn.0040eec0
add esp, 0x18
push 0xffc3d44d
push ebx
push ebx
push ebx
push 0x14
push 2
call fcn.0040eec0
add esp, 0x18
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ac228]
jne 0x40e519
push edi
push 0xffffffffffffffff
mov dword [0x4a6884], ebx
call fcn.00401330
add esp, 8
mov dword [0x4a6884], edi
cmp byte [ebp - 0x15], bl
je 0x40e52f
mov edx, dword [ebp - 0x54]
mov eax, dword [0x4ac228]
push ebx
push edx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 4], bl
je 0x40e578
cmp byte [ebp - 0x26], bl
jne 0x40e578
test byte [0x4ad304], 1
jne 0x40e566
or dword [0x4ad304], 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 [0x4ad300], eax
jmp 0x40e56b
mov eax, dword [0x4ad300]
cmp eax, ebx
je 0x40e572
push ebx
call eax
mov byte [0x4aab28], bl
cmp dword [ebp + 0x10], edi
jne 0x40e5aa
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ac228]
jne 0x40e5aa
push edi
push 0xffffffffffffffff
mov dword [0x4a6884], ebx
call fcn.00401330
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