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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0
push esi
push edi
je 0x4104de
mov edi, dword [ebp + 0xc]
mov esi, dword [0x4aa988]
mov eax, dword [0x4af8b0]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x58], eax
test edi, edi
jne 0x40f383
push 7
push str.Blind
push ebx
call fcn.0048875d
add esp, 0xc
test eax, eax
jne 0x40f383
add ebx, 7
mov byte [0x4ad1e5], 1
mov dword [ebp + 8], ebx
jmp 0x40f38e
mov byte [0x4ad1e5], 0
test edi, edi
jne 0x40f3b2
push 6
push 0x49d2d8
push ebx
call fcn.0048875d
add esp, 0xc
test eax, eax
jne 0x40f3b2
mov dword [ebp + 0xc], 2
mov edi, dword [ebp + 0xc]
add ebx, 6
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x64]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], edx
cmp eax, 1
je 0x40f3cb
cmp eax, 3
jne 0x40f428
call fcn.00409430
test al, al
jne 0x40f3fd
test edi, edi
jne 0x40f3f4
call fcn.004094a0
test al, al
je 0x40f3f4
push str.Click
mov eax, ebx
call fcn.004752c0
add esp, 4
test eax, eax
jne 0x40f3fd
mov dword [ebp + 0x10], 1
jmp 0x40f428
cmp dword [ebp + 0x10], 3
jne 0x40f40c
mov dword [ebp + 0x10], 2
jmp 0x40f428
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40f41e
cmp dword [esi + 0x64], eax
jge 0x40f41e
or eax, 0xffffffff
mov dword [esi + 0x64], eax
mov dword [esi + 0x5c], 0xffffffff
xor ebx, ebx
mov byte [ebp - 0xf], 0
cmp dword [ebp + 0x14], ebx
je 0x40f484
mov eax, dword [ebp + 0x14]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
mov dword [ebp - 0x4c], edi
test edi, edi
je 0x40f5b5
cmp edi, dword [0x4af260]
je 0x40f5b5
mov esi, dword [ebp + 0x14]
call fcn.00479fa0
test al, al
jne 0x40f5b2
mov ecx, dword [0x4af260]
push 1
push edi
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xf]
mov ebx, edi
jmp 0x40f5b2
test byte [0x4af875], 0xc0
je 0x40f56d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4af86c]
cmp eax, 0x32
jae 0x40f56d
cmp dword [ebp + 0x10], 2
je 0x40f56d
cmp byte [0x4ad1e5], bl
jne 0x40f56d
cmp edi, 2
je 0x40f56d
cmp byte [0x4afa5e], bl
je 0x40f56d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4af260]
jne 0x40f56d
mov eax, dword [ebp + 8]
test edi, edi
mov edi, 0x49d584
je 0x40f542
call fcn.00409c20
test eax, eax
setne al
test al, al
je 0x40f56d
mov ebx, 1
xor edi, edi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call esi
mov edx, 0x8000
test dx, ax
jne 0x40f526
push 0x5c
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f56d
push ebx
push 0x8000012f
mov dword [0x4aa8fc], edi
call fcn.00401420
add esp, 8
mov dword [0x4aa8fc], ebx
jmp 0x40f504
call fcn.00409c20
test eax, eax
je 0x40f56d
inc eax
mov edi, 0x49d588
call fcn.00409c20
test eax, eax
je 0x40f4fd
cmp byte [eax], 0x7b
je 0x40f4fd
mov edi, 0x49d584
call fcn.00409c20
test eax, eax
jne 0x40f54b
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
test eax, eax
je 0x40f5b2
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push ebx
push eax
call esi
lea edx, [ebp - 0xb0]
mov ebx, eax
push edx
push ebx
mov dword [ebp - 0xb0], 0x30
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x40f5b2
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x40f5b2
push 0
push eax
call esi
mov ebx, eax
mov esi, dword [ebp - 0x2c]
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4ad20c], eax
push eax
xor eax, eax
call fcn.004139e0
add esp, 4
push 1
mov dword [0x4ad208], eax
call fcn.00413440
mov bl, al
and byte [0x4aeb37], bl
add esp, 4
cmp dword [0x4ae408], 0
mov byte [ebp - 8], bl
je 0x40f60b
mov cl, byte [0x4ae2d5]
mov dl, byte [0x4ae2d7]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 9], cl
jmp 0x40f636
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4af86c]
cmp eax, dword [0x4aa8f4]
jae 0x40f62b
mov al, byte [0x4af875]
and al, bl
mov byte [ebp - 2], al
jmp 0x40f632
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 9], 0
mov cl, byte [0x4aeb36]
not al
and al, bl
and cl, al
mov al, byte [0x4ad1e5]
mov byte [0x4aeb36], cl
test al, al
je 0x40f65d
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 7], bl
jmp 0x40f664
mov byte [ebp - 3], 0
mov byte [ebp - 7], cl
cmp byte [esi + 0xd3], 0
je 0x40f68b
test al, al
jne 0x40f68b
cmp dword [ebp + 0xc], 2
je 0x40f68b
push 2
mov bl, 0x14
call fcn.00412c80
mov bl, byte [ebp - 8]
add esp, 4
mov dword [ebp - 0x48], eax
jmp 0x40f692
mov dword [ebp - 0x48], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4aeb5c], esi
test esi, esi
je 0x40f704
cmp esi, 1
jne 0x40f6b5
mov eax, 0x36b0
mov dword [0x4ad1fc], 0x1f4
jmp 0x40f6c4
mov eax, 0x2ee0
mov dword [0x4ad1fc], 0x5dc
call fcn.00491970
mov eax, esp
mov dword [0x4ad204], eax
mov eax, SysReAllocString
mov byte [0x4ad1ed], bl
mov dword [0x4ad1f0], eax
mov dword [0x4ad1f4], eax
mov byte [0x4ad1ec], 0
mov dword [0x4ad200], 0
mov byte [0x4ad1e7], 0
mov byte [0x4ad1e6], 1
mov al, byte [0x4aeaee]
mov byte [ebp - 0x1e], al
mov eax, dword [0x4aa998]
cmp eax, 8
je 0x40f71f
cmp eax, 0xa
jne 0x40f80a
test esi, esi
jne 0x40f80a
cmp dword [ebp + 0x14], esi
jne 0x40f80a
push 1
mov byte [ebp - 8], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4aeaee], 1
mov ecx, dword [ebp + 8]
xor bl, bl
mov byte [ebp - 1], bl
cmp byte [ecx], bl
je 0x410128
jmp 0x40f760
cmp dword [0x4aeb5c], 0
mov esi, dword [ebp + 8]
mov byte [ebp - 0xa], 0
jne 0x40f7c9
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x4af8b4]
mov edx, dword [0x4aa988]
cmp eax, dword [edx + 0xb8]
jbe 0x40f7c9
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40f7c2
push 1
push 0xffffffffffffffff
mov dword [0x4aa8fc], 0
call fcn.00401420
add esp, 8
mov dword [0x4aa8fc], 1
call edi
mov dword [0x4af8b4], eax
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x41003d
movsx eax, byte [esi]
push eax
push 0x49d58c
call fcn.004890e1
add esp, 8
test eax, eax
je 0x410092
movsx eax, byte [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40f803.34
movzx ecx, byte [eax + 0x410508]
jmp dword [ecx*4 + 0x4104ec]
mov byte [ebp - 8], 0
jmp 0x40f743
test byte [ebp - 7], 3
jne case.0x40f803.34
or bl, 1
jmp 0x41010c
test byte [ebp - 7], 0x30
jne case.0x40f803.34
or bl, 0x10
jmp 0x41010c
test byte [ebp - 7], 0xc
jne case.0x40f803.34
or bl, 4
jmp 0x41010c
test byte [ebp - 7], 0xc0
jne case.0x40f803.34
or bl, 0x40
jmp 0x41010c
mov esi, dword [ebp + 8]
inc esi
push 0x7d
push esi
call fcn.004890e1
mov edi, eax
add esp, 8
mov dword [ebp - 0x1c], edi
test edi, edi
je case.0x40f803.34
mov al, byte [esi]
cmp al, 0x20
je 0x40f881
cmp al, 9
jne 0x40f884
inc esi
jmp 0x40f877
mov eax, edi
sub eax, esi
mov dword [ebp - 0x14], esi
mov dword [ebp + 8], esi
mov dword [ebp - 0x28], eax
jne 0x40f90a
mov al, byte [edi + 1]
inc edi
cmp al, 0x7d
jne 0x40f8a7
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], 1
jmp 0x40f907
cmp al, 0x20
je 0x40f8b3
cmp al, 9
jne 0x410032
mov al, byte [edi]
cmp al, 0x20
je 0x40f8bd
cmp al, 9
jne 0x40f8c0
inc edi
jmp 0x40f8b3
push 4
push str.Down
push edi
call fcn.0048875d
add esp, 0xc
test eax, eax
je 0x40f8ec
push 2
push 0x49bbd8
push edi
call fcn.0048875d
add esp, 0xc
test eax, eax
jne 0x410032
push 0x7d
push edi
call fcn.004890e1
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je case.0x40f803.34
sub eax, esi
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x1c]
push 5
push 0x49ca04
push esi
call fcn.0048875d
add esp, 0xc
test eax, eax
jne 0x40f9c2
mov byte [edi], al
lea eax, [esi + 5]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40f933
cmp cl, 9
jne 0x40f936
inc eax
jmp 0x40f927
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0xe]
push ecx
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00411660
mov ecx, dword [ebp - 0x24]
add esp, 0x18
mov byte [edi], 0x7d
cmp ecx, 1
jge 0x40f98d
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax + 0xcf]
mov edx, dword [ebp - 0x34]
push edx
push ecx
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x3c]
call fcn.00412260
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x41010a
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x3c]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x18]
push edx
mov edx, dword [ebp - 7]
push 0
push eax
mov eax, dword [ebp - 0xe]
push edx
push 0
push eax
mov al, bl
call fcn.00410580
mov eax, dword [ebp - 0x1c]
add esp, 0x24
mov dword [ebp + 8], eax
jmp 0x41010a
push 3
push 0x49d594
push esi
call fcn.0048875d
add esp, 0xc
test eax, eax
jne 0x40f9e8
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], eax
jmp 0x41010a
push 4
push str.Text
push esi
call fcn.0048875d
add esp, 0xc
test eax, eax
jne 0x40fa27
add esi, 4
nop
mov al, byte [esi]
cmp al, 0x20
je 0x40fa0a
cmp al, 9
jne 0x40fa0d
inc esi
jmp 0x40fa00
cmp esi, edi
jne 0x410032
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], eax
jmp 0x41010a
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov edi, 0x49d1bc
mov eax, esi
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x24], 1
mov dword [ebp + 8], ecx
mov byte [edx], 0
call fcn.00409c20
mov ebx, eax
test ebx, ebx
je 0x40fafc
mov al, byte [ebx]
mov byte [ebp - 0x1d], al
mov eax, ebx
sub eax, esi
mov byte [ebx], 0
mov dword [ebp + 8], eax
lea edi, [ebx + 1]
lea esp, [esp]
mov al, byte [edi]
cmp al, 0x20
je 0x40fa7a
cmp al, 9
jne 0x40fa7d
inc edi
jmp 0x40fa70
mov ecx, dword [ebp - 0x1c]
sub ecx, edi
je 0x40fafc
push 4
push str.Down
push edi
call fcn.0048875d
add esp, 0xc
test eax, eax
jne 0x40fad4
push 4
add edi, 4
push str.Temp
push edi
mov dword [ebp - 0x18], eax
call fcn.0048875d
add esp, 0xc
test eax, eax
jne 0x40fab7
mov dword [ebp - 0x38], eax
jmp 0x40fafc
xor edx, edx
cmp byte [edi], 0x52
sete dl
push edx
call fcn.00489d02
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp - 0x38], eax
jmp 0x40fafc
push 0x49bbd8
push edi
call fcn.004883a1
add esp, 8
test eax, eax
jne 0x40faef
mov dword [ebp - 0x18], 1
jmp 0x40fafc
mov esi, edi
call fcn.0040ed80
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0xe]
push eax
mov eax, dword [0x4ad20c]
lea ecx, [ebp - 1]
lea edi, [ebp - 0x30]
mov edx, esi
call fcn.00413f10
add esp, 4
test ebx, ebx
je 0x40fb1e
mov cl, byte [ebp - 0x1d]
mov byte [ebx], cl
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov eax, 1
mov byte [edx], 0x7d
cmp edi, eax
jl 0x410032
mov bl, byte [ebp - 0xe]
test bl, bl
jne 0x40ff7c
cmp word [ebp - 0x30], 0
jne 0x40ff7c
cmp dword [ebp + 8], eax
jne 0x40fbac
cmp dword [ebp - 0x18], eax
je 0x410032
cmp dword [ebp + 0x14], 0
je 0x40fb89
test edi, edi
jle 0x410032
movsx eax, byte [esi]
mov ecx, dword [ebp + 0x14]
push 0
push eax
push 0x102
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
dec edi
jne 0x40fb66
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x41010a
mov dl, byte [ebp - 1]
or dl, byte [ebp - 7]
movzx ecx, byte [esi]
movzx eax, dl
push eax
push ecx
mov eax, edi
call fcn.004109e0
mov eax, dword [ebp - 0x1c]
add esp, 8
mov dword [ebp + 8], eax
jmp 0x41010a
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x14]
lea edx, [ebp - 7]
push edx
lea eax, [ebp - 0x18]
sete bl
push eax
call fcn.00413fc0
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x40fded
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40fbea
cmp dword [ebp - 0x18], edi
jne 0x40fbe5
mov byte [ebp - 0xa], al
jmp 0x40fbea
call fcn.0040ef50
cmp dword [0x4aeb5c], 0
je 0x40fbfd
mov al, byte [0x4ad1ed]
jmp 0x40fd3d
cmp dword [0x4ae408], 0
je 0x40fc10
mov al, byte [0x4ae2d5]
jmp 0x40fd3d
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [ebp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x40fc2f
mov byte [ebp + 0xb], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40fc44
or byte [ebp + 0xb], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40fc59
or byte [ebp + 0xb], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40fc6e
or byte [ebp + 0xb], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40fc83
or byte [ebp + 0xb], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40fc98
or byte [ebp + 0xb], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40fcaa
or byte [ebp + 0xb], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40fcbc
or byte [ebp + 0xb], 0x80
cmp dword [0x4ae408], 0
je 0x40fd39
mov bl, byte [ebp + 0xb]
not bl
and bl, byte [0x4ae2d5]
cmp byte [0x4ae2fa], 0
je 0x40fcf3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ad1c0]
cmp eax, 0x14
jae 0x40fcf3
mov al, byte [0x4ae2fa]
not al
and bl, al
test bl, bl
je 0x40fd39
mov cl, byte [0x4ae2d7]
mov al, bl
not al
and byte [0x4ae2d5], al
and byte [0x4ae2d6], al
and cl, al
mov al, cl
mov byte [0x4ae2d7], cl
mov ecx, 0x4ae300
call fcn.004135a0
mov eax, dword [0x4ad1e0]
test eax, eax
je 0x40fd39
test byte [eax + 8], bl
je 0x40fd39
mov dword [0x4ad1e0], 0
movzx eax, byte [ebp + 0xb]
mov ecx, dword [ebp - 7]
push 0
push 0
push edi
push eax
push ecx
mov eax, 0xffc3d44d
call fcn.00412d90
mov eax, dword [ebp - 0x24]
add esp, 0x14
test eax, eax
jle 0x410032
mov esi, dword [ebp - 0xe]
mov ebx, eax
mov edx, dword [ebp - 0x18]
push 0xffc3d44d
push 1
push edi
push 0
push esi
push edx
call fcn.00410f50
add esp, 0x18
cmp dword [0x4aeb5c], 0
jne 0x40fddf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4af8b4]
mov ecx, dword [0x4aa988]
cmp eax, dword [ecx + 0xb8]
jbe 0x40fddf
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x80]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40fdd4
push 1
push 0xffffffffffffffff
mov dword [0x4aa8fc], 0
call fcn.00401420
add esp, 8
mov dword [0x4aa8fc], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4af8b4], eax
dec ebx
jne 0x40fd64
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x41010a
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
cmp edi, 4
jbe 0x40fe64
push 4
push str.ASC
push esi
call fcn.0048875d
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x40fe67
test ebx, ebx
jne 0x40fe67
lea eax, [esi + 3]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40fe22
cmp cl, 9
jne 0x40fe25
inc eax
jmp 0x40fe16
call fcn.00410b00
cmp dword [0x4aeb5c], 2
jne 0x40fe4b
mov eax, dword [0x4aa988]
mov esi, dword [eax + 0x60]
call fcn.004129d0
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x41010a
mov ecx, dword [0x4aa988]
mov esi, dword [ecx + 0x5c]
call fcn.004129d0
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x41010a
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x410032
push 2
push 0x49d5a8
push esi
call fcn.0048875d
add esp, 0xc
test eax, eax
jne 0x410032
push 0x10
push eax
add esi, 2
push esi
call fcn.00489b95
add esp, 0xc
cmp eax, 0x10000
jb 0x40feca
sub eax, 0x10000
mov edx, eax
shr edx, 0xa
and edx, 0x3ff
mov ecx, eax
sub edx, 0x2800
and ecx, 0x3ff
sub ecx, 0x2400
movzx edi, dx
movzx esi, cx
jmp 0x40fecf
movzx edi, ax
xor esi, esi
test ebx, ebx
je 0x40fefc
movzx edx, di
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push edx
push 0x102
push ebx
call edi
test si, si
je 0x40ff42
push 0
movzx eax, si
push eax
push 0x102
push ebx
call edi
jmp 0x40ff42
cmp dword [0x4aeb5c], 2
je 0x40ff27
movzx ebx, byte [ebp - 1]
or bl, byte [ebp - 7]
push ebx
call fcn.0040efd0
add esp, 4
test si, si
je 0x40ff42
push ebx
mov edi, esi
call fcn.0040efd0
add esp, 4
jmp 0x40ff42
push 0xa
lea ecx, [ebp - 0x5f]
push ecx
push eax
mov byte [ebp - 0x60], 0x30
call fcn.00488032
add esp, 0xc
lea eax, [ebp - 0x60]
call fcn.00410b00
cmp dword [0x4aeb5c], 2
jne 0x40ff64
mov edx, dword [0x4aa988]
mov esi, dword [edx + 0x60]
call fcn.004129d0
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x41010a
mov eax, dword [0x4aa988]
mov esi, dword [eax + 0x5c]
call fcn.004129d0
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x41010a
mov esi, dword [ebp - 0x30]
xor ecx, ecx
mov edx, esi
mov al, bl
call fcn.00413670
mov byte [ebp - 0x40], al
test al, al
je 0x410004
cmp dword [ebp + 0x14], 0
jne 0x410004
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x40ffc4
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 0xa], bl
cmp ecx, 1
jne 0x40ffb4
or byte [0x4aeb36], al
or byte [ebp - 7], al
jmp 0x410004
cmp ecx, 2
jne 0x40ffbf
or byte [0x4aeb37], al
or byte [ebp - 7], al
jmp 0x410004
cmp ecx, 1
jne 0x410004
mov al, bl
call fcn.0040ef50
mov al, byte [ebp - 0x40]
mov cl, byte [0x4aeb36]
not al
and byte [0x4aeb37], al
and byte [ebp - 3], al
and cl, al
mov byte [0x4aeb36], cl
cmp bl, 0xa5
jne 0x40fffe
cmp dword [0x4ad208], 3
jne 0x40fffe
and byte [ebp - 3], 0xfe
or cl, byte [ebp - 3]
mov byte [ebp - 7], cl
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x18]
push 0
push SysReAllocString
push SysReAllocString
push ecx
mov ecx, dword [ebp - 7]
push edx
mov edx, dword [ebp - 0xe]
push eax
mov al, byte [ebp - 1]
push ecx
push esi
push edx
mov ecx, edi
call fcn.00410580
add esp, 0x24
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x41010a
cmp edi, 2
jne 0x410092
movsx eax, byte [esi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x41004d.11
jmp dword [eax*4 + 0x410568]
cmp byte [esi + 1], 0xa
jne case.0x41004d.10
inc esi
mov dword [ebp + 8], esi
mov byte [ebp - 0xe], 0xd
jmp 0x4100c3
mov byte [ebp - 0xe], 8
jmp 0x4100c3
mov byte [ebp - 0xe], 9
jmp 0x4100c3
mov byte [ebp - 0xe], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x4100f2
movsx edx, byte [ecx]
push 0
push edx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x41010a
or bl, byte [ebp - 7]
je 0x41009f
test edi, edi
jne 0x41009f
mov al, 1
jmp 0x4100a1
xor al, al
mov ecx, dword [0x4ad20c]
mov edx, dword [ebp + 8]
mov bl, byte [edx]
push eax
push ecx
lea edi, [ebp - 1]
call fcn.00413e50
mov bl, byte [ebp - 1]
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x410074
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 7]
mov edx, dword [ebp - 0xe]
push 0
push SysReAllocString
push SysReAllocString
push eax
push 0
push 2
push ecx
push 0
push edx
mov ecx, 1
mov al, bl
call fcn.00410580
add esp, 0x24
jmp 0x41010a
or bl, byte [ebp - 7]
movzx edx, byte [ecx]
movzx eax, bl
push eax
push edx
mov eax, 1
call fcn.004109e0
add esp, 8
xor bl, bl
mov byte [ebp - 1], bl
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0xa]
inc eax
cmp byte [eax], 0
mov dword [ebp + 8], eax
mov byte [0x4aeb23], cl
jne 0x40f760
mov eax, dword [0x4aeb5c]
test eax, eax
je 0x4101df
cmp byte [0x4ad1e7], 0
mov dword [ebp + 8], 0xffffffff
jne 0x4101a4
cmp dword [0x4ad200], 0
jbe 0x4101a4
cmp byte [0x4ad1e5], 0
je 0x41015b
xor eax, eax
jmp 0x410167
movzx eax, byte [ebp - 9]
movzx edx, byte [ebp - 2]
not eax
and eax, edx
or al, byte [0x4aeb37]
push 1
or al, byte [ebp - 7]
push 1
mov byte [ebp - 0x14], al
movzx eax, byte [0x4ad1ed]
mov esi, dword [ebp - 0x14]
push 0
push eax
push esi
mov eax, 0xffc3d44d
call fcn.00412d90
add esp, 0x14
lea ecx, [ebp + 8]
push esi
push ecx
call fcn.00412880
mov eax, dword [0x4aeb5c]
add esp, 8
dec eax
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4ad1fc], eax
jbe 0x4101ca
mov edx, dword [0x4ad204]
push edx
call fcn.004883b8
add esp, 4
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x4aeb5c], edi
call fcn.004129d0
jmp 0x4103ad
cmp dword [0x4ae408], 0
je 0x4101f0
mov cl, byte [0x4ae2d7]
jmp 0x410214
cmp dword [0x4aa8f4], 0
jl 0x410211
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4af86c]
cmp eax, dword [0x4aa8f4]
jb 0x410211
xor cl, cl
jmp 0x410214
mov cl, byte [ebp - 2]
or cl, byte [0x4aeb37]
cmp byte [0x4ad1e5], 0
je 0x41023c
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 - 0x14], bl
jmp 0x410249
mov al, byte [ebp - 9]
not al
and al, cl
or al, byte [ebp - 7]
mov byte [ebp - 0x14], al
cmp dword [0x4ae408], 0
je 0x41025c
mov al, byte [0x4ae2d5]
jmp 0x410388
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [ebp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x41027b
mov byte [ebp + 0xb], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x410290
or byte [ebp + 0xb], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x4102a5
or byte [ebp + 0xb], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x4102ba
or byte [ebp + 0xb], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x4102cf
or byte [ebp + 0xb], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x4102e4
or byte [ebp + 0xb], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x4102f6
or byte [ebp + 0xb], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x410308
or byte [ebp + 0xb], 0x80
cmp dword [0x4ae408], 0
je 0x410385
mov bl, byte [ebp + 0xb]
not bl
and bl, byte [0x4ae2d5]
cmp byte [0x4ae2fa], 0
je 0x41033f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ad1c0]
cmp eax, 0x14
jae 0x41033f
mov al, byte [0x4ae2fa]
not al
and bl, al
test bl, bl
je 0x410385
mov cl, byte [0x4ae2d7]
mov al, bl
not al
and byte [0x4ae2d5], al
and byte [0x4ae2d6], al
and cl, al
mov al, cl
mov byte [0x4ae2d7], cl
mov ecx, 0x4ae300
call fcn.004135a0
mov eax, dword [0x4ad1e0]
test eax, eax
je 0x410385
test byte [eax + 8], bl
je 0x410385
mov dword [0x4ad1e0], 0
mov al, byte [ebp + 0xb]
or al, byte [0x4ae2f8]
mov ecx, dword [ebp + 0x14]
push 1
movzx edx, al
mov eax, dword [ebp - 0x14]
push 1
push ecx
push edx
push eax
mov eax, 0xffc3d44d
call fcn.00412d90
add esp, 0x14
xor edi, edi
cmp dword [0x4ae408], edi
je 0x4103cd
mov al, byte [0x4ae2d6]
mov cl, al
xor cl, byte [0x4ae2d5]
and cl, al
not cl
and al, cl
mov byte [0x4ae2d6], al
mov ebx, 1
cmp dword [ebp - 0x48], ebx
jne 0x410447
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test bl, al
jne 0x410447
push 0x14
call esi
mov edx, 0x8000
test dx, ax
je 0x410406
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push ebx
call fcn.00410f50
add esp, 0x18
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.00410f50
add esp, 0x18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4af260]
jne 0x410447
push ebx
push 0xffffffffffffffff
mov dword [0x4aa8fc], edi
call fcn.00401420
add esp, 8
mov dword [0x4aa8fc], ebx
cmp byte [ebp - 0xf], 0
je 0x41045f
mov eax, dword [ebp - 0x4c]
mov ecx, dword [0x4af260]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 8], 0
je 0x410479
cmp byte [ebp - 0x1e], 0
jne 0x410479
push edi
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4aeaee], 0
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x41049e
mov edx, dword [ebp - 0x58]
cmp dword [0x4af8b0], edx
je 0x4104cf
call fcn.004039e0
test eax, eax
je 0x4104cf
push ebx
push 0xffffffffffffffff
call fcn.00401420
jmp 0x4104cc
cmp eax, ebx
jne 0x4104cf
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4af260]
jne 0x4104cf
push ebx
push 0xffffffffffffffff
mov dword [0x4aa8fc], edi
call fcn.00401420
mov dword [0x4aa8fc], ebx
add esp, 8
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x54]
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x64], edx
lea esp, [ebp - 0xc0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret