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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ccf1c
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0
push esi
push edi
je 0x40f3aa
mov edi, dword [ebp + 0xc]
mov esi, dword [0x4ec48c]
mov dword [ebp - 0x38], esi
test edi, edi
jne 0x40e270
push 7
push str.Blind
push ebx
call fcn.004babb4
add esp, 0xc
test eax, eax
jne 0x40e270
add ebx, 7
mov byte [0x4efad8], 1
mov dword [ebp + 8], ebx
jmp 0x40e27b
mov byte [0x4efad8], 0
test edi, edi
jne 0x40e29f
push 6
push 0x4d96ac
push ebx
call fcn.004babb4
add esp, 0xc
test eax, eax
jne 0x40e29f
mov dword [ebp + 0xc], 2
mov edi, dword [ebp + 0xc]
add ebx, 6
mov dword [ebp + 8], ebx
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x5c], ecx
cmp eax, 1
je 0x40e2b8
cmp eax, 3
jne 0x40e320
cmp dword [0x4f2890], 0
je 0x40e2f6
call fcn.004091f0
test al, al
jne 0x40e2f3
test edi, edi
jne 0x40e2ea
call fcn.00409250
test al, al
je 0x40e2ea
push str.Click
mov eax, ebx
call fcn.004a3290
add esp, 4
test eax, eax
jne 0x40e2f3
mov dword [ebp + 0x10], 1
jmp 0x40e320
mov eax, dword [ebp + 0x10]
cmp eax, 3
jne 0x40e304
mov dword [ebp + 0x10], 2
jmp 0x40e320
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [esi + 0x5c], eax
jge 0x40e316
cmp dword [esi + 0x64], eax
jge 0x40e316
or eax, 0xffffffff
mov dword [esi + 0x64], eax
mov dword [esi + 0x5c], 0xffffffff
xor ebx, ebx
mov byte [ebp - 0x1b], 0
cmp dword [ebp + 0x14], ebx
je 0x40e37b
mov edx, dword [ebp + 0x14]
push ebx
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
mov dword [ebp - 0x58], edi
test edi, edi
je 0x40e484
cmp edi, dword [0x4f1c80]
je 0x40e484
mov esi, dword [ebp + 0x14]
call fcn.004a7ae0
test al, al
jne 0x40e481
mov eax, dword [0x4f1c80]
push 1
push edi
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [ebp - 0x1b]
mov ebx, edi
jmp 0x40e481
test byte [0x4f22d1], 0xc0
je 0x40e472
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4f22c8]
cmp eax, 0x32
jae 0x40e472
cmp dword [ebp + 0x10], 2
je 0x40e472
cmp byte [0x4efad8], bl
jne 0x40e472
cmp edi, 2
je 0x40e472
cmp byte [0x4f24ae], bl
je 0x40e472
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4f1c80]
jne 0x40e472
mov eax, dword [ebp + 8]
test edi, edi
mov edi, 0x4d9838
je 0x40e43e
call fcn.004099e0
test eax, eax
setne al
test al, al
je 0x40e472
mov ebx, 1
xor edi, edi
jmp 0x40e400
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
jne 0x40e422
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40e472
push ebx
push 0x8000012f
mov dword [0x4ec46c], edi
call fcn.00401910
add esp, 8
mov dword [0x4ec46c], ebx
jmp 0x40e400
call fcn.004099e0
test eax, eax
je 0x40e472
jmp 0x40e450
inc eax
mov edi, 0x4d983c
call fcn.004099e0
test eax, eax
je 0x40e3f4
cmp byte [eax], 0x7b
je 0x40e3f4
mov edi, 0x4d9838
call fcn.004099e0
test eax, eax
jne 0x40e450
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, eax
call fcn.004127d0
mov ebx, eax
mov esi, dword [ebp - 0x38]
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x4efafc], eax
push eax
xor eax, eax
call fcn.00412870
add esp, 4
push 1
mov dword [0x4efaf8], eax
call fcn.00412200
mov bl, al
and byte [0x4f1551], bl
add esp, 4
cmp dword [0x4f0d08], 0
mov byte [ebp - 0x14], bl
je 0x40e4da
mov cl, byte [0x4f0bd5]
mov dl, byte [0x4f0bd7]
mov al, cl
not cl
and al, dl
and cl, dl
mov byte [ebp - 0xf], dl
mov byte [ebp - 0x16], cl
jmp 0x40e505
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4f22c8]
cmp eax, dword [0x4ec464]
jae 0x40e4fa
mov al, byte [0x4f22d1]
and al, bl
mov byte [ebp - 0xf], al
jmp 0x40e501
mov byte [ebp - 0xf], 0
mov al, byte [ebp - 0xf]
mov byte [ebp - 0x16], 0
mov cl, byte [0x4f1550]
not al
and al, bl
and cl, al
mov al, byte [0x4efad8]
mov byte [0x4f1550], cl
test al, al
je 0x40e52c
not cl
and cl, bl
mov byte [ebp - 0xe], cl
mov byte [ebp - 0x13], bl
jmp 0x40e533
mov byte [ebp - 0xe], 0
mov byte [ebp - 0x13], cl
cmp byte [esi + 0xd3], 0
je 0x40e55a
test al, al
jne 0x40e55a
cmp dword [ebp + 0xc], 2
je 0x40e55a
push 2
mov bl, 0x14
call fcn.00411a80
mov bl, byte [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x40], eax
jmp 0x40e561
mov dword [ebp - 0x40], 0
mov esi, dword [ebp + 0x10]
xor edi, edi
mov dword [0x4f1554], esi
cmp esi, edi
je 0x40e5d1
cmp esi, 1
jne 0x40e586
mov eax, 0x36b0
mov dword [0x4efaec], 0x1f4
jmp 0x40e595
mov eax, 0x2ee0
mov dword [0x4efaec], 0x5dc
call fcn.004c41d0
mov eax, esp
mov dword [0x4efaf4], eax
mov eax, SysReAllocString
mov byte [0x4efae4], bl
mov dword [0x4efadc], eax
mov dword [0x4efae0], eax
mov byte [0x4efadb], 0
mov dword [0x4efaf0], edi
mov byte [0x4efada], 0
mov byte [0x4efad9], 1
mov al, byte [0x4f14e4]
mov byte [ebp - 0x2a], al
mov eax, dword [0x4ec504]
cmp eax, 8
je 0x40e5e8
cmp eax, 0xa
jne 0x40e63f
cmp esi, edi
jne 0x40e63f
cmp dword [ebp + 0x14], edi
jne 0x40e63f
test byte [0x4f4a28], 1
mov byte [ebp - 0x14], 1
jne 0x40e645
or dword [0x4f4a28], 1
push 0x4d756c
mov dword [ebp - 4], edi
call fcn.0049be50
add esp, 4
push eax
push str.__45g
call fcn.0049be50
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4f4a24], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x40e64a
mov byte [ebp - 0x14], 0
jmp 0x40e659
mov eax, dword [0x4f4a24]
cmp eax, edi
je 0x40e652
push 1
call eax
mov byte [0x4f14e4], 1
mov ecx, dword [ebp + 8]
xor bl, bl
mov byte [ebp - 0xd], bl
cmp byte [ecx], bl
je 0x40f002
lea esp, [esp]
cmp dword [0x4f1554], 0
mov esi, dword [ebp + 8]
mov byte [ebp - 0x15], 0
jne 0x40e6dc
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x4f2304]
mov edx, dword [0x4ec48c]
cmp eax, dword [edx + 0xb8]
jbe 0x40e6dc
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 0x40e6d5
push 1
push 0xffffffffffffffff
mov dword [0x4ec46c], 0
call fcn.00401910
add esp, 8
mov dword [0x4ec46c], 1
call edi
mov dword [0x4f2304], eax
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x40ef17
movsx eax, byte [esi]
push eax
push 0x4d9840
call fcn.004bb121
add esp, 8
test eax, eax
je 0x40ef6c
movsx eax, byte [esi]
add eax, 0xffffffdf
cmp eax, 0x5c
ja case.0x40e716.34
movzx ecx, byte [eax + 0x40f3e0]
jmp dword [ecx*4 + 0x40f3c4]
test byte [ebp - 0x13], 3
jne case.0x40e716.34
or bl, 1
jmp 0x40efe6
test byte [ebp - 0x13], 0x30
jne case.0x40e716.34
or bl, 0x10
jmp 0x40efe6
test byte [ebp - 0x13], 0xc
jne case.0x40e716.34
or bl, 4
jmp 0x40efe6
test byte [ebp - 0x13], 0xc0
jne case.0x40e716.34
or bl, 0x40
jmp 0x40efe6
mov esi, dword [ebp + 8]
inc esi
push 0x7d
push esi
call fcn.004bb121
mov edi, eax
add esp, 8
mov dword [ebp - 0x28], edi
test edi, edi
je case.0x40e716.34
mov al, byte [esi]
cmp al, 0x20
je 0x40e78b
cmp al, 9
jne 0x40e78e
inc esi
jmp 0x40e781
mov eax, edi
sub eax, esi
mov dword [ebp - 0x30], esi
mov dword [ebp + 8], esi
mov dword [ebp - 0x34], eax
jne 0x40e817
mov al, byte [edi + 1]
inc edi
cmp al, 0x7d
jne 0x40e7b1
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x34], 1
jmp 0x40e814
cmp al, 0x20
je 0x40e7c0
cmp al, 9
jne 0x40ef0c
lea ecx, [ecx]
mov al, byte [edi]
cmp al, 0x20
je 0x40e7ca
cmp al, 9
jne 0x40e7cd
inc edi
jmp 0x40e7c0
push 4
push str.Down
push edi
call fcn.004babb4
add esp, 0xc
test eax, eax
je 0x40e7f9
push 2
push 0x4d955c
push edi
call fcn.004babb4
add esp, 0xc
test eax, eax
jne 0x40ef0c
push 0x7d
push edi
call fcn.004bb121
add esp, 8
mov dword [ebp - 0x28], eax
test eax, eax
je case.0x40e716.34
sub eax, esi
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x28]
push 5
push 0x4d97d0
push esi
call fcn.004babb4
add esp, 0xc
test eax, eax
jne 0x40e8cf
mov byte [edi], al
lea eax, [esi + 5]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40e840
cmp cl, 9
jne 0x40e843
inc eax
jmp 0x40e834
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x1a]
push ecx
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x48]
push ecx
call fcn.00410420
mov ecx, dword [ebp - 0x3c]
add esp, 0x18
mov byte [edi], 0x7d
cmp ecx, 1
jge 0x40e89a
mov eax, dword [ebp - 0x38]
movzx ecx, byte [eax + 0xcf]
mov edx, dword [ebp - 0x4c]
push edx
push ecx
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x6c]
lea eax, [ebp - 0x48]
call fcn.00411060
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x40efe4
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x48]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x13]
push 0
push eax
mov eax, dword [ebp - 0x1a]
push edx
push 0
push eax
mov al, bl
call fcn.0040f460
mov eax, dword [ebp - 0x28]
add esp, 0x24
mov dword [ebp + 8], eax
jmp 0x40efe4
push 3
push 0x4d9850
push esi
call fcn.004babb4
add esp, 0xc
test eax, eax
jne 0x40e8f5
mov eax, dword [ebp - 0x28]
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], eax
jmp 0x40efe4
push 4
push str.Text
push esi
call fcn.004babb4
add esp, 0xc
test eax, eax
jne 0x40e937
add esi, 4
lea esp, [esp]
mov al, byte [esi]
cmp al, 0x20
je 0x40e91a
cmp al, 9
jne 0x40e91d
inc esi
jmp 0x40e910
cmp esi, edi
jne 0x40ef0c
mov eax, dword [ebp - 0x28]
mov dword [ebp + 0xc], 2
mov dword [ebp + 8], eax
jmp 0x40efe4
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
mov edi, 0x4d9558
mov eax, esi
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x3c], 1
mov dword [ebp + 8], ecx
mov byte [edx], 0
call fcn.004099e0
mov ebx, eax
test ebx, ebx
je 0x40ea0c
mov al, byte [ebx]
mov byte [ebp - 0x29], 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 0x40e98a
cmp al, 9
jne 0x40e98d
inc edi
jmp 0x40e980
mov ecx, dword [ebp - 0x28]
sub ecx, edi
je 0x40ea0c
push 4
push str.Down
push edi
call fcn.004babb4
add esp, 0xc
test eax, eax
jne 0x40e9e4
push 4
add edi, 4
push str.Temp
push edi
mov dword [ebp - 0x20], eax
call fcn.004babb4
add esp, 0xc
test eax, eax
jne 0x40e9c7
mov dword [ebp - 0x44], eax
jmp 0x40ea0c
xor edx, edx
cmp byte [edi], 0x52
sete dl
push edx
call fcn.004bbc73
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [ebp - 0x44], eax
jmp 0x40ea0c
push 0x4d955c
push edi
call fcn.004ba135
add esp, 8
test eax, eax
jne 0x40e9ff
mov dword [ebp - 0x20], 1
jmp 0x40ea0c
mov esi, edi
call fcn.0040dda0
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x1a]
push eax
mov eax, dword [0x4efafc]
lea ecx, [ebp - 0xd]
lea edi, [ebp - 0x50]
mov edx, esi
call fcn.00412da0
add esp, 4
test ebx, ebx
je 0x40ea2e
mov cl, byte [ebp - 0x29]
mov byte [ebx], cl
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x28]
mov eax, 1
mov byte [edx], 0x7d
cmp edi, eax
jl 0x40ef0c
mov bl, byte [ebp - 0x1a]
test bl, bl
jne 0x40ee56
cmp word [ebp - 0x50], 0
jne 0x40ee56
cmp dword [ebp + 8], eax
jne 0x40eabc
cmp dword [ebp - 0x20], eax
je 0x40ef0c
cmp dword [ebp + 0x14], 0
je 0x40ea99
test edi, edi
jle 0x40ef0c
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 0x40ea76
mov eax, dword [ebp - 0x28]
mov dword [ebp + 8], eax
jmp 0x40efe4
mov dl, byte [ebp - 0xd]
or dl, byte [ebp - 0x13]
movzx ecx, byte [esi]
movzx eax, dl
push eax
push ecx
mov eax, edi
call fcn.0040f810
mov eax, dword [ebp - 0x28]
add esp, 8
mov dword [ebp + 8], eax
jmp 0x40efe4
cmp dword [ebp + 0x14], 0
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
lea edx, [ebp - 0x13]
push edx
lea eax, [ebp - 0x20]
sete bl
push eax
call fcn.00412e50
add esp, 8
mov byte [ebp - 0x1a], al
test al, al
je 0x40ecc1
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40eafa
cmp dword [ebp - 0x20], edi
jne 0x40eaf5
mov byte [ebp - 0x15], al
jmp 0x40eafa
call fcn.0040df90
cmp dword [0x4f1554], 0
je 0x40eb0e
mov bl, byte [0x4efae4]
jmp 0x40ec00
cmp dword [0x4f0d08], 0
je 0x40eb22
mov bl, byte [0x4f0bd5]
jmp 0x40ec00
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40eb3d
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40eb51
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40eb65
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40eb79
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40eb8d
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40eba1
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40ebb2
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40ebc3
or bl, 0x80
cmp dword [0x4f0d08], 0
je 0x40ec00
mov al, bl
not al
and al, byte [0x4f0bd5]
je 0x40ec00
mov cl, byte [0x4f0bd7]
not al
and byte [0x4f0bd5], al
and byte [0x4f0bd6], al
and cl, al
mov al, cl
mov byte [0x4f0bd7], cl
mov ecx, 0x4f0bf8
call fcn.00412300
mov eax, dword [ebp - 0x13]
push 0
push 0
push edi
push ebx
push eax
mov eax, 0xffc3d44d
call fcn.00411b90
mov eax, dword [ebp - 0x3c]
add esp, 0x14
test eax, eax
jle 0x40ef0c
mov ebx, dword [ebp - 0x1a]
mov edi, eax
jmp 0x40ec30
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x20]
push 0xffc3d44d
push 1
push ecx
push 0
push ebx
push edx
call fcn.0040fd20
add esp, 0x18
cmp dword [0x4f1554], 0
jne 0x40ecaf
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4f2304]
mov ecx, dword [0x4ec48c]
cmp eax, dword [ecx + 0xb8]
jbe 0x40ecaf
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 0x40eca8
push 1
push 0xffffffffffffffff
mov dword [0x4ec46c], 0
call fcn.00401910
add esp, 8
mov dword [0x4ec46c], 1
call esi
mov dword [0x4f2304], eax
dec edi
jne 0x40ec30
mov eax, dword [ebp - 0x28]
mov dword [ebp + 8], eax
jmp 0x40efe4
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
cmp edi, 4
jbe 0x40ed3e
push 4
push str.ASC
push esi
call fcn.004babb4
mov ebx, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x40ed41
test ebx, ebx
jne 0x40ed41
lea eax, [esi + 3]
lea ebx, [ebx]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40ecfc
cmp cl, 9
jne 0x40ecff
inc eax
jmp 0x40ecf0
call fcn.0040f930
cmp dword [0x4f1554], 2
jne 0x40ed25
mov eax, dword [0x4ec48c]
mov esi, dword [eax + 0x60]
call fcn.004117d0
mov eax, dword [ebp - 0x28]
mov dword [ebp + 8], eax
jmp 0x40efe4
mov ecx, dword [0x4ec48c]
mov esi, dword [ecx + 0x5c]
call fcn.004117d0
mov eax, dword [ebp - 0x28]
mov dword [ebp + 8], eax
jmp 0x40efe4
mov ebx, dword [ebp + 0x14]
cmp edi, 2
jbe 0x40ef0c
push 2
push 0x4d986c
push esi
call fcn.004babb4
add esp, 0xc
test eax, eax
jne 0x40ef0c
push 0x10
push eax
add esi, 2
push esi
call fcn.004bbb06
add esp, 0xc
cmp eax, 0x10000
jb 0x40eda4
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 0x40eda9
movzx edi, ax
xor esi, esi
test ebx, ebx
je 0x40edd6
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 0x40ee1c
push 0
movzx eax, si
push eax
push 0x102
push ebx
call edi
jmp 0x40ee1c
cmp dword [0x4f1554], 2
je 0x40ee01
movzx ebx, byte [ebp - 0xd]
or bl, byte [ebp - 0x13]
push ebx
call fcn.0040e010
add esp, 4
test si, si
je 0x40ee1c
push ebx
mov edi, esi
call fcn.0040e010
add esp, 4
jmp 0x40ee1c
push 0xa
lea ecx, [ebp - 0x67]
push ecx
push eax
mov byte [ebp - 0x68], 0x30
call fcn.004b9d8d
add esp, 0xc
lea eax, [ebp - 0x68]
call fcn.0040f930
cmp dword [0x4f1554], 2
jne 0x40ee3e
mov edx, dword [0x4ec48c]
mov esi, dword [edx + 0x60]
call fcn.004117d0
mov eax, dword [ebp - 0x28]
mov dword [ebp + 8], eax
jmp 0x40efe4
mov eax, dword [0x4ec48c]
mov esi, dword [eax + 0x5c]
call fcn.004117d0
mov eax, dword [ebp - 0x28]
mov dword [ebp + 8], eax
jmp 0x40efe4
mov esi, dword [ebp - 0x50]
xor ecx, ecx
mov edx, esi
mov al, bl
call fcn.004123d0
mov byte [ebp - 0x24], al
test al, al
je 0x40eede
cmp dword [ebp + 0x14], 0
jne 0x40eede
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x40ee9e
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 0x15], bl
cmp ecx, 1
jne 0x40ee8e
or byte [0x4f1550], al
or byte [ebp - 0x13], al
jmp 0x40eede
cmp ecx, 2
jne 0x40ee99
or byte [0x4f1551], al
or byte [ebp - 0x13], al
jmp 0x40eede
cmp ecx, 1
jne 0x40eede
mov al, bl
call fcn.0040df90
mov al, byte [ebp - 0x24]
mov cl, byte [0x4f1550]
not al
and byte [0x4f1551], al
and byte [ebp - 0xe], al
and cl, al
mov byte [0x4f1550], cl
cmp bl, 0xa5
jne 0x40eed8
cmp dword [0x4efaf8], 3
jne 0x40eed8
and byte [ebp - 0xe], 0xfe
or cl, byte [ebp - 0xe]
mov byte [ebp - 0x13], cl
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
push 0
push SysReAllocString
push SysReAllocString
push ecx
mov ecx, dword [ebp - 0x13]
push edx
mov edx, dword [ebp - 0x1a]
push eax
mov al, byte [ebp - 0xd]
push ecx
push esi
push edx
mov ecx, edi
call fcn.0040f460
add esp, 0x24
mov eax, dword [ebp - 0x28]
mov dword [ebp + 8], eax
jmp 0x40efe4
cmp edi, 2
jne 0x40ef6c
movsx eax, byte [esi]
add eax, 0xfffffff8
cmp eax, 5
ja case.0x40ef27.11
jmp dword [eax*4 + 0x40f440]
cmp byte [esi + 1], 0xa
jne case.0x40ef27.10
inc esi
mov dword [ebp + 8], esi
mov byte [ebp - 0x1a], 0xd
jmp 0x40ef9d
mov byte [ebp - 0x1a], 8
jmp 0x40ef9d
mov byte [ebp - 0x1a], 9
jmp 0x40ef9d
mov edi, dword [ebp + 8]
mov byte [ebp - 0x1a], 0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40efcc
movsx edx, byte [edi]
push 0
push edx
push 0x102
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40efe4
or bl, byte [ebp - 0x13]
je 0x40ef79
test edi, edi
jne 0x40ef79
mov al, 1
jmp 0x40ef7b
xor al, al
mov ecx, dword [0x4efafc]
mov edi, dword [ebp + 8]
mov bl, byte [edi]
push eax
push ecx
lea esi, [ebp - 0xd]
call fcn.00412ce0
mov bl, byte [ebp - 0xd]
add esp, 8
mov byte [ebp - 0x1a], al
test al, al
je 0x40ef51
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x13]
mov ecx, dword [ebp - 0x1a]
push 0
push SysReAllocString
push SysReAllocString
push edx
push 0
push 2
push eax
push 0
push ecx
mov ecx, 1
mov al, bl
call fcn.0040f460
add esp, 0x24
jmp 0x40efe4
or bl, byte [ebp - 0x13]
movzx ecx, byte [edi]
movzx eax, bl
push eax
push ecx
mov eax, 1
call fcn.0040f810
add esp, 8
xor bl, bl
mov byte [ebp - 0xd], bl
mov eax, dword [ebp + 8]
mov dl, byte [ebp - 0x15]
inc eax
cmp byte [eax], 0
mov dword [ebp + 8], eax
mov byte [0x4f152b], dl
jne 0x40e670
mov eax, dword [0x4f1554]
test eax, eax
je 0x40f0b9
cmp byte [0x4efada], 0
mov dword [ebp - 0x24], 0xffffffff
jne 0x40f07e
cmp dword [0x4efaf0], 0
jbe 0x40f07e
cmp byte [0x4efad8], 0
je 0x40f035
xor eax, eax
jmp 0x40f041
movzx eax, byte [ebp - 0x16]
movzx ecx, byte [ebp - 0xf]
not eax
and eax, ecx
or al, byte [0x4f1551]
movzx edx, byte [0x4efae4]
or al, byte [ebp - 0x13]
push 1
push 1
mov byte [ebp + 8], al
mov esi, dword [ebp + 8]
push 0
push edx
push esi
mov eax, 0xffc3d44d
call fcn.00411b90
add esp, 0x14
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.00411680
mov eax, dword [0x4f1554]
add esp, 8
dec eax
neg eax
sbb eax, eax
and eax, 0x3e8
add eax, 0x1f4
cmp dword [0x4efaec], eax
jbe 0x40f0a4
mov ecx, dword [0x4efaf4]
push ecx
call fcn.004ba14c
add esp, 4
mov esi, dword [ebp - 0x24]
xor ebx, ebx
mov dword [0x4f1554], ebx
call fcn.004117d0
jmp 0x40f23a
cmp dword [0x4f0d08], 0
je 0x40f0ca
mov cl, byte [0x4f0bd7]
jmp 0x40f0ee
cmp dword [0x4ec464], 0
jl 0x40f0eb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4f22c8]
cmp eax, dword [0x4ec464]
jb 0x40f0eb
xor cl, cl
jmp 0x40f0ee
mov cl, byte [ebp - 0xf]
or cl, byte [0x4f1551]
cmp byte [0x4efad8], 0
je 0x40f116
mov dl, byte [ebp - 0xf]
mov al, cl
xor al, dl
mov bl, al
and bl, dl
not bl
and bl, byte [ebp - 0x13]
and al, cl
or bl, al
mov byte [ebp + 8], bl
jmp 0x40f123
mov al, byte [ebp - 0x16]
not al
and al, cl
or al, byte [ebp - 0x13]
mov byte [ebp + 8], al
cmp dword [0x4f0d08], 0
je 0x40f13a
mov dl, byte [0x4f0bd5]
mov byte [ebp - 0x24], dl
jmp 0x40f21b
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f155
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40f169
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f17d
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40f191
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f1a5
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40f1b9
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40f1ca
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40f1db
or bl, 0x80
cmp dword [0x4f0d08], 0
je 0x40f218
mov al, bl
not al
and al, byte [0x4f0bd5]
je 0x40f218
mov cl, byte [0x4f0bd7]
not al
and byte [0x4f0bd5], al
and byte [0x4f0bd6], al
and cl, al
mov al, cl
mov byte [0x4f0bd7], cl
mov ecx, 0x4f0bf8
call fcn.00412300
mov byte [ebp - 0x24], bl
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
push 1
push 1
push eax
push ecx
push edx
mov eax, 0xffc3d44d
call fcn.00411b90
add esp, 0x14
xor ebx, ebx
cmp dword [0x4f0d08], ebx
je 0x40f25a
mov al, byte [0x4f0bd6]
mov cl, al
xor cl, byte [0x4f0bd5]
and cl, al
not cl
and al, cl
mov byte [0x4f0bd6], al
mov edi, 1
cmp dword [ebp - 0x40], edi
jne 0x40f2e9
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call esi
and al, 1
movsx eax, al
neg eax
sbb eax, eax
add eax, 2
cmp eax, edi
je 0x40f2e9
push 0x14
call esi
mov edx, 0x8000
test dx, ax
je 0x40f2a3
push 0xffc3d44d
push ebx
push ebx
push ebx
push 0x14
push edi
call fcn.0040fd20
add esp, 0x18
push 0xffc3d44d
push ebx
push ebx
push ebx
push 0x14
push 2
call fcn.0040fd20
add esp, 0x18
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4f1c80]
sete al
test al, al
je 0x40f2e9
push edi
push 0xffffffffffffffff
mov dword [0x4ec46c], ebx
call fcn.00401910
add esp, 8
mov dword [0x4ec46c], edi
cmp byte [ebp - 0x1b], 0
je 0x40f301
mov eax, dword [ebp - 0x58]
mov ecx, dword [0x4f1c80]
push ebx
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [ebp - 0x14], 0
je 0x40f369
cmp byte [ebp - 0x2a], 0
jne 0x40f369
test byte [0x4f4a28], 1
jne 0x40f356
or dword [0x4f4a28], edi
push 0x4d756c
mov dword [ebp - 4], edi
call fcn.0049be50
add esp, 4
push eax
push str.__45g
call fcn.0049be50
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4f4a24], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x40f35b
mov eax, dword [0x4f4a24]
cmp eax, ebx
je 0x40f362
push ebx
call eax
mov byte [0x4f14e4], 0
cmp dword [ebp + 0x10], edi
jne 0x40f39b
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4f1c80]
jne 0x40f39b
push edi
push 0xffffffffffffffff
mov dword [0x4ec46c], ebx
call fcn.00401910
add esp, 8
mov dword [0x4ec46c], edi
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
mov dword [eax + 0x5c], edx
mov dword [eax + 0x64], ecx
lea esp, [ebp - 0x98]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret