Function at 0x470980
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebx, eax
call fcn.004288d0
mov ebp, eax
test ebp, ebp
je 0x471158
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x84]
call fcn.0045d790
mov dword [esp + 0x7c], eax
test eax, eax
je 0x471158
mov esi, dword [esp + 0x74]
mov ecx, eax
push ecx
call fcn.004a4270
mov edi, eax
add esp, 4
test edi, edi
je 0x471158
mov edx, dword fs:[0x24]
lea eax, [ebp - 1]
mov dword [esp + 0x84], edx
cmp eax, 0x10
ja case.default.0x4709f5
jmp dword [eax*4 + 0x4711c4]
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push 0
push 0
push 0xf0
push edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x471158
xor ecx, ecx
cmp ebp, 1
sete cl
cmp dword [esp + 0x14], ecx
je case.default.0x4709f5
mov edx, dword [esp + 0x7c]
push 0
push edx
xor bl, bl
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x74], eax
test eax, eax
je 0x470a77
cmp eax, dword [0x4ea158]
je 0x470a77
mov esi, dword [esp + 0x7c]
call fcn.004a4790
test al, al
jne 0x470a77
mov eax, dword [esp + 0x74]
mov ecx, dword [0x4ea158]
push 1
push eax
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne bl
mov eax, dword [esp + 0x7c]
cmp eax, edi
jne 0x470a86
mov eax, edi
call fcn.004a4720
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
jne 0x470aad
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_PostMessageW]
cdq
sub eax, edx
sar eax, 1
movzx esi, ax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
shl esi, 0x10
cdq
sub eax, edx
sar eax, 1
movzx eax, ax
or esi, eax
push esi
push 1
push 0x201
push edi
call ebp
push esi
push 0
push 0x202
push edi
call ebp
test bl, bl
je case.default.0x4709f5
mov ecx, dword [esp + 0x74]
mov edx, dword [0x4ea158]
push 0
push ecx
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
jmp case.default.0x4709f5
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [0x4e4b24]
cmp dword [eax + 0x58], 0xffffffff
jle 0x4711a2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4ea158], eax
jne 0x471193
mov ecx, dword [0x4e4b24]
mov edx, dword [ecx + 0x58]
push 1
push edx
call fcn.00401510
add esp, 8
jmp 0x4711a2
push 0
jmp 0x470b0a
push 4
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.default.0x4709f5
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.default.0x4709f5
cmp word [ebx], 0
jne 0x470b7a
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x18
xor eax, eax
cmp ebp, 7
sete al
lea eax, [eax*4 - 0x14]
push eax
push edi
mov dword [esp + 0x7c], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebp, eax
movzx eax, word [ebx]
push eax
push 0x4d9fa0
call dword [sym.imp.MSVCR100.dll_wcschr]
add esp, 8
test eax, eax
jne 0x470bb8
mov esi, ebx
call fcn.00403dd0
mov esi, eax
jmp 0x470bea
lea esi, [ebx + 2]
call fcn.00403dd0
movzx ecx, word [ebx]
sub ecx, 0x2b
je 0x470be0
sub ecx, 2
je 0x470bd8
sub ecx, 0x31
jne 0x470be6
xor eax, ebp
mov esi, eax
jmp 0x470bea
not eax
and eax, ebp
mov esi, eax
jmp 0x470bea
or eax, ebp
mov esi, eax
jmp 0x470bea
mov esi, dword [esp + 0x74]
cmp esi, ebp
jne 0x470c0f
mov ecx, dword [0x4e86f0]
push 1
push 0
push 0xffffffffffffffff
push 0x4bbb9c
push ecx
call fcn.004a2810
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x18
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
mov esi, dword [esp + 0x78]
push esi
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
test eax, eax
jne 0x470c36
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x471158
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp eax, ebp
je 0x471158
push 1
push 0
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4711a2
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
push 0x7d0
cmp ebp, 9
sete cl
push 2
push 0
push ecx
push 0x14f
push edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x471158
jmp case.default.0x4709f5
cmp word [ebx], 0
je 0x470c99
mov esi, ebx
call fcn.00417490
mov dword [esp + 0x74], eax
jmp 0x470ca1
mov dword [esp + 0x74], 1
cmp ebp, 0xb
setne al
xor bl, bl
lea eax, [eax + eax + 0x25]
mov byte [esp + 0x7c], al
mov edx, dword [esp + 0x7c]
push edx
call fcn.0041ca10
movzx eax, ax
add esp, 4
shl eax, 0x10
cmp dword [esp + 0x74], 0
jle case.default.0x4709f5
movzx ebx, byte [esp + 0x7c]
mov ebp, dword [sym.imp.USER32.dll_PostMessageW]
mov esi, eax
or esi, 1
or eax, 0xc0000001
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x74], eax
push esi
push ebx
push 0x100
push edi
call ebp
mov ecx, dword [esp + 0x84]
mov dword [0x4e4a2c], 0
cmp dword [0x4ea158], ecx
je 0x470d20
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x470d2c
push 1
push 0
call fcn.00401510
add esp, 8
mov edx, dword [esp + 0x80]
push edx
push ebx
push 0x101
push edi
mov dword [0x4e4a2c], 1
call ebp
dec dword [esp + 0x74]
jne 0x470cf3
jmp case.default.0x4709f5
cmp word [esi], 0
jne 0x470d6a
push 0x20
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea esi, [esp + 0x28]
mov eax, 0x4db3e0
mov ecx, esi
call fcn.0049e990
test eax, eax
je 0x470d81
mov eax, 0x143
jmp 0x470d9a
mov eax, str.List
mov ecx, esi
call fcn.0049e990
test eax, eax
je 0x471158
mov eax, 0x180
lea ecx, [esp + 0x14]
push ecx
push 0x7d0
push 2
push ebx
push 0
push eax
push edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x471158
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x471158
cmp eax, 0xfffffffe
jmp 0x471152
cmp word [ebx], 0
je 0x471158
mov esi, ebx
call fcn.00417490
mov esi, eax
dec esi
js 0x471158
mov ebx, dword [esp + 0x74]
cmp word [ebx], 0
jne 0x470e04
push 0x20
lea edx, [esp + 0x2c]
push edx
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea ebx, [esp + 0x28]
mov eax, 0x4db3e0
mov ecx, ebx
call fcn.0049e990
test eax, eax
je 0x470e1b
mov eax, 0x144
jmp 0x470e34
mov eax, str.List
mov ecx, ebx
call fcn.0049e990
test eax, eax
je 0x471158
mov eax, 0x182
lea ecx, [esp + 0x14]
push ecx
push 0x7d0
push 2
push 0
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x471158
cmp dword [esp + 0x14], 0xffffffff
je 0x471158
jmp case.default.0x4709f5
cmp word [ebx], 0
je 0x471158
mov esi, ebx
call fcn.00417490
mov esi, eax
dec esi
js 0x471158
mov ebx, dword [esp + 0x74]
cmp word [ebx], 0
jne 0x470e99
push 0x20
lea edx, [esp + 0x2c]
push edx
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea ebx, [esp + 0x28]
mov eax, 0x4db3e0
mov ecx, ebx
call fcn.0049e990
test eax, eax
je 0x470f5b
mov eax, 0x14e
mov dword [esp + 0x74], 9
lea ecx, [esp + 0x14]
push ecx
push 0x7d0
push 2
push 0
push esi
push eax
mov esi, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push edi
call esi
test eax, eax
je 0x471158
cmp dword [esp + 0x14], 0xffffffff
je 0x471158
push edi
call dword [sym.imp.USER32.dll_GetParent]
mov ebp, eax
test ebp, ebp
je 0x471158
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
test eax, eax
je 0x471158
lea edx, [esp + 0x14]
push edx
push 0x7d0
movzx ebx, ax
push 2
push edi
mov eax, ebx
or eax, 0x10000
push eax
push 0x111
push ebp
call esi
test eax, eax
je 0x471158
movzx edx, word [esp + 0x74]
lea ecx, [esp + 0x14]
push ecx
push 0x7d0
push 2
push edi
shl edx, 0x10
or edx, ebx
push edx
push 0x111
push ebp
call esi
test eax, eax
je 0x471158
jmp case.default.0x4709f5
mov eax, str.List
mov ecx, ebx
call fcn.0049e990
test eax, eax
je 0x471158
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x808
neg eax
sbb eax, eax
add eax, 0x186
mov dword [esp + 0x74], 2
cmp eax, 0x185
jne 0x470eba
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push esi
push 1
push 0x185
jmp 0x470eca
cmp word [esi], 0
jne 0x470fca
push 0x20
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea esi, [esp + 0x28]
mov eax, 0x4db3e0
mov ecx, esi
call fcn.0049e990
test eax, eax
je 0x4710a0
mov eax, 0x14d
mov dword [esp + 0x74], 9
mov esi, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea ecx, [esp + 0x14]
push ecx
push 0x7d0
push 2
push ebx
push 0xffffffffffffffff
push eax
push edi
call esi
test eax, eax
je 0x471158
cmp dword [esp + 0x14], 0xffffffff
je 0x471158
push edi
call dword [sym.imp.USER32.dll_GetParent]
mov ebp, eax
test ebp, ebp
je 0x471158
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ebx, eax
test ebx, ebx
jne 0x47104b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x471158
lea edx, [esp + 0x14]
push edx
push 0x7d0
movzx ebx, bx
push 2
push edi
mov eax, ebx
or eax, 0x10000
push eax
push 0x111
push ebp
call esi
test eax, eax
je 0x471158
movzx edx, word [esp + 0x74]
lea ecx, [esp + 0x14]
push ecx
push 0x7d0
push 2
push edi
shl edx, 0x10
or edx, ebx
push edx
push 0x111
push ebp
call esi
test eax, eax
je 0x471158
jmp case.default.0x4709f5
mov eax, str.List
mov ecx, esi
call fcn.0049e990
test eax, eax
je 0x471158
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x808
neg eax
sbb eax, eax
and eax, 3
add eax, 0x18c
mov dword [esp + 0x74], 2
cmp eax, 0x18f
jne 0x470feb
mov esi, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea ecx, [esp + 0x80]
push ecx
push 0x7d0
push 2
push ebx
push 0xffffffffffffffff
push eax
push edi
call esi
test eax, eax
je 0x471158
mov eax, dword [esp + 0x80]
cmp eax, 0xffffffff
je 0x471158
lea edx, [esp + 0x14]
push edx
push 0x7d0
push 2
push eax
push 1
push 0x185
push edi
call esi
test eax, eax
je 0x471158
cmp dword [esp + 0x14], 0xffffffff
jne 0x471017
jmp 0x471158
lea eax, [esp + 0x14]
push eax
push 0x7d0
push 2
push ebx
push 1
push 0xc2
push edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne case.default.0x4709f5
mov ecx, dword [0x4e4b24]
test byte [ecx + 0x100], 1
jne 0x471174
push 1
push 0
push 0xffffffffffffffff
push 0x4bf81c
jmp 0x4711ad
mov edi, dword [esp + 0x70]
push 0x4bd2c4
push 0
push 0x4bf81c
call fcn.00449890
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x18
mov eax, dword [0x4e4b24]
mov ecx, dword [eax + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0xffffffffffffffff
push 0x4bbb9c
mov edx, dword [0x4e86f0]
push edx
call fcn.004a2810
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x18