Function at 0x40e2d0
Capabilities:
Check for foreground window switch
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
mov dword [ebp - 0x54], 0
je 0x40f471
mov esi, dword [0x4b7468]
mov dword [ebp - 0x48], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov bl, byte [ebp + 0xc]
mov dword [ebp - 0x3c], eax
test bl, bl
jne 0x40e37d
push 7
push str.Blind
push edi
call fcn.004924d0
add esp, 0xc
test eax, eax
jne 0x40e37d
add edi, 7
mov byte [0x4ba678], 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 - 0x54], ecx
cmp eax, 1
je 0x40e342
cmp eax, 3
jne 0x40e3b3
cmp dword [0x4bdef4], 0
je 0x40e389
call fcn.00409b10
test al, al
jne 0x40e386
test bl, bl
jne 0x40e374
call fcn.00409b70
test al, al
je 0x40e374
push str.Click
mov eax, edi
call fcn.0047e090
add esp, 4
test eax, eax
jne 0x40e386
mov dword [ebp + 0x10], 1
jmp 0x40e3b3
mov byte [0x4ba678], 0
jmp 0x40e329
mov eax, dword [ebp + 0x10]
cmp eax, 3
jne 0x40e397
mov dword [ebp + 0x10], 2
jmp 0x40e3b3
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40e3a9
cmp dword [esi + 0x64], eax
jge 0x40e3a9
or eax, 0xffffffff
mov dword [esi + 0x64], eax
mov dword [esi + 0x5c], 0xffffffff
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov byte [ebp - 0x11], 0
test eax, eax
je 0x40e40e
push ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
mov dword [ebp - 0x60], edi
test edi, edi
je 0x40e50c
cmp edi, dword [0x4bd780]
je 0x40e50c
mov esi, dword [ebp + 0x14]
call fcn.00483760
test al, al
jne 0x40e50c
mov edx, dword [0x4bd780]
push 1
push edi
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0x11]
mov ebx, edi
jmp 0x40e50c
test byte [0x4bddbd], 0xc0
je 0x40e4f7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4bddb4]
cmp eax, 0x32
jae 0x40e4f7
cmp dword [ebp + 0x10], 2
je 0x40e4f7
cmp byte [0x4ba678], bl
jne 0x40e4f7
cmp byte [0x4bdede], bl
je 0x40e4f7
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4bd780]
jne 0x40e4f7
mov eax, dword [ebp + 8]
mov edi, 0x4a827c
call fcn.0040a290
cmp byte [ebp + 0xc], bl
je 0x40e4d1
test eax, eax
setne al
test al, al
je 0x40e4f7
mov esi, dword [ebp - 0x3c]
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
jne 0x40e4a4
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x40e4f7
mov dword [0x4b73c8], ebx
cmp dword [0x4bd780], esi
jne 0x40e559
push 1
push 0x8000012f
call fcn.00401280
add esp, 8
mov dword [0x4b73c8], 1
jmp 0x40e482
test eax, eax
je 0x40e4f7
inc eax
mov edi, 0x4a8280
call fcn.0040a290
test eax, eax
je 0x40e47f
cmp byte [eax], 0x7b
je 0x40e47f
mov edi, 0x4a827c
call fcn.0040a290
test eax, eax
jne 0x40e4d5
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x40e50c
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 [0x4ba69c], eax
push eax
xor eax, eax
call fcn.00412a30
add esp, 4
push 1
mov dword [0x4ba698], eax
call fcn.00412530
add esp, 4
cmp dword [0x4bb8a0], 0
mov bl, al
je 0x40e573
mov cl, byte [0x4bb76b]
mov dl, byte [0x4bb76f]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 9], cl
jmp 0x40e59e
push 0x8000012f
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x4b73c8], 1
jmp 0x40e482
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4bddb4]
cmp eax, dword [0x4b73bc]
jae 0x40e593
mov al, byte [0x4bddbd]
and al, bl
mov byte [ebp - 2], al
jmp 0x40e59a
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 9], 0
mov cl, byte [0x4bd07d]
not al
and al, bl
and cl, al
mov al, byte [0x4ba678]
mov byte [0x4bd07d], cl
test al, al
je 0x40e5c5
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 7], bl
jmp 0x40e5cc
mov byte [ebp - 3], 0
mov byte [ebp - 7], cl
mov ecx, dword [ebp - 0x48]
cmp byte [ecx + 0xcf], 0
je 0x40e5ed
test al, al
jne 0x40e5ed
push 2
push 0x14
call fcn.00411ca0
add esp, 8
mov dword [ebp - 0x50], eax
jmp 0x40e5f4
mov dword [ebp - 0x50], 0
mov edi, dword [ebp + 0x10]
mov dword [0x4bd0d0], edi
test edi, edi
je 0x40e666
cmp edi, 1
jne 0x40e617
mov eax, 0x36b0
mov dword [0x4ba68c], 0x1f4
jmp 0x40e626
mov eax, 0x2ee0
mov dword [0x4ba68c], 0x5dc
call fcn.0049c880
mov eax, esp
mov dword [0x4ba694], eax
mov eax, SysReAllocString
mov byte [0x4ba684], bl
mov dword [0x4ba67c], eax
mov dword [0x4ba680], eax
mov byte [0x4ba67b], 0
mov dword [0x4ba690], 0
mov byte [0x4ba67a], 0
mov byte [0x4ba679], 1
mov eax, dword [0x4b7478]
mov dl, byte [0x4bc080]
mov byte [ebp - 0x29], dl
cmp eax, 8
je 0x40e67e
cmp eax, 0xa
jne 0x40e6b9
test edi, edi
jne 0x40e6b9
cmp dword [ebp + 0x14], edi
jne 0x40e6b9
test byte [0x4be7b8], 1
mov byte [ebp - 0xa], 1
jne 0x40e6bf
or dword [0x4be7b8], 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 [0x4be7b4], eax
jmp 0x40e6c4
mov byte [ebp - 0xa], 0
jmp 0x40e6d3
mov eax, dword [0x4be7b4]
test eax, eax
je 0x40e6cc
push 1
call eax
mov byte [0x4bc080], 1
mov eax, dword [ebp + 8]
mov byte [ebp - 0x17], 0
cmp byte [eax], 0
mov byte [ebp - 1], 0
je 0x40efcd
mov bl, byte [ebp - 7]
cmp dword [0x4bd0d0], 0
mov byte [ebp - 8], 0
jne 0x40e767
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4bddf4]
mov ecx, dword [0x4b7468]
cmp eax, dword [ecx + 0xb4]
jbe 0x40e767
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x8c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40e760
mov eax, dword [0x4bd780]
mov dword [0x4b73c8], 0
cmp eax, dword [ebp - 0x3c]
jne 0x40e74e
push 1
push 0xffffffffffffffff
call fcn.00401280
add esp, 8
jmp 0x40e756
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x4b73c8], 1
call esi
mov dword [0x4bddf4], eax
cmp byte [ebp + 0xc], 0
jne 0x40f00f
mov esi, dword [ebp + 8]
movsx eax, byte [esi]
push eax
push str._
call fcn.00492af1
add esp, 8
test eax, eax
je 0x40f00f
movsx eax, byte [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40e7a3.34
movzx ecx, byte [eax + 0x40f49c]
jmp dword [ecx*4 + 0x40f480]
test bl, 3
jne case.0x40e7a3.34
or byte [ebp - 1], 1
jmp case.0x40e7a3.34
test bl, 0x30
jne case.0x40e7a3.34
or byte [ebp - 1], 0x10
jmp case.0x40e7a3.34
test bl, 0xc
jne case.0x40e7a3.34
or byte [ebp - 1], 4
jmp case.0x40e7a3.34
test bl, 0xc0
jne case.0x40e7a3.34
or byte [ebp - 1], 0x40
jmp case.0x40e7a3.34
mov esi, dword [ebp + 8]
inc esi
push 0x7d
push esi
call fcn.00492af1
mov edi, eax
add esp, 8
mov dword [ebp - 0x20], edi
test edi, edi
je case.0x40e7a3.34
mov ebx, esi
mov al, byte [ebx]
cmp al, 0x20
je 0x40e81a
cmp al, 9
jne 0x40e81d
inc ebx
jmp 0x40e810
mov esi, edi
sub esi, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp + 8], ebx
mov dword [ebp - 0x34], esi
jne 0x40e8b2
mov al, byte [edi + 1]
lea esi, [edi + 1]
cmp al, 0x7d
jne 0x40e846
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x34], 1
jmp 0x40e8ac
cmp al, 0x20
je 0x40e855
cmp al, 9
jne 0x40efa7
mov ebx, dword [ebp - 0x10]
mov al, byte [esi]
cmp al, 0x20
je 0x40e85f
cmp al, 9
jne 0x40e862
inc esi
jmp 0x40e855
push 4
push str.Down
push esi
call fcn.004924d0
add esp, 0xc
test eax, eax
je 0x40e891
push 2
push 0x4a6bac
push esi
call fcn.004924d0
add esp, 0xc
test eax, eax
jne 0x40efa7
mov ebx, dword [ebp - 0x10]
push 0x7d
push esi
call fcn.00492af1
add esp, 8
mov dword [ebp - 0x20], eax
test eax, eax
je 0x40efb1
sub eax, ebx
mov dword [ebp - 0x34], eax
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x20]
push 5
push 0x4a79d4
push ebx
call fcn.004924d0
add esp, 0xc
test eax, eax
jne 0x40e955
mov byte [edi], al
lea eax, [ebx + 5]
nop
mov cl, byte [eax]
cmp cl, 0x20
je 0x40e8dc
cmp cl, 9
jne 0x40e8df
inc eax
jmp 0x40e8d0
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x24]
push ecx
call fcn.00410500
mov ecx, dword [ebp - 0x30]
add esp, 0x18
mov byte [edi], 0x7d
cmp ecx, 1
jge 0x40e930
mov eax, dword [ebp - 0x48]
movzx ecx, byte [eax + 0xcb]
mov edx, dword [ebp - 0x4c]
push edx
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x70]
lea eax, [ebp - 0x24]
call fcn.00411170
add esp, 0xc
jmp 0x40efa7
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x24]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push edx
mov edx, dword [ebp - 7]
push 0
push eax
mov eax, dword [ebp - 0x28]
push edx
push 0
push eax
jmp 0x40ef9c
push 3
push 0x4a828c
push ebx
call fcn.004924d0
add esp, 0xc
test eax, eax
jne 0x40e972
mov byte [ebp + 0xc], 1
jmp 0x40efa7
mov ecx, dword [ebp - 0x20]
mov edi, 0x4a80dc
mov eax, ebx
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x44], esi
mov byte [ecx], 0
call fcn.0040a290
mov dword [ebp - 0x64], eax
test eax, eax
je 0x40ea1b
mov dl, byte [eax]
mov ecx, eax
sub ecx, ebx
mov byte [ebp - 0x2b], dl
mov byte [eax], 0
mov dword [ebp - 0x44], ecx
lea esi, [eax + 1]
mov al, byte [esi]
cmp al, 0x20
je 0x40e9bc
cmp al, 9
jne 0x40e9bf
inc esi
jmp 0x40e9b2
mov eax, dword [ebp - 0x20]
sub eax, esi
je 0x40ea1b
push 4
push str.Down
push esi
call fcn.004924d0
add esp, 0xc
test eax, eax
jne 0x40e9f8
push 4
push str.Temp
add esi, 4
push esi
mov dword [ebp - 0x1c], eax
call fcn.004924d0
add esp, 0xc
test eax, eax
setne byte [ebp - 0x2a]
jmp 0x40ea1b
push 0x4a6bac
push esi
call fcn.00491a51
add esp, 8
test eax, eax
jne 0x40ea13
mov dword [ebp - 0x1c], 1
jmp 0x40ea1b
call fcn.0040dc30
mov dword [ebp - 0x30], eax
mov al, byte [ebx]
test al, al
je 0x40ea5b
cmp byte [ebx + 1], 0
jne 0x40ea37
mov ecx, dword [0x4ba69c]
lea esi, [ebp - 1]
call fcn.00412d60
jmp 0x40ea5d
xor esi, esi
lea esp, [esp]
mov eax, dword [esi*8 + 0x4b81d8]
push ebx
push eax
call fcn.00491a51
add esp, 8
test eax, eax
je 0x40ea72
inc esi
cmp esi, 0x6d
jl 0x40ea40
xor al, al
mov esi, dword [ebp - 0x10]
mov bl, al
mov byte [ebp - 0x28], bl
test al, al
je 0x40ea7b
mov dword [ebp + 8], 0
jmp 0x40eaed
mov al, byte [esi*8 + 0x4b81dc]
jmp 0x40ea5d
mov eax, esi
call fcn.00412c00
movzx edi, ax
mov dword [ebp + 8], edi
test di, di
jne 0x40eaf0
mov al, byte [esi]
call fcn.0040a260
cmp al, 0x56
jne 0x40eaf0
mov al, byte [esi + 1]
call fcn.0040a260
cmp al, 0x4b
jne 0x40eaf0
lea ebx, [esi + 2]
mov edi, 0x4a8298
mov eax, ebx
call fcn.0040a290
mov edi, eax
test edi, edi
je 0x40eadb
mov al, byte [edi + 1]
call fcn.0040a260
cmp al, 0x43
jne 0x40eadb
push 0x10
push 0
add edi, 2
push edi
call fcn.004933d7
movzx ecx, ax
add esp, 0xc
mov dword [ebp + 8], ecx
push 0x10
push 0
push ebx
call fcn.004933d7
mov bl, al
add esp, 0xc
mov byte [ebp - 0x28], bl
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x40eafc
mov dl, byte [ebp - 0x2b]
mov byte [eax], dl
cmp dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x20]
mov byte [eax], 0x7d
jl 0x40efa7
test bl, bl
jne 0x40ef06
test di, di
jne 0x40ef06
movzx ecx, byte [esi]
push ecx
call fcn.004930f8
add esp, 4
test eax, eax
mov eax, 1
je 0x40ebad
cmp dword [ebp - 0x44], eax
jbe 0x40ebb0
cmp dword [0x4bd0d0], 0
mov esi, dword [ebp - 0x10]
je 0x40eb5e
call fcn.0040dc30
push eax
push 0
push 0
push 0
push 0
call fcn.004113c0
add esp, 0x14
jmp 0x40efa7
mov edx, dword [ebp - 0x3c]
mov dword [0x4b73c8], 0
cmp dword [0x4bd780], edx
jne 0x40eb92
push 1
call fcn.0040dc30
push eax
call fcn.00401280
add esp, 8
mov dword [0x4b73c8], 1
jmp 0x40efa7
call fcn.0040dc30
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x4b73c8], 1
jmp 0x40efa7
cmp dword [ebp - 0x44], eax
jne 0x40ebe8
cmp dword [ebp - 0x1c], eax
je 0x40efa7
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40ebd9
movsx ecx, byte [esi]
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40efa7
mov eax, dword [ebp - 0x30]
mov cl, byte [esi]
call fcn.0040f8c0
jmp 0x40efa7
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x10]
lea edx, [ebp - 7]
push edx
lea eax, [ebp - 0x1c]
sete bl
push eax
call fcn.00412dd0
add esp, 8
mov byte [ebp - 0x28], al
test al, al
je 0x40edf3
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40ec26
cmp dword [ebp - 0x1c], edi
jne 0x40ec21
mov byte [ebp - 8], al
jmp 0x40ec26
call fcn.0040de00
cmp dword [0x4bd0d0], 0
je 0x40ec3a
mov bl, byte [0x4ba684]
jmp 0x40ed2c
cmp dword [0x4bb8a0], 0
je 0x40ec4e
mov bl, byte [0x4bb76b]
jmp 0x40ed2c
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ec69
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40ec7d
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ec91
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40eca5
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ecb9
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40eccd
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ecde
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40ecef
or bl, 0x80
cmp dword [0x4bb8a0], 0
je 0x40ed2c
mov al, bl
not al
and al, byte [0x4bb76b]
je 0x40ed2c
mov cl, byte [0x4bb76f]
not al
and byte [0x4bb76b], al
and byte [0x4bb76e], al
and cl, al
mov al, cl
mov byte [0x4bb76f], cl
mov ecx, 0x4bb790
call fcn.00412630
mov eax, dword [ebp - 7]
push 0
push 0
push edi
push ebx
push eax
mov eax, 0xffc3d44d
call fcn.00411de0
mov eax, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jle 0x40efa7
mov ebx, dword [ebp - 0x28]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x1c]
push 0xffc3d44d
push 1
push edi
push 0
push ebx
push ecx
call fcn.0040fda0
add esp, 0x18
cmp dword [0x4bd0d0], 0
jne 0x40ede5
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4bddf4]
mov edx, dword [0x4b7468]
cmp eax, dword [edx + 0xb4]
jbe 0x40ede5
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40edde
mov ecx, dword [ebp - 0x3c]
mov dword [0x4b73c8], 0
cmp dword [0x4bd780], ecx
jne 0x40edcc
push 1
push 0xffffffffffffffff
call fcn.00401280
add esp, 8
jmp 0x40edd4
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x4b73c8], 1
call esi
mov dword [0x4bddf4], eax
dec dword [ebp + 8]
jne 0x40ed54
jmp 0x40efa7
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x10]
cmp edi, 4
jbe 0x40ee62
push 4
push str.ASC
push esi
call fcn.004924d0
add esp, 0xc
test eax, eax
jne 0x40ee62
cmp dword [ebp + 0x14], eax
jne 0x40ee62
lea eax, [esi + 3]
lea ebx, [ebx]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40ee2c
cmp cl, 9
jne 0x40ee2f
inc eax
jmp 0x40ee20
call fcn.0040f9b0
cmp dword [0x4bd0d0], 2
jne 0x40ee50
mov edx, dword [0x4b7468]
mov esi, dword [edx + 0x60]
call fcn.004119b0
jmp 0x40efa7
mov eax, dword [0x4b7468]
mov esi, dword [eax + 0x5c]
call fcn.004119b0
jmp 0x40efa7
mov ebx, 2
cmp edi, ebx
jbe 0x40efa7
push ebx
push 0x4a82a4
push esi
call fcn.004924d0
add esp, 0xc
test eax, eax
jne 0x40efa7
push 0x10
push eax
add esi, ebx
push esi
call fcn.004933d7
movzx ecx, ax
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x40eeaf
push 0
push ecx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40eee7
cmp dword [0x4bd0d0], ebx
je 0x40eecc
movzx edx, byte [ebp - 7]
movzx eax, byte [ebp - 1]
or eax, edx
push ecx
call fcn.0040de80
add esp, 4
jmp 0x40eee7
push 0xa
lea eax, [ebp - 0x6b]
push eax
push ecx
mov byte [ebp - 0x6c], 0x30
call fcn.004916e2
add esp, 0xc
lea eax, [ebp - 0x6c]
call fcn.0040f9b0
cmp dword [0x4bd0d0], ebx
jne 0x40ee50
mov edx, dword [0x4b7468]
mov esi, dword [edx + 0x60]
call fcn.004119b0
jmp 0x40efa7
xor ecx, ecx
mov edx, edi
mov al, bl
call fcn.00412700
mov byte [ebp - 0x40], al
test al, al
je 0x40ef78
cmp dword [ebp + 0x14], 0
jne 0x40ef78
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40ef3e
mov byte [ebp - 8], bl
cmp byte [ebp - 0x2a], al
je 0x40ef36
mov cl, byte [ebp - 0x40]
or byte [0x4bd07d], cl
mov dl, byte [ebp - 0x40]
or byte [ebp - 7], dl
jmp 0x40ef78
cmp eax, 1
jne 0x40ef78
mov al, bl
call fcn.0040de00
mov al, byte [ebp - 0x40]
mov cl, byte [0x4bd07d]
not al
and byte [ebp - 3], al
and cl, al
mov byte [0x4bd07d], cl
cmp bl, 0xa5
jne 0x40ef72
cmp dword [0x4ba698], 3
jne 0x40ef72
and byte [ebp - 3], 0xfe
or cl, byte [ebp - 3]
mov byte [ebp - 7], cl
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x1c]
push 0
push SysReAllocString
push SysReAllocString
push eax
mov eax, dword [ebp - 7]
push ecx
mov ecx, dword [ebp - 0x28]
push edx
push eax
push edi
push ecx
mov ecx, dword [ebp - 0x30]
mov al, byte [ebp - 1]
call fcn.0040f500
add esp, 0x24
mov edx, dword [ebp - 0x20]
mov dword [ebp + 8], edx
mov byte [ebp - 1], 0
mov bl, byte [ebp - 7]
mov eax, dword [ebp + 8]
mov dl, byte [ebp - 8]
inc eax
cmp byte [eax], 0
mov dword [ebp + 8], eax
mov byte [0x4bd07c], dl
jne 0x40e6ea
xor edi, edi
cmp dword [0x4bd0d0], edi
je 0x40f1ba
cmp byte [0x4ba67a], 0
mov dword [ebp - 0x24], 0xffffffff
jne 0x40f176
cmp dword [0x4ba690], edi
jbe 0x40f176
cmp byte [0x4ba678], 0
je 0x40f134
xor eax, eax
jmp 0x40f140
mov eax, dword [ebp + 8]
mov al, byte [eax]
mov byte [ebp - 0x18], al
test al, al
je 0x40f0b1
cmp byte [ebp - 0x17], 0
jne 0x40f038
mov ecx, dword [0x4ba69c]
lea esi, [ebp - 1]
call fcn.00412d60
jmp 0x40f0b3
movzx esi, al
test esi, 0xffffff80
jne 0x40f055
push 2
push esi
call fcn.0049303e
add esp, 8
test eax, eax
je 0x40f055
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x56
jne 0x40f091
movzx esi, byte [ebp - 0x17]
test esi, 0xffffff80
jne 0x40f079
push 2
push esi
call fcn.0049303e
add esp, 8
test eax, eax
je 0x40f079
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x4b
jne 0x40f091
push 0x10
lea ecx, [ebp - 0x16]
push 0
push ecx
call fcn.004933d7
add esp, 0xc
jmp 0x40f0b3
xor esi, esi
mov eax, dword [esi*8 + 0x4b81d8]
lea edx, [ebp - 0x18]
push edx
push eax
call fcn.00491a51
add esp, 8
test eax, eax
je 0x40f0f4
inc esi
cmp esi, 0x6d
jl 0x40f093
xor al, al
mov byte [ebp - 0x38], al
mov byte [ebp - 0x28], al
test al, al
mov eax, dword [ebp + 0x14]
je 0x40f0fd
mov ecx, dword [ebp - 7]
mov edx, dword [ebp - 0x38]
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.0040f500
add esp, 0x24
mov byte [ebp - 1], 0
jmp case.0x40e7a3.34
mov al, byte [esi*8 + 0x4b81dc]
jmp 0x40f0b3
mov ecx, dword [ebp + 8]
test eax, eax
je 0x40f11f
movsx edx, byte [ecx]
push 0
push edx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [ebp - 1], 0
jmp case.0x40e7a3.34
mov cl, byte [ecx]
mov eax, 1
call fcn.0040f8c0
mov byte [ebp - 1], 0
jmp case.0x40e7a3.34
movzx eax, byte [ebp - 9]
movzx ecx, byte [ebp - 2]
not eax
and eax, ecx
or al, byte [ebp - 7]
movzx edx, byte [0x4ba684]
mov ebx, 1
push ebx
push ebx
mov byte [ebp + 8], al
mov esi, dword [ebp + 8]
push edi
push edx
push esi
mov eax, 0xffc3d44d
call fcn.00411de0
add esp, 0x14
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.00411790
add esp, 8
jmp 0x40f17b
mov ebx, 1
mov eax, dword [0x4bd0d0]
sub eax, ebx
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4ba68c], eax
jbe 0x40f1a7
mov ecx, dword [0x4ba694]
push ecx
call fcn.00491a68
add esp, 4
mov esi, dword [ebp - 0x24]
mov dword [0x4bd0d0], edi
call fcn.004119b0
jmp 0x40f332
cmp dword [0x4bb8a0], edi
je 0x40f1ca
mov cl, byte [0x4bb76f]
jmp 0x40f1ed
cmp dword [0x4b73bc], edi
jl 0x40f1ea
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4bddb4]
cmp eax, dword [0x4b73bc]
jb 0x40f1ea
xor cl, cl
jmp 0x40f1ed
mov cl, byte [ebp - 2]
cmp byte [0x4ba678], 0
je 0x40f20f
mov dl, byte [ebp - 2]
mov al, cl
xor al, dl
mov bl, al
and bl, dl
not bl
and bl, byte [ebp - 7]
and al, cl
or bl, al
mov byte [ebp + 8], bl
jmp 0x40f21c
mov al, byte [ebp - 9]
not al
and al, cl
or al, byte [ebp - 7]
mov byte [ebp + 8], al
cmp dword [0x4bb8a0], edi
je 0x40f232
mov dl, byte [0x4bb76b]
mov byte [ebp - 0x24], dl
jmp 0x40f312
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f24d
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40f261
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f275
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40f289
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f29d
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40f2b1
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f2c2
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40f2d3
or bl, 0x80
cmp dword [0x4bb8a0], edi
je 0x40f30f
mov al, bl
not al
and al, byte [0x4bb76b]
je 0x40f30f
mov cl, byte [0x4bb76f]
not al
and byte [0x4bb76b], al
and byte [0x4bb76e], al
and cl, al
mov al, cl
mov byte [0x4bb76f], cl
mov ecx, 0x4bb790
call fcn.00412630
mov byte [ebp - 0x24], bl
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
mov ebx, 1
push ebx
push ebx
push eax
push ecx
push edx
mov eax, 0xffc3d44d
call fcn.00411de0
add esp, 0x14
cmp dword [0x4bb8a0], edi
je 0x40f352
mov al, byte [0x4bb76e]
mov cl, al
xor cl, byte [0x4bb76b]
and cl, al
not cl
and al, cl
mov byte [0x4bb76e], al
cmp dword [ebp - 0x50], ebx
jne 0x40f3bc
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
jne 0x40f3bc
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.0040fda0
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [0x4bd780]
cmp eax, ecx
jne 0x40f3bc
mov dword [0x4b73c8], edi
cmp ecx, esi
jne 0x40f3ae
push ebx
push 0xffffffffffffffff
call fcn.00401280
add esp, 8
jmp 0x40f3b6
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x4b73c8], ebx
cmp byte [ebp - 0x11], 0
je 0x40f3d3
mov edx, dword [ebp - 0x60]
mov eax, dword [0x4bd780]
push edi
push edx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 0xa], 0
je 0x40f41f
cmp byte [ebp - 0x29], 0
jne 0x40f41f
test byte [0x4be7b8], 1
jne 0x40f40c
or dword [0x4be7b8], ebx
push str.BlockInput
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4be7b4], eax
jmp 0x40f411
mov eax, dword [0x4be7b4]
cmp eax, edi
je 0x40f418
push edi
call eax
mov byte [0x4bc080], 0
cmp dword [ebp + 0x10], ebx
jne 0x40f462
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [0x4bd780]
cmp eax, ecx
jne 0x40f462
mov dword [0x4b73c8], edi
cmp ecx, dword [ebp - 0x3c]
jne 0x40f454
push ebx
push 0xffffffffffffffff
call fcn.00401280
add esp, 8
jmp 0x40f45c
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x4b73c8], ebx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x54]
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