Function at 0x40f250
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
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0x1c], ebx
cmp byte [esi], 0
je 0x4101c0
mov edi, dword [0x4ac1d8]
mov dword [ebp - 0x3c], edi
test ebx, ebx
jne 0x40f299
push 7
push str.Blind
push esi
call fcn.0048616d
add esp, 0xc
test eax, eax
jne 0x40f299
mov byte [0x4b121b], 1
add esi, 7
jmp 0x40f2a4
mov byte [0x4b121b], 0
test ebx, ebx
jne 0x40f2c3
push 6
push 0x4a0da0
push esi
call fcn.0048616d
add esp, 0xc
test eax, eax
jne 0x40f2c3
mov ebx, 2
add esi, 6
mov dword [ebp - 0x1c], ebx
mov eax, dword [edi + 0x5c]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [edi + 0x64]
mov dword [ebp - 0x54], eax
cmp ecx, 1
je 0x40f2dc
cmp ecx, 3
jne 0x40f349
cmp dword [0x4b1184], 0
je 0x40f317
call fcn.0040a1d0
test al, al
jne 0x40f314
test ebx, ebx
jne 0x40f30b
call fcn.0040a230
test al, al
je 0x40f30b
mov edx, str.Click
mov ecx, esi
call fcn.00472e50
test eax, eax
jne 0x40f314
mov dword [ebp + 8], 1
jmp 0x40f349
mov ecx, dword [ebp + 8]
cmp ecx, 3
jne 0x40f325
mov dword [ebp + 8], 2
jmp 0x40f349
cmp dword [edi + 0x5c], 0
mov dword [ebp + 8], 0
jge 0x40f33d
cmp dword [edi + 0x64], 0
jge 0x40f33d
or eax, 0xffffffff
jmp 0x40f33f
xor eax, eax
mov dword [edi + 0x64], eax
mov dword [edi + 0x5c], 0xffffffff
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov byte [ebp - 0x10], 0
test ebx, ebx
je 0x40f3a3
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x40f4ab
cmp eax, dword [0x4b0948]
je 0x40f4ab
mov ecx, ebx
call fcn.00477810
test al, al
jne 0x40f4ab
mov ebx, dword [ebp - 0x38]
push 1
push ebx
push dword [0x4b0948]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
mov edi, ebx
setne byte [ebp - 0x10]
jmp 0x40f4ab
test byte [0x4b0f99], 0xc0
je 0x40f496
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4b0f90]
cmp eax, 0x32
jae 0x40f496
cmp dword [ebp + 8], 2
je 0x40f496
cmp byte [0x4b121b], 0
jne 0x40f496
mov ebx, dword [ebp - 0x1c]
cmp ebx, 2
je 0x40f496
cmp byte [0x4b1173], 0
je 0x40f496
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4b0948]
jne 0x40f496
mov edx, 0x4a0ee8
mov ecx, esi
call fcn.0040a9c0
test ebx, ebx
je 0x40f467
test eax, eax
setne al
test al, al
je 0x40f496
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, 0x8000
jmp 0x40f430
push 0x5b
call edi
test bx, ax
jne 0x40f442
push 0x5c
call edi
test bx, ax
je 0x40f496
mov edx, 1
mov dword [0x4ac1d0], 0
mov ecx, 0x8000012f
call fcn.004027d0
mov dword [0x4ac1d0], 1
jmp 0x40f430
test eax, eax
je 0x40f496
jmp 0x40f470
lea ecx, [eax + 1]
mov edx, 0x4a0eec
call fcn.0040a9c0
test eax, eax
je 0x40f420
cmp byte [eax], 0x7b
je 0x40f420
mov edx, 0x4a0ee8
mov ecx, eax
call fcn.0040a9c0
test eax, eax
jne 0x40f470
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, eax
call fcn.00413090
mov edi, eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
xor edx, edx
mov dword [0x4b11fc], eax
mov ecx, eax
call fcn.00413130
mov cl, 1
mov dword [0x4b1200], eax
call fcn.00412bc0
mov bl, al
and byte [0x4afb2b], bl
cmp dword [0x4af0c8], 0
je 0x40f4f5
mov al, byte [0x4afac1]
mov dl, byte [0x4af9b3]
mov cl, al
not al
and cl, dl
and al, dl
mov byte [ebp - 5], al
jmp 0x40f51b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4b0f90]
cmp eax, dword [0x4ad368]
jae 0x40f513
mov dl, byte [0x4b0f99]
and dl, bl
jmp 0x40f515
xor dl, dl
mov cl, dl
mov byte [ebp - 5], 0
mov bh, byte [0x4afb3c]
not cl
and cl, bl
mov byte [ebp - 3], dl
and bh, cl
cmp byte [0x4b121b], 0
mov byte [ebp - 1], bh
mov byte [0x4afb3c], bh
je 0x40f54a
not bh
and bh, bl
mov byte [ebp - 4], bh
mov bh, bl
mov byte [ebp - 1], bh
jmp 0x40f54f
xor al, al
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 0xf], bh
cmp byte [eax + 0xd3], 0
je 0x40f57e
cmp byte [0x4b121b], 0
jne 0x40f57e
cmp dword [ebp - 0x1c], 2
je 0x40f57e
mov edx, 2
mov cl, 0x14
call fcn.00412470
mov dword [ebp - 0x40], eax
jmp 0x40f585
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp + 8]
mov dword [0x4afb34], ecx
test ecx, ecx
je 0x40f601
cmp ecx, 1
jne 0x40f5a8
mov eax, 0x36b0
mov dword [0x4b1208], 0x1f4
jmp 0x40f5b7
mov eax, 0x2ee0
mov dword [0x4b1208], 0x5dc
call fcn.004903b0
mov eax, dword [0x4ad370]
mov ecx, esp
mov byte [0x4b11f7], bl
mov byte [0x4b1218], 0
mov dword [0x4b1204], 0
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [0x4b1210], 0x80000000
mov dword [0x4b1214], 0x80000000
mov byte [0x4b1219], 0
mov byte [0x4b121a], 1
mov al, byte [0x4af0fc]
mov byte [ebp - 0x1d], al
mov eax, dword [0x4ac1e4]
cmp eax, 8
je 0x40f618
cmp eax, 0xa
jne 0x40f669
mov edi, dword [ebp + 0xc]
test ecx, ecx
jne 0x40f66c
test edi, edi
jne 0x40f66c
mov eax, dword [0x4b25d0]
mov byte [ebp - 0xb], 1
test al, 1
jne 0x40f653
or dword [0x4b25d0], 1
push 0x49ec80
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4b25d4], eax
mov eax, dword [0x4b25d4]
test eax, eax
je 0x40f660
push 1
call eax
mov byte [0x4af0fc], 1
jmp 0x40f670
mov edi, dword [ebp + 0xc]
mov byte [ebp - 0xb], 0
xor bl, bl
mov byte [ebp - 0xa], bl
cmp byte [esi], bl
je 0x40fef7
jmp 0x40f683
mov edi, dword [ebp + 0xc]
cmp dword [0x4afb34], 0
mov byte [ebp - 6], 0
jne 0x40f6ef
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4ac1d8]
sub eax, dword [0x4b0fcc]
cmp eax, dword [ecx + 0xb8]
jbe 0x40f6ef
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40f6e4
mov edx, 1
mov dword [0x4ac1d0], 0
or ecx, 0xffffffff
call fcn.004027d0
mov dword [0x4ac1d0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4b0fcc], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40fe21
movsx eax, byte [esi]
push eax
push 0x4a0ef0
call fcn.00486ac4
add esp, 8
test eax, eax
je 0x40fe5d
movsx eax, byte [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40f729.34
movzx eax, byte [eax + 0x4101ec]
jmp dword [eax*4 + 0x4101d0]
test bh, 3
jne case.0x40f729.34
or bl, 1
jmp 0x40fee2
test bh, 0x30
jne case.0x40f729.34
or bl, 0x10
jmp 0x40fee2
test bh, 0xc
jne case.0x40f729.34
or bl, 4
jmp 0x40fee2
test bh, 0xc0
jne case.0x40f729.34
or bl, 0x40
jmp 0x40fee2
lea edi, [esi + 1]
push 0x7d
push edi
call fcn.00486ac4
add esp, 8
mov dword [ebp - 0x24], eax
test eax, eax
je case.0x40f729.34
mov esi, edi
nop
mov cl, byte [esi]
cmp cl, 0x20
je 0x40f79c
cmp cl, 9
jne 0x40f79f
inc esi
jmp 0x40f790
mov edi, eax
sub edi, esi
mov dword [ebp - 0x2c], edi
jne 0x40f82a
lea edi, [eax + 1]
mov al, byte [edi]
cmp al, 0x7d
jne 0x40f7c2
mov ebx, 1
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], ebx
jmp 0x40f830
cmp al, 0x20
je 0x40f7d0
cmp al, 9
jne 0x40fe19
mov edi, edi
mov al, byte [edi]
cmp al, 0x20
je 0x40f7da
cmp al, 9
jne 0x40f7dd
inc edi
jmp 0x40f7d0
push 4
push str.Down
push edi
call fcn.0048616d
add esp, 0xc
test eax, eax
je 0x40f809
push 2
push 0x49f184
push edi
call fcn.0048616d
add esp, 0xc
test eax, eax
jne 0x40fe19
push 0x7d
push edi
call fcn.00486ac4
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
test edi, edi
je case.0x40f729.34
mov ebx, edi
sub ebx, esi
mov dword [ebp - 0x2c], ebx
jmp 0x40f830
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x24]
push 5
push 0x49e2fc
push esi
call fcn.0048616d
add esp, 0xc
test eax, eax
jne 0x40f8cc
mov byte [edi], al
lea ecx, [esi + 5]
lea ecx, [ecx]
mov al, byte [ecx]
cmp al, 0x20
je 0x40f85a
cmp al, 9
jne 0x40f85d
inc ecx
jmp 0x40f850
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x58]
call fcn.00410f60
mov eax, dword [ebp - 0x34]
add esp, 0x14
mov byte [edi], 0x7d
push dword [ebp - 0x50]
cmp eax, 1
jge 0x40f8b2
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x58]
movzx eax, byte [eax + 0xcf]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00411b40
mov bh, byte [ebp - 1]
add esp, 0xc
mov esi, dword [ebp - 0x24]
jmp 0x40fee0
push dword [ebp - 0x48]
mov edi, dword [ebp + 0xc]
xor edx, edx
push dword [ebp - 0x58]
mov cl, byte [ebp - 2]
push edi
push 0
push dword [ebp - 0x14]
push eax
jmp 0x40fe08
push 3
push 0x4a0ef8
push esi
call fcn.0048616d
add esp, 0xc
test eax, eax
jne 0x40f8f2
mov bh, byte [ebp - 1]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], 1
jmp 0x40fee0
push 4
push str.Text
push esi
call fcn.0048616d
add esp, 0xc
test eax, eax
jne 0x40f937
add esi, 4
lea esp, [esp]
mov al, byte [esi]
cmp al, 0x20
je 0x40f91a
cmp al, 9
jne 0x40f91d
inc esi
jmp 0x40f910
mov bh, byte [ebp - 1]
cmp esi, edi
jne 0x40fe19
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], 2
jmp 0x40fee0
mov eax, dword [ebp - 0x24]
mov edi, 1
mov edx, 0x4a0c84
mov dword [ebp - 0x14], 2
mov ecx, esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x4c], ebx
mov byte [eax], 0
call fcn.0040a9c0
mov ebx, eax
test ebx, ebx
je 0x40f9c6
mov al, byte [ebx]
lea edi, [ebx + 1]
mov byte [ebp - 0x15], al
mov eax, ebx
sub eax, esi
mov byte [ebx], 0
mov dword [ebp - 0x4c], eax
mov al, byte [edi]
cmp al, 0x20
je 0x40f980
cmp al, 9
jne 0x40f983
inc edi
jmp 0x40f976
mov eax, dword [ebp - 0x24]
sub eax, edi
je 0x40f9c3
push 4
push str.Down
push edi
call fcn.0048616d
add esp, 0xc
test eax, eax
jne 0x40fa7a
push 4
add edi, 4
mov dword [ebp - 0x14], eax
push str.Temp
push edi
call fcn.0048616d
add esp, 0xc
test eax, eax
jne 0x40fa5a
mov dword [ebp - 0x44], eax
mov edi, dword [ebp - 0x30]
push dword [0x4b11fc]
lea eax, [ebp - 0xa]
mov ecx, esi
push eax
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 2]
call fcn.00413670
add esp, 0xc
test ebx, ebx
je 0x40f9ea
mov al, byte [ebp - 0x15]
mov byte [ebx], al
mov ebx, dword [ebp - 0x24]
mov byte [ebx], 0x7d
cmp edi, 1
jl 0x40fe16
mov bh, byte [ebp - 2]
mov eax, dword [ebp - 0x28]
test bh, bh
jne 0x40fd59
test ax, ax
jne 0x40fd59
cmp dword [ebp - 0x4c], 1
jne 0x40fac9
cmp dword [ebp - 0x14], 1
je 0x40fe16
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40faa9
test edi, edi
jle 0x40fe16
movsx eax, byte [esi]
push 0
push eax
push 0x102
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp + 0xc]
dec edi
jne 0x40fa37
mov bh, byte [ebp - 1]
mov esi, dword [ebp - 0x24]
jmp 0x40fee0
xor eax, eax
cmp byte [edi], 0x52
sete al
push eax
call fcn.00487758
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp - 0x44], eax
jmp 0x40f9c3
push 0x49f184
push edi
call fcn.004855c8
add esp, 8
test eax, eax
jne 0x40fa98
mov dword [ebp - 0x14], 1
jmp 0x40f9c3
mov ecx, edi
call fcn.0040ee90
mov edi, eax
mov dword [ebp - 0x34], edi
jmp 0x40f9c6
mov al, byte [ebp - 0xa]
mov edx, edi
mov bh, byte [ebp - 1]
mov cl, byte [esi]
or al, bh
movzx eax, al
push eax
call fcn.00410420
mov esi, dword [ebp - 0x24]
add esp, 4
jmp 0x40fee0
cmp dword [ebp + 0xc], 0
mov ecx, esi
mov edx, dword [ebp - 0x2c]
sete al
movzx eax, al
push eax
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00413740
mov bl, al
add esp, 0xc
mov byte [ebp - 2], bl
test bl, bl
je 0x40fbdf
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp - 0x14]
jne 0x40fb0f
test esi, esi
jne 0x40fb08
mov byte [ebp - 6], bl
jmp 0x40fb0f
mov cl, bl
call fcn.0040f0c0
cmp dword [0x4afb34], 0
je 0x40fb1f
mov al, byte [0x4b11f7]
jmp 0x40fb26
xor cl, cl
call fcn.00412bc0
mov bh, byte [ebp - 0xf]
mov dl, al
push 0xffc3d44d
push 0
push 0
push dword [ebp + 0xc]
mov cl, bh
mov byte [ebp - 1], bh
call fcn.00412580
add esp, 0x10
test edi, edi
jle 0x40fe19
lea esp, [esp]
push 0xffc3d44d
push 1
push dword [ebp + 0xc]
mov dl, bl
mov ecx, esi
push 0
call fcn.00410880
add esp, 0x10
cmp dword [0x4afb34], 0
jne 0x40fbd0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4ac1d8]
sub eax, dword [0x4b0fcc]
cmp eax, dword [ecx + 0xb8]
jbe 0x40fbd0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40fbc5
mov edx, 1
mov dword [0x4ac1d0], 0
or ecx, 0xffffffff
call fcn.004027d0
mov dword [0x4ac1d0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4b0fcc], eax
dec edi
jne 0x40fb50
mov esi, dword [ebp - 0x24]
jmp 0x40fee0
mov ebx, dword [ebp - 0x2c]
cmp ebx, 4
jbe 0x40fc51
push 4
push str.ASC
push esi
call fcn.0048616d
mov edi, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
jne 0x40fc54
test edi, edi
jne 0x40fc54
lea ecx, [esi + 3]
mov al, byte [ecx]
cmp al, 0x20
je 0x40fc0f
cmp al, 9
jne 0x40fc12
inc ecx
jmp 0x40fc05
call fcn.00410580
cmp dword [0x4afb34], 2
mov eax, dword [0x4ac1d8]
jne 0x40fc3b
mov ecx, dword [eax + 0x60]
call fcn.004122c0
mov bh, byte [ebp - 0xf]
mov esi, dword [ebp - 0x24]
mov byte [ebp - 1], bh
jmp 0x40fee0
mov ecx, dword [eax + 0x5c]
call fcn.004122c0
mov bh, byte [ebp - 0xf]
mov esi, dword [ebp - 0x24]
mov byte [ebp - 1], bh
jmp 0x40fee0
mov edi, dword [ebp + 0xc]
cmp ebx, 2
jbe 0x40fc43
push 2
push 0x4a0f0c
push esi
call fcn.0048616d
add esp, 0xc
test eax, eax
jne 0x40fc43
push 0x10
push eax
lea eax, [esi + 2]
push eax
call fcn.004875c0
mov edx, eax
add esp, 0xc
cmp edx, 0x10000
jb 0x40fcb1
sub edx, 0x10000
mov ecx, edx
mov eax, edx
shr ecx, 0xa
and eax, 0x3ff
and ecx, 0x3ff
sub ecx, 0x2800
sub eax, 0x2400
movzx ecx, cx
movzx esi, ax
jmp 0x40fcb6
movzx ecx, dx
xor esi, esi
mov bh, byte [ebp - 0xf]
mov byte [ebp - 1], bh
test edi, edi
je 0x40fceb
push 0
movzx eax, cx
push eax
push 0x102
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
test si, si
je 0x40fd2b
push 0
movzx eax, si
push eax
push 0x102
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40fd2b
cmp dword [0x4afb34], 2
je 0x40fd10
mov bl, byte [ebp - 0xa]
or bl, bh
mov dl, bl
call fcn.0040f140
test si, si
je 0x40fd2b
mov dl, bl
mov ecx, esi
call fcn.0040f140
jmp 0x40fd2b
push 0xa
lea eax, [ebp - 0x67]
mov byte [ebp - 0x68], 0x30
push eax
push edx
call fcn.00485828
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.00410580
cmp dword [0x4afb34], 2
mov eax, dword [0x4ac1d8]
jne 0x40fd49
mov ecx, dword [eax + 0x60]
call fcn.004122c0
mov esi, dword [ebp - 0x24]
jmp 0x40fee0
mov ecx, dword [eax + 0x5c]
call fcn.004122c0
mov esi, dword [ebp - 0x24]
jmp 0x40fee0
push 0
mov edx, eax
mov cl, bh
call fcn.00412d50
mov esi, dword [ebp - 0x14]
mov bl, al
add esp, 4
mov byte [ebp - 0x5c], bl
test bl, bl
je 0x40fdef
cmp dword [ebp + 0xc], 0
jne 0x40fdef
test esi, esi
jne 0x40fdab
mov eax, dword [ebp - 0x44]
mov byte [ebp - 6], bh
cmp eax, 1
jne 0x40fd99
mov al, byte [ebp - 1]
or byte [0x4afb3c], bl
or al, bl
jmp 0x40fde9
cmp eax, 2
jne 0x40fda4
or byte [0x4afb2b], bl
mov al, byte [ebp - 1]
or al, bl
jmp 0x40fde9
cmp esi, 1
jne 0x40fdef
mov cl, bh
call fcn.0040f0c0
mov al, byte [0x4afb3c]
not bl
mov cl, byte [ebp - 4]
and al, bl
and byte [0x4afb2b], bl
and cl, bl
mov byte [0x4afb3c], al
mov byte [ebp - 4], cl
cmp bh, 0xa5
jne 0x40fde7
cmp dword [0x4b1200], 3
jne 0x40fde7
and cl, 0xfe
mov byte [ebp - 4], cl
or al, cl
mov byte [ebp - 0xf], al
mov byte [ebp - 1], al
mov edx, dword [ebp - 0x28]
mov cl, bh
push 0
push SysReAllocString
push SysReAllocString
push dword [ebp + 0xc]
push dword [ebp - 0x5c]
push esi
push edi
push dword [ebp - 0xf]
push dword [ebp - 0xa]
call fcn.00410270
add esp, 0x24
mov bh, byte [ebp - 1]
mov esi, dword [ebp - 0x24]
jmp 0x40fee0
cmp eax, 2
jne 0x40fe60
movsx eax, byte [esi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x40fe31.11
jmp dword [eax*4 + 0x41024c]
cmp byte [esi + 1], 0xa
lea eax, [esi + 1]
cmove esi, eax
mov al, 0xd
mov byte [ebp - 2], al
jmp 0x40fe89
mov al, 8
mov byte [ebp - 2], al
jmp 0x40fe89
mov al, 9
mov byte [ebp - 2], al
jmp 0x40fe89
mov byte [ebp - 2], 0
jmp 0x40feb3
mov eax, dword [ebp - 0x1c]
or bl, bh
je 0x40fe6c
test eax, eax
jne 0x40fe6c
mov al, 1
jmp 0x40fe6e
xor al, al
mov cl, byte [esi]
lea edx, [ebp - 0xa]
push eax
push dword [0x4b11fc]
call fcn.004135a0
add esp, 8
mov byte [ebp - 2], al
test al, al
je 0x40feb0
push 0
push SysReAllocString
push SysReAllocString
push edi
push 0
push 2
push 1
push dword [ebp - 0xf]
xor edx, edx
mov cl, al
push dword [ebp - 0xa]
call fcn.00410270
add esp, 0x24
jmp 0x40fee0
mov bl, byte [ebp - 0xa]
test edi, edi
je 0x40fecb
movsx eax, byte [esi]
push 0
push eax
push 0x102
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40fee0
mov cl, byte [esi]
or bl, bh
movzx eax, bl
mov edx, 1
push eax
call fcn.00410420
add esp, 4
xor bl, bl
mov byte [ebp - 0xa], bl
mov al, byte [ebp - 6]
inc esi
mov byte [0x4afb3d], al
cmp byte [esi], 0
jne 0x40f680
cmp dword [0x4afb34], 0
je 0x40ffc7
or esi, 0xffffffff
cmp byte [0x4b1219], 0
mov dword [ebp - 0x28], esi
jne 0x40ff66
cmp dword [0x4b1204], 0
jbe 0x40ff66
cmp byte [0x4b121b], 0
je 0x40ff29
xor ebx, ebx
jmp 0x40ff35
movzx ebx, byte [ebp - 5]
movzx eax, byte [ebp - 3]
not ebx
and ebx, eax
or bl, byte [0x4afb2b]
or bl, byte [ebp - 1]
mov dl, byte [0x4b11f7]
mov cl, bl
push 0xffc3d44d
push 1
push 1
push 0
call fcn.00412580
add esp, 0x10
lea ecx, [ebp - 0x28]
mov dl, bl
call fcn.00412170
mov esi, dword [ebp - 0x28]
cmp dword [0x4afb34], 1
mov eax, 0x5dc
mov ecx, 0x1f4
cmove eax, ecx
cmp dword [0x4b1208], eax
jbe 0x40ff90
push dword [0x4afb38]
call fcn.004858b4
add esp, 4
mov dword [0x4afb34], 0
test esi, esi
js 0x41004d
mov edx, 1
mov dword [0x4ac1d0], 0
mov ecx, esi
call fcn.004027d0
mov dword [0x4ac1d0], 1
jmp 0x41004d
cmp dword [0x4af0c8], 0
je 0x40ffdb
mov cl, byte [0x4af9b3]
mov dl, byte [ebp - 3]
jmp 0x410004
cmp dword [0x4ad368], 0
jl 0x40ffff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4b0f90]
cmp eax, dword [0x4ad368]
jb 0x40ffff
mov dl, byte [ebp - 3]
xor cl, cl
jmp 0x410004
mov dl, byte [ebp - 3]
mov cl, dl
or cl, byte [0x4afb2b]
cmp byte [0x4b121b], 0
je 0x410025
mov al, cl
xor al, dl
mov bl, al
and al, cl
and bl, dl
not bl
and bl, bh
or bl, al
jmp 0x41002e
mov bl, byte [ebp - 5]
not bl
and bl, cl
or bl, bh
push 0xffc3d44d
push 1
push 1
push dword [ebp + 0xc]
xor cl, cl
call fcn.00412bc0
mov dl, al
mov cl, bl
call fcn.00412580
add esp, 0x10
cmp dword [0x4af0c8], 0
je 0x410070
mov cl, byte [0x4afac0]
mov al, cl
xor al, byte [0x4afac1]
and al, cl
not al
and cl, al
mov byte [0x4afac0], cl
cmp dword [ebp - 0x40], 1
jne 0x41010c
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test al, 1
jne 0x41010c
push 0x14
call esi
mov ecx, 0x8000
test cx, ax
je 0x4100b4
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 1
call fcn.00410880
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x14
mov ecx, 2
call fcn.00410880
mov ebx, dword [sym.imp.USER32.dll_GetForegroundWindow]
add esp, 0x10
push 0
call ebx
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call esi
cmp eax, dword [0x4b0948]
jne 0x410118
mov edx, 1
mov dword [0x4ac1d0], 0
or ecx, 0xffffffff
call fcn.004027d0
mov dword [0x4ac1d0], 1
jmp 0x410118
mov ebx, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp byte [ebp - 0x10], 0
je 0x41012f
push 0
push dword [ebp - 0x38]
push dword [0x4b0948]
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 0xb], 0
je 0x41017b
cmp byte [ebp - 0x1d], 0
jne 0x41017b
mov eax, dword [0x4b25d0]
test al, 1
jne 0x410167
or dword [0x4b25d0], 1
push 0x49ec80
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4b25d4], eax
mov eax, dword [0x4b25d4]
test eax, eax
je 0x410174
push 0
call eax
mov byte [0x4af0fc], 0
cmp dword [ebp + 8], 1
jne 0x4101b1
push 0
call ebx
push eax
call esi
cmp eax, dword [0x4b0948]
jne 0x4101b1
mov edx, 1
mov dword [0x4ac1d0], 0
or ecx, 0xffffffff
call fcn.004027d0
mov dword [0x4ac1d0], 1
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x60]
mov dword [eax + 0x5c], ecx
mov ecx, dword [ebp - 0x54]
mov dword [eax + 0x64], ecx
lea esp, [ebp - 0x98]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret