Function at 0x46ede0
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x10], ebx
call fcn.00428420
mov dword [esp + 0x18], eax
test eax, eax
je 0x46f1fa
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0045b960
mov edi, eax
test edi, edi
je 0x46f1fa
mov esi, dword [ebp + 0x10]
mov ecx, edi
mov edx, esi
call fcn.004a1a80
mov ebx, eax
test ebx, ebx
je 0x46f1f6
mov ecx, dword [esp + 0x18]
mov eax, dword fs:[0x24]
mov dword [esp + 0x20], eax
lea eax, [ecx - 1]
cmp eax, 0x10
ja case.default.0x46ee51
jmp dword [eax*4 + 0x46f610]
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push 0
push 0
push 0xf0
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x46f1f6
xor eax, eax
cmp dword [esp + 0x18], 1
sete al
cmp dword [esp + 0x14], eax
je case.default.0x46ee51
push 0
push edi
mov byte [esp + 0x17], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
je 0x46eed1
cmp esi, dword [0x4e6ce0]
je 0x46eed1
mov ecx, edi
call fcn.004a1f60
test al, al
jne 0x46eed1
push 1
push esi
push dword [0x4e6ce0]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0xf]
cmp edi, ebx
jne 0x46eede
mov ecx, ebx
call fcn.004a1f20
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
jne 0x46ef0d
xor edx, edx
mov dword [esp + 0x34], eax
xor ecx, ecx
mov dword [esp + 0x2c], edx
xor esi, esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], esi
jmp 0x46ef1d
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
sub eax, edx
sub ecx, esi
cdq
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
sub eax, edx
sar eax, 1
movzx edi, ax
mov eax, ecx
cdq
sub eax, edx
shl edi, 0x10
sar eax, 1
movzx eax, ax
or edi, eax
push edi
push 1
push 0x201
push ebx
call esi
push edi
push 0
push 0x202
push ebx
call esi
cmp byte [esp + 0xf], 0
je case.default.0x46ee51
push 0
push dword [esp + 0x20]
push dword [0x4e6ce0]
call dword [sym.imp.USER32.dll_AttachThreadInput]
jmp case.default.0x46ee51
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.default.0x46ee51
push 0
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp case.default.0x46ee51
push 4
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.default.0x46ee51
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.default.0x46ee51
mov edi, dword [ebp + 0xc]
cmp word [edi], 0
jne 0x46efc5
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
xor eax, eax
cmp ecx, 7
sete al
lea eax, [eax*4 - 0x14]
push eax
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
movzx edx, word [edi]
push edx
push 0x4d6ed8
mov dword [esp + 0x20], eax
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
jne 0x46f009
mov ecx, edi
call fcn.00404ab0
mov edi, dword [esp + 0x18]
mov esi, eax
jmp 0x46f03b
lea ecx, [edi + 2]
call fcn.00404ab0
mov esi, eax
movzx eax, word [edi]
mov edi, dword [esp + 0x18]
sub eax, 0x2b
je 0x46f039
sub eax, 2
je 0x46f033
sub eax, 0x31
jne 0x46f02d
xor esi, edi
jmp 0x46f03b
mov esi, dword [esp + 0x24]
jmp 0x46f03b
not esi
and esi, edi
jmp 0x46f03b
or esi, edi
cmp esi, edi
je 0x46f081
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
mov esi, dword [esp + 0x20]
push esi
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
test eax, eax
jne 0x46f066
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46f1f6
push esi
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp eax, edi
je 0x46f1f6
push 1
push 0
push ebx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [0x4e4b80]
push 1
push 0
push 0xffffffffffffffff
push 0x4b8cc8
call fcn.004a0110
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
lea eax, [esp + 0x14]
push eax
push 0x7d0
xor eax, eax
cmp ecx, 9
push 2
push 0
sete al
push eax
push 0x14f
jmp 0x46f59b
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x46f0d9
mov ecx, eax
call fcn.00417020
mov ecx, dword [esp + 0x18]
mov esi, eax
jmp 0x46f0de
mov esi, 1
cmp ecx, 0xb
setne al
xor dl, dl
lea eax, [eax*2 + 0x25]
mov cl, al
mov dword [esp + 0x1c], eax
call fcn.0041bf60
movzx eax, ax
shl eax, 0x10
test esi, esi
jle case.default.0x46ee51
mov ecx, dword [esp + 0x1c]
movzx edi, cl
mov ecx, eax
or ecx, 1
or eax, 0xc0000001
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
nop
push ecx
push edi
push 0x100
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x20]
mov dword [0x4e2114], 0
cmp dword [0x4e6ce0], eax
je 0x46f14e
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x46f15a
mov edx, 1
xor ecx, ecx
call fcn.00401a30
push dword [esp + 0x1c]
mov dword [0x4e2114], 1
push edi
push 0x101
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x18]
sub esi, 1
jne 0x46f120
jmp case.default.0x46ee51
cmp word [esi], 0
jne 0x46f19b
push 0x20
lea eax, [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
lea esi, [esp + 0x38]
mov edx, 0x4d86d8
mov ecx, esi
call fcn.0049c600
test eax, eax
je 0x46f1b2
mov eax, 0x143
jmp 0x46f1c7
mov edx, str.List
mov ecx, esi
call fcn.0049c600
test eax, eax
je 0x46f1f6
mov eax, 0x180
lea ecx, [esp + 0x14]
push ecx
push 0x7d0
push 2
push dword [ebp + 0xc]
push 0
push eax
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x46f1f6
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x46f1f6
cmp eax, 0xfffffffe
jne case.default.0x46ee51
mov ebx, dword [esp + 0x10]
mov eax, dword [0x4e211c]
test byte [eax + 0x100], 1
jne 0x46f5f2
mov ecx, dword [0x4e4b80]
push 1
push 0
push 0xffffffffffffffff
push 0x4cefc4
call fcn.004a0110
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp + 0xc]
cmp word [ecx], 0
je 0x46f1f6
call fcn.00417020
mov edi, eax
sub edi, 1
js 0x46f1f6
cmp word [esi], 0
jne 0x46f258
push 0x20
lea eax, [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
lea esi, [esp + 0x38]
mov edx, 0x4d86d8
mov ecx, esi
call fcn.0049c600
test eax, eax
je 0x46f26f
mov eax, 0x144
jmp 0x46f288
mov edx, str.List
mov ecx, esi
call fcn.0049c600
test eax, eax
je 0x46f1f6
mov eax, 0x182
lea ecx, [esp + 0x14]
push ecx
push 0x7d0
push 2
push 0
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x46f1f6
cmp dword [esp + 0x14], 0xffffffff
jmp 0x46f5a4
mov ecx, dword [ebp + 0xc]
cmp word [ecx], 0
je 0x46f1f6
call fcn.00417020
mov edi, eax
sub edi, 1
js 0x46f1f6
cmp word [esi], 0
jne 0x46f2e6
push 0x20
lea eax, [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
lea esi, [esp + 0x38]
mov edx, 0x4d86d8
mov ecx, esi
call fcn.0049c600
test eax, eax
je 0x46f3a2
mov ecx, 0x14e
mov dword [esp + 0x18], 0x90000
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push 0
push edi
push ecx
mov esi, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push ebx
call esi
test eax, eax
je 0x46f1f6
cmp dword [esp + 0x14], 0xffffffff
je 0x46f1f6
push ebx
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x46f1f6
push ebx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
test eax, eax
je 0x46f1f6
movzx edi, ax
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push ebx
mov eax, edi
or eax, 0x10000
push eax
push 0x111
push dword [esp + 0x34]
call esi
test eax, eax
je 0x46f1f6
or edi, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push ebx
push edi
push 0x111
push dword [esp + 0x34]
call esi
jmp 0x46f5a2
mov edx, str.List
mov ecx, esi
call fcn.0049c600
test eax, eax
je 0x46f1f6
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x808
mov dword [esp + 0x18], 0x20000
mov ecx, eax
neg ecx
sbb ecx, ecx
add ecx, 0x186
test eax, eax
je 0x46f307
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push edi
push 1
push 0x185
jmp 0x46f317
cmp word [esi], 0
jne 0x46f411
push 0x20
lea eax, [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
lea esi, [esp + 0x38]
mov edx, 0x4d86d8
mov ecx, esi
call fcn.0049c600
test eax, eax
je 0x46f4e3
mov ecx, 0x14d
mov dword [esp + 0x1c], 0x90000
mov esi, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push dword [ebp + 0xc]
push 0xffffffffffffffff
push ecx
push ebx
call esi
test eax, eax
je 0x46f1f6
cmp dword [esp + 0x14], 0xffffffff
je 0x46f1f6
push ebx
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esp + 0x18], eax
test eax, eax
je 0x46f1f6
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test edi, edi
jne 0x46f496
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46f1f6
lea eax, [esp + 0x14]
movzx edi, di
push eax
push 0x7d0
push 2
push ebx
mov eax, edi
or eax, 0x10000
push eax
push 0x111
push dword [esp + 0x30]
call esi
test eax, eax
je 0x46f1f6
or edi, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push ebx
push edi
push 0x111
push dword [esp + 0x30]
call esi
jmp 0x46f5a2
mov edx, str.List
mov ecx, esi
call fcn.0049c600
test eax, eax
je 0x46f1f6
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x808
mov dword [esp + 0x1c], 0x20000
mov ecx, 0x18f
mov edx, 0x18c
cmove ecx, edx
test eax, eax
je 0x46f432
mov esi, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea eax, [esp + 0x24]
push eax
push 0x7d0
push 2
push dword [ebp + 0xc]
push 0xffffffffffffffff
push 0x18f
push ebx
call esi
test eax, eax
je 0x46f1f6
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x46f1f6
lea ecx, [esp + 0x14]
push ecx
push 0x7d0
push 2
push eax
push 1
push 0x185
push ebx
call esi
test eax, eax
je 0x46f1f6
cmp dword [esp + 0x14], 0xffffffff
jne 0x46f460
jmp 0x46f1f6
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push dword [ebp + 0xc]
push 1
push 0xc2
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x46f1f6
mov eax, dword [0x4e211c]
cmp dword [eax + 0x58], 0xffffffff
jle 0x46f081
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4e6ce0], eax
jne 0x46f5df
mov ecx, dword [0x4e211c]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.00401a30
jmp 0x46f081
mov eax, dword [0x4e211c]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x46f081
push 0x4b8c14
push 0
push 0x4cefc4
mov ecx, ebx
call fcn.004473a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c