Function at 0x40eb30
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 0x40fc96
mov edi, dword [ebp + 0xc]
mov esi, dword [0x4a8978]
mov eax, dword [0x4ad8d8]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x58], eax
test edi, edi
jne 0x40eb83
push 7
push str.Blind
push ebx
call fcn.0048777d
add esp, 0xc
test eax, eax
jne 0x40eb83
add ebx, 7
mov byte [0x4ab201], 1
mov dword [ebp + 8], ebx
jmp 0x40eb8e
mov byte [0x4ab201], 0
test edi, edi
jne 0x40ebb2
push 6
push 0x49c2d0
push ebx
call fcn.0048777d
add esp, 0xc
test eax, eax
jne 0x40ebb2
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 0x40ebcb
cmp eax, 3
jne 0x40ec28
call fcn.00408d70
test al, al
jne 0x40ebfd
test edi, edi
jne 0x40ebf4
call fcn.00408de0
test al, al
je 0x40ebf4
push str.Click
mov eax, ebx
call fcn.004745b0
add esp, 4
test eax, eax
jne 0x40ebfd
mov dword [ebp + 0x10], 1
jmp 0x40ec28
cmp dword [ebp + 0x10], 3
jne 0x40ec0c
mov dword [ebp + 0x10], 2
jmp 0x40ec28
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40ec1e
cmp dword [esi + 0x64], eax
jge 0x40ec1e
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 0x40ec84
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 0x40edb5
cmp edi, dword [0x4ad274]
je 0x40edb5
mov esi, dword [ebp + 0x14]
call fcn.00479060
test al, al
jne 0x40edb2
mov ecx, dword [0x4ad274]
push 1
push edi
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0xf]
mov ebx, edi
jmp 0x40edb2
test byte [0x4ad8a5], 0xc0
je 0x40ed6d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ad89c]
cmp eax, 0x32
jae 0x40ed6d
cmp dword [ebp + 0x10], 2
je 0x40ed6d
cmp byte [0x4ab201], bl
jne 0x40ed6d
cmp edi, 2
je 0x40ed6d
cmp byte [0x4ada66], bl
je 0x40ed6d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4ad274]
jne 0x40ed6d
mov eax, dword [ebp + 8]
test edi, edi
mov edi, 0x49c57c
je 0x40ed42
call fcn.004094f0
test eax, eax
setne al
test al, al
je 0x40ed6d
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 0x40ed26
push 0x5c
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ed6d
push ebx
push 0x8000012f
mov dword [0x4a88ec], edi
call fcn.004013c0
add esp, 8
mov dword [0x4a88ec], ebx
jmp 0x40ed04
call fcn.004094f0
test eax, eax
je 0x40ed6d
inc eax
mov edi, 0x49c580
call fcn.004094f0
test eax, eax
je 0x40ecfd
cmp byte [eax], 0x7b
je 0x40ecfd
mov edi, 0x49c57c
call fcn.004094f0
test eax, eax
jne 0x40ed4b
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
test eax, eax
je 0x40edb2
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 0x40edb2
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x40edb2
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 [0x4ab228], eax
push eax
xor eax, eax
call fcn.00413100
add esp, 4
push 1
mov dword [0x4ab224], eax
call fcn.00412b90
mov bl, al
and byte [0x4acb4b], bl
add esp, 4
cmp dword [0x4ac41c], 0
mov byte [ebp - 8], bl
je 0x40ee0b
mov cl, byte [0x4ac2e9]
mov dl, byte [0x4ac2eb]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 2], dl
mov byte [ebp - 9], cl
jmp 0x40ee36
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ad89c]
cmp eax, dword [0x4a88e4]
jae 0x40ee2b
mov al, byte [0x4ad8a5]
and al, bl
mov byte [ebp - 2], al
jmp 0x40ee32
mov byte [ebp - 2], 0
mov al, byte [ebp - 2]
mov byte [ebp - 9], 0
mov cl, byte [0x4acb4a]
not al
and al, bl
and cl, al
mov al, byte [0x4ab201]
mov byte [0x4acb4a], cl
test al, al
je 0x40ee5d
not cl
and cl, bl
mov byte [ebp - 3], cl
mov byte [ebp - 7], bl
jmp 0x40ee64
mov byte [ebp - 3], 0
mov byte [ebp - 7], cl
cmp byte [esi + 0xd3], 0
je 0x40ee8b
test al, al
jne 0x40ee8b
cmp dword [ebp + 0xc], 2
je 0x40ee8b
push 2
mov bl, 0x14
call fcn.004123d0
mov bl, byte [ebp - 8]
add esp, 4
mov dword [ebp - 0x48], eax
jmp 0x40ee92
mov dword [ebp - 0x48], 0
mov esi, dword [ebp + 0x10]
mov dword [0x4acbc0], esi
test esi, esi
je 0x40ef04
cmp esi, 1
jne 0x40eeb5
mov eax, 0x36b0
mov dword [0x4ab218], 0x1f4
jmp 0x40eec4
mov eax, 0x2ee0
mov dword [0x4ab218], 0x5dc
call fcn.00490b00
mov eax, esp
mov dword [0x4ab220], eax
mov eax, SysReAllocString
mov byte [0x4ab209], bl
mov dword [0x4ab20c], eax
mov dword [0x4ab210], eax
mov byte [0x4ab208], 0
mov dword [0x4ab21c], 0
mov byte [0x4ab203], 0
mov byte [0x4ab202], 1
mov al, byte [0x4acb02]
mov byte [ebp - 0x1e], al
mov eax, dword [0x4a8988]
cmp eax, 8
je 0x40ef1f
cmp eax, 0xa
jne 0x40f00a
test esi, esi
jne 0x40f00a
cmp dword [ebp + 0x14], esi
jne 0x40f00a
push 1
mov byte [ebp - 8], 1
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4acb02], 1
mov ecx, dword [ebp + 8]
xor bl, bl
mov byte [ebp - 1], bl
cmp byte [ecx], bl
je 0x40f905
jmp 0x40ef60
cmp dword [0x4acbc0], 0
mov esi, dword [ebp + 8]
mov byte [ebp - 0xa], 0
jne 0x40efc9
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x4ad8dc]
mov edx, dword [0x4a8978]
cmp eax, dword [edx + 0xb8]
jbe 0x40efc9
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 0x40efc2
push 1
push 0xffffffffffffffff
mov dword [0x4a88ec], 0
call fcn.004013c0
add esp, 8
mov dword [0x4a88ec], 1
call edi
mov dword [0x4ad8dc], eax
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x40f81a
movsx eax, byte [esi]
push eax
push str._
call fcn.004883b1
add esp, 8
test eax, eax
je 0x40f86f
movsx eax, byte [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40f003.34
movzx ecx, byte [eax + 0x40fcc0]
jmp dword [ecx*4 + 0x40fca4]
mov byte [ebp - 8], 0
jmp 0x40ef43
test byte [ebp - 7], 3
jne case.0x40f003.34
or bl, 1
jmp 0x40f8e9
test byte [ebp - 7], 0x30
jne case.0x40f003.34
or bl, 0x10
jmp 0x40f8e9
test byte [ebp - 7], 0xc
jne case.0x40f003.34
or bl, 4
jmp 0x40f8e9
test byte [ebp - 7], 0xc0
jne case.0x40f003.34
or bl, 0x40
jmp 0x40f8e9
mov esi, dword [ebp + 8]
inc esi
push 0x7d
push esi
call fcn.004883b1
mov edi, eax
add esp, 8
mov dword [ebp - 0x1c], edi
test edi, edi
je case.0x40f003.34
mov al, byte [esi]
cmp al, 0x20
je 0x40f081
cmp al, 9
jne 0x40f084
inc esi
jmp 0x40f077
mov eax, edi
sub eax, esi
mov dword [ebp - 0x14], esi
mov dword [ebp + 8], esi
mov dword [ebp - 0x28], eax
jne 0x40f10a
mov al, byte [edi + 1]
inc edi
cmp al, 0x7d
jne 0x40f0a7
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], 1
jmp 0x40f107
cmp al, 0x20
je 0x40f0b3
cmp al, 9
jne 0x40f80f
mov al, byte [edi]
cmp al, 0x20
je 0x40f0bd
cmp al, 9
jne 0x40f0c0
inc edi
jmp 0x40f0b3
push 4
push str.Down
push edi
call fcn.0048777d
add esp, 0xc
test eax, eax
je 0x40f0ec
push 2
push 0x49abd0
push edi
call fcn.0048777d
add esp, 0xc
test eax, eax
jne 0x40f80f
push 0x7d
push edi
call fcn.004883b1
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je case.0x40f003.34
sub eax, esi
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x1c]
push 5
push 0x49b9fc
push esi
call fcn.0048777d
add esp, 0xc
test eax, eax
jne 0x40f1c2
mov byte [edi], al
lea eax, [esi + 5]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40f133
cmp cl, 9
jne 0x40f136
inc eax
jmp 0x40f127
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.00410db0
mov ecx, dword [ebp - 0x24]
add esp, 0x18
mov byte [edi], 0x7d
cmp ecx, 1
jge 0x40f18d
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.004119b0
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x40f8e7
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.0040fd40
mov eax, dword [ebp - 0x1c]
add esp, 0x24
mov dword [ebp + 8], eax
jmp 0x40f8e7
push 3
push 0x49c58c
push esi
call fcn.0048777d
add esp, 0xc
test eax, eax
jne 0x40f1e8
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], eax
jmp 0x40f8e7
push 4
push str.Text
push esi
call fcn.0048777d
add esp, 0xc
test eax, eax
jne 0x40f227
add esi, 4
nop
mov al, byte [esi]
cmp al, 0x20
je 0x40f20a
cmp al, 9
jne 0x40f20d
inc esi
jmp 0x40f200
cmp esi, edi
jne 0x40f80f
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], eax
jmp 0x40f8e7
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov edi, 0x49c1b4
mov eax, esi
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x24], 1
mov dword [ebp + 8], ecx
mov byte [edx], 0
call fcn.004094f0
mov ebx, eax
test ebx, ebx
je 0x40f2fc
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 0x40f27a
cmp al, 9
jne 0x40f27d
inc edi
jmp 0x40f270
mov ecx, dword [ebp - 0x1c]
sub ecx, edi
je 0x40f2fc
push 4
push str.Down
push edi
call fcn.0048777d
add esp, 0xc
test eax, eax
jne 0x40f2d4
push 4
add edi, 4
push str.Temp
push edi
mov dword [ebp - 0x18], eax
call fcn.0048777d
add esp, 0xc
test eax, eax
jne 0x40f2b7
mov dword [ebp - 0x38], eax
jmp 0x40f2fc
xor edx, edx
cmp byte [edi], 0x52
sete dl
push edx
call fcn.00488fd2
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp - 0x38], eax
jmp 0x40f2fc
push 0x49abd0
push edi
call fcn.004873c1
add esp, 8
test eax, eax
jne 0x40f2ef
mov dword [ebp - 0x18], 1
jmp 0x40f2fc
mov esi, edi
call fcn.0040e5a0
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0xe]
push eax
mov eax, dword [0x4ab228]
lea ecx, [ebp - 1]
lea edi, [ebp - 0x30]
mov edx, esi
call fcn.00413630
add esp, 4
test ebx, ebx
je 0x40f31e
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 0x40f80f
mov bl, byte [ebp - 0xe]
test bl, bl
jne 0x40f759
cmp word [ebp - 0x30], 0
jne 0x40f759
cmp dword [ebp + 8], eax
jne 0x40f3ac
cmp dword [ebp - 0x18], eax
je 0x40f80f
cmp dword [ebp + 0x14], 0
je 0x40f389
test edi, edi
jle 0x40f80f
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 0x40f366
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40f8e7
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.00410150
mov eax, dword [ebp - 0x1c]
add esp, 8
mov dword [ebp + 8], eax
jmp 0x40f8e7
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.004136e0
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x40f5ca
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40f3ea
cmp dword [ebp - 0x18], edi
jne 0x40f3e5
mov byte [ebp - 0xa], al
jmp 0x40f3ea
call fcn.0040e770
cmp dword [0x4acbc0], 0
je 0x40f3fd
mov al, byte [0x4ab209]
jmp 0x40f518
cmp dword [0x4ac41c], 0
je 0x40f410
mov al, byte [0x4ac2e9]
jmp 0x40f518
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [ebp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f42f
mov byte [ebp + 0xb], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40f444
or byte [ebp + 0xb], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f459
or byte [ebp + 0xb], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40f46e
or byte [ebp + 0xb], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f483
or byte [ebp + 0xb], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40f498
or byte [ebp + 0xb], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f4aa
or byte [ebp + 0xb], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40f4bc
or byte [ebp + 0xb], 0x80
cmp dword [0x4ac41c], 0
je 0x40f514
mov bl, byte [ebp + 0xb]
not bl
and bl, byte [0x4ac2e9]
je 0x40f514
mov cl, byte [0x4ac2eb]
mov al, bl
not al
and byte [0x4ac2e9], al
and byte [0x4ac2ea], al
and cl, al
mov al, cl
mov byte [0x4ac2eb], cl
mov ecx, 0x4ac310
call fcn.00412cc0
mov eax, dword [0x4ab1fc]
test eax, eax
je 0x40f514
test byte [eax + 8], bl
je 0x40f514
mov dword [0x4ab1fc], 0
movzx eax, byte [ebp + 0xb]
push 0
push 0
push edi
push eax
mov eax, dword [ebp - 7]
push eax
mov eax, 0xffc3d44d
call fcn.004124e0
mov eax, dword [ebp - 0x24]
add esp, 0x14
test eax, eax
jle 0x40f80f
mov ebx, dword [ebp - 0xe]
mov edi, eax
nop
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
push 0xffc3d44d
push 1
push ecx
push 0
push ebx
push edx
call fcn.004106a0
add esp, 0x18
cmp dword [0x4acbc0], 0
jne 0x40f5bc
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4ad8dc]
mov ecx, dword [0x4a8978]
cmp eax, dword [ecx + 0xb8]
jbe 0x40f5bc
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 0x40f5b5
push 1
push 0xffffffffffffffff
mov dword [0x4a88ec], 0
call fcn.004013c0
add esp, 8
mov dword [0x4a88ec], 1
call esi
mov dword [0x4ad8dc], eax
dec edi
jne 0x40f540
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40f8e7
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
cmp edi, 4
jbe 0x40f641
push 4
push str.ASC
push esi
call fcn.0048777d
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x40f644
test ebx, ebx
jne 0x40f644
lea eax, [esi + 3]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40f5ff
cmp cl, 9
jne 0x40f602
inc eax
jmp 0x40f5f3
call fcn.00410270
cmp dword [0x4acbc0], 2
jne 0x40f628
mov eax, dword [0x4a8978]
mov esi, dword [eax + 0x60]
call fcn.00412120
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40f8e7
mov ecx, dword [0x4a8978]
mov esi, dword [ecx + 0x5c]
call fcn.00412120
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40f8e7
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x40f80f
push 2
push 0x49c5a0
push esi
call fcn.0048777d
add esp, 0xc
test eax, eax
jne 0x40f80f
push 0x10
push eax
add esi, 2
push esi
call fcn.00488e65
add esp, 0xc
cmp eax, 0x10000
jb 0x40f6a7
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 0x40f6ac
movzx edi, ax
xor esi, esi
test ebx, ebx
je 0x40f6d9
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 0x40f71f
push 0
movzx eax, si
push eax
push 0x102
push ebx
call edi
jmp 0x40f71f
cmp dword [0x4acbc0], 2
je 0x40f704
movzx ebx, byte [ebp - 1]
or bl, byte [ebp - 7]
push ebx
call fcn.0040e7f0
add esp, 4
test si, si
je 0x40f71f
push ebx
mov edi, esi
call fcn.0040e7f0
add esp, 4
jmp 0x40f71f
push 0xa
lea ecx, [ebp - 0x5f]
push ecx
push eax
mov byte [ebp - 0x60], 0x30
call fcn.00487052
add esp, 0xc
lea eax, [ebp - 0x60]
call fcn.00410270
cmp dword [0x4acbc0], 2
jne 0x40f741
mov edx, dword [0x4a8978]
mov esi, dword [edx + 0x60]
call fcn.00412120
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40f8e7
mov eax, dword [0x4a8978]
mov esi, dword [eax + 0x5c]
call fcn.00412120
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40f8e7
mov esi, dword [ebp - 0x30]
xor ecx, ecx
mov edx, esi
mov al, bl
call fcn.00412d90
mov byte [ebp - 0x40], al
test al, al
je 0x40f7e1
cmp dword [ebp + 0x14], 0
jne 0x40f7e1
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x40f7a1
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 0xa], bl
cmp ecx, 1
jne 0x40f791
or byte [0x4acb4a], al
or byte [ebp - 7], al
jmp 0x40f7e1
cmp ecx, 2
jne 0x40f79c
or byte [0x4acb4b], al
or byte [ebp - 7], al
jmp 0x40f7e1
cmp ecx, 1
jne 0x40f7e1
mov al, bl
call fcn.0040e770
mov al, byte [ebp - 0x40]
mov cl, byte [0x4acb4a]
not al
and byte [0x4acb4b], al
and byte [ebp - 3], al
and cl, al
mov byte [0x4acb4a], cl
cmp bl, 0xa5
jne 0x40f7db
cmp dword [0x4ab224], 3
jne 0x40f7db
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.0040fd40
add esp, 0x24
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
jmp 0x40f8e7
cmp edi, 2
jne 0x40f86f
movsx eax, byte [esi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x40f82a.11
jmp dword [eax*4 + 0x40fd20]
cmp byte [esi + 1], 0xa
jne case.0x40f82a.10
inc esi
mov dword [ebp + 8], esi
mov byte [ebp - 0xe], 0xd
jmp 0x40f8a0
mov byte [ebp - 0xe], 8
jmp 0x40f8a0
mov byte [ebp - 0xe], 9
jmp 0x40f8a0
mov byte [ebp - 0xe], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x40f8cf
movsx edx, byte [ecx]
push 0
push edx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40f8e7
or bl, byte [ebp - 7]
je 0x40f87c
test edi, edi
jne 0x40f87c
mov al, 1
jmp 0x40f87e
xor al, al
mov ecx, dword [0x4ab228]
mov edx, dword [ebp + 8]
mov bl, byte [edx]
push eax
push ecx
lea edi, [ebp - 1]
call fcn.00413570
mov bl, byte [ebp - 1]
add esp, 8
mov byte [ebp - 0xe], al
test al, al
je 0x40f851
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.0040fd40
add esp, 0x24
jmp 0x40f8e7
or bl, byte [ebp - 7]
movzx edx, byte [ecx]
movzx eax, bl
push eax
push edx
mov eax, 1
call fcn.00410150
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 [0x4acb37], cl
jne 0x40ef60
mov eax, dword [0x4acbc0]
test eax, eax
je 0x40f9bc
cmp byte [0x4ab203], 0
mov dword [ebp + 8], 0xffffffff
jne 0x40f981
cmp dword [0x4ab21c], 0
jbe 0x40f981
cmp byte [0x4ab201], 0
je 0x40f938
xor eax, eax
jmp 0x40f944
movzx eax, byte [ebp - 9]
movzx edx, byte [ebp - 2]
not eax
and eax, edx
or al, byte [0x4acb4b]
push 1
or al, byte [ebp - 7]
push 1
mov byte [ebp - 0x14], al
movzx eax, byte [0x4ab209]
mov esi, dword [ebp - 0x14]
push 0
push eax
push esi
mov eax, 0xffc3d44d
call fcn.004124e0
add esp, 0x14
lea ecx, [ebp + 8]
push esi
push ecx
call fcn.00411fd0
mov eax, dword [0x4acbc0]
add esp, 8
dec eax
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4ab218], eax
jbe 0x40f9a7
mov edx, dword [0x4ab220]
push edx
call fcn.004873d8
add esp, 4
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x4acbc0], edi
call fcn.00412120
jmp 0x40fb65
cmp dword [0x4ac41c], 0
je 0x40f9cd
mov cl, byte [0x4ac2eb]
jmp 0x40f9f1
cmp dword [0x4a88e4], 0
jl 0x40f9ee
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ad89c]
cmp eax, dword [0x4a88e4]
jb 0x40f9ee
xor cl, cl
jmp 0x40f9f1
mov cl, byte [ebp - 2]
or cl, byte [0x4acb4b]
cmp byte [0x4ab201], 0
je 0x40fa19
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 0x40fa26
mov al, byte [ebp - 9]
not al
and al, cl
or al, byte [ebp - 7]
mov byte [ebp - 0x14], al
cmp dword [0x4ac41c], 0
je 0x40fa39
mov al, byte [0x4ac2e9]
jmp 0x40fb40
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [ebp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x40fa58
mov byte [ebp + 0xb], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40fa6d
or byte [ebp + 0xb], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40fa82
or byte [ebp + 0xb], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40fa97
or byte [ebp + 0xb], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40faac
or byte [ebp + 0xb], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40fac1
or byte [ebp + 0xb], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40fad3
or byte [ebp + 0xb], 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40fae5
or byte [ebp + 0xb], 0x80
cmp dword [0x4ac41c], 0
je 0x40fb3d
mov bl, byte [ebp + 0xb]
not bl
and bl, byte [0x4ac2e9]
je 0x40fb3d
mov cl, byte [0x4ac2eb]
mov al, bl
not al
and byte [0x4ac2e9], al
and byte [0x4ac2ea], al
and cl, al
mov al, cl
mov byte [0x4ac2eb], cl
mov ecx, 0x4ac310
call fcn.00412cc0
mov eax, dword [0x4ab1fc]
test eax, eax
je 0x40fb3d
test byte [eax + 8], bl
je 0x40fb3d
mov dword [0x4ab1fc], 0
mov al, byte [ebp + 0xb]
or al, byte [0x4ac30c]
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.004124e0
add esp, 0x14
xor edi, edi
cmp dword [0x4ac41c], edi
je 0x40fb85
mov al, byte [0x4ac2ea]
mov cl, al
xor cl, byte [0x4ac2e9]
and cl, al
not cl
and al, cl
mov byte [0x4ac2ea], al
mov ebx, 1
cmp dword [ebp - 0x48], ebx
jne 0x40fbff
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
test bl, al
jne 0x40fbff
push 0x14
call esi
mov edx, 0x8000
test dx, ax
je 0x40fbbe
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push ebx
call fcn.004106a0
add esp, 0x18
push 0xffc3d44d
push edi
push edi
push edi
push 0x14
push 2
call fcn.004106a0
add esp, 0x18
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ad274]
jne 0x40fbff
push ebx
push 0xffffffffffffffff
mov dword [0x4a88ec], edi
call fcn.004013c0
add esp, 8
mov dword [0x4a88ec], ebx
cmp byte [ebp - 0xf], 0
je 0x40fc17
mov eax, dword [ebp - 0x4c]
mov ecx, dword [0x4ad274]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 8], 0
je 0x40fc31
cmp byte [ebp - 0x1e], 0
jne 0x40fc31
push edi
call dword [sym.imp.USER32.dll_BlockInput]
mov byte [0x4acb02], 0
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x40fc56
mov edx, dword [ebp - 0x58]
cmp dword [0x4ad8d8], edx
je 0x40fc87
call fcn.00403910
test eax, eax
je 0x40fc87
push ebx
push 0xffffffffffffffff
call fcn.004013c0
jmp 0x40fc84
cmp eax, ebx
jne 0x40fc87
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4ad274]
jne 0x40fc87
push ebx
push 0xffffffffffffffff
mov dword [0x4a88ec], edi
call fcn.004013c0
mov dword [0x4a88ec], 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