Function at 0x442040
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
push edi
push dword [ebp + 0x24]
mov ebx, ecx
push dword [ebp + 0x20]
mov dword [esp + 0x1c], ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.004505f0
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x442613
mov esi, dword [ebp + 0x10]
xor dl, dl
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x1c], 2
mov byte [esp + 0x12], dl
movzx eax, word [esi]
mov byte [esp + 0x13], 1
mov dword [esp + 0x30], SysReAllocString
mov dword [esp + 0x34], SysReAllocString
test ax, ax
je 0x442177
mov ecx, eax
nop dword [eax + eax]
movzx edi, cx
test edi, 0xffffff80
je 0x4420bf
xor eax, eax
jmp 0x4420ca
push 2
push edi
call fcn.004b15e4
add esp, 8
mov ecx, edi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, edi
add ecx, 0xffffffbc
cmp ecx, 0x15
ja case.0x4420e3.69
movzx eax, byte [ecx + 0x442678]
jmp dword [eax*4 + 0x44265c]
mov dword [esp + 0x1c], 0
jmp case.0x4420e3.69
mov dword [esp + 0x1c], 1
jmp case.0x4420e3.69
mov cx, word [esi + 2]
call fcn.0040ba80
mov dl, byte [esp + 0x12]
cmp ax, 0x41
jne 0x44215d
add esi, 2
mov byte [esp + 0x13], 0
jmp 0x44215d
push 3
push 0x4e8d48
push esi
call fcn.004af905
add esp, 0xc
test eax, eax
jne case.0x4420e3.69
mov dl, 1
add esi, 4
mov byte [esp + 0x12], dl
jmp 0x44215d
lea eax, [esi + 2]
push eax
call fcn.004b2533
mov dword [esp + 0x34], eax
jmp 0x442156
lea eax, [esi + 2]
push eax
call fcn.004b2533
mov dword [esp + 0x38], eax
add esp, 4
mov dl, byte [esp + 0x12]
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x4420b0
mov edi, dword [esp + 0x18]
test dl, dl
jne 0x44218e
mov edx, ebx
mov ecx, edi
call fcn.00497950
mov esi, eax
mov dword [esp + 0x28], esi
test esi, esi
jne 0x4422d9
push 0x30
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.004ad280
add esp, 0xc
mov byte [esp + 0x80], 1
movzx eax, word [ebx]
mov esi, eax
cmp eax, 0x20
je 0x4421b6
cmp eax, 9
jne 0x4421bb
add ebx, 2
jmp 0x4421a7
test eax, 0xffffff80
je 0x4421c6
xor eax, eax
jmp 0x4421d1
push 2
push eax
call fcn.004b15e4
add esp, 8
mov ecx, esi
and ecx, 0xffdf
test eax, eax
movzx edx, cx
mov ecx, esi
cmove edx, ecx
cmp dx, 0x58
jne case.0x4423e3.3
add ebx, 2
cmp word [ebx], 0
je case.0x4423e3.3
mov ecx, ebx
call fcn.00410ac0
test al, al
je 0x442214
push 0x10
push 0
push ebx
call fcn.004b2a5a
add esp, 0xc
jmp 0x44221d
push ebx
call fcn.004b2533
add esp, 4
mov edx, 0x4e2ac4
mov dword [esp + 0x58], eax
mov ecx, ebx
call fcn.0040bad0
test eax, eax
je case.0x4423e3.3
lea esi, [eax + 2]
movzx eax, word [esi]
cmp eax, 0x20
je 0x442245
cmp eax, 9
jne 0x44224a
add esi, 2
jmp 0x442238
test ax, ax
je case.0x4423e3.3
push eax
call fcn.004b7561
add esp, 4
cmp ax, 0x59
jne case.0x4423e3.3
cmp word [esi + 2], 0
lea ecx, [esi + 2]
je case.0x4423e3.3
call fcn.00410b20
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x48]
push eax
push edi
call ebx
mov eax, dword [esp + 0x48]
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x4c]
add dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
push eax
push 0x449950
push edi
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov eax, dword [esp + 0x70]
mov esi, edi
test eax, eax
cmovne esi, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
push eax
push esi
mov dword [esp + 0x30], esi
call dword [sym.imp.USER32.dll_ScreenToClient]
jmp 0x4422df
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp + 0xc]
cmp edi, 1
jl 0x4425f0
mov ecx, dword [esp + 0x30]
cmp ecx, 0x80000000
je 0x442302
mov eax, dword [esp + 0x34]
cmp eax, 0x80000000
jne 0x44234d
lea eax, [esp + 0x38]
push eax
push esi
call ebx
test eax, eax
je case.0x4423e3.3
mov ecx, dword [esp + 0x30]
cmp ecx, 0x80000000
jne 0x442331
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x34]
cmp eax, 0x80000000
jne 0x44234d
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x34], eax
movzx edx, ax
shl edx, 0x10
movzx eax, cx
or edx, eax
mov dword [esp + 0x20], 0
mov al, byte [ebp + 8]
mov dword [esp + 0x24], edx
cmp al, 0x9f
je 0x442373
cmp al, 0x9e
je 0x442373
xor bh, bh
jmp 0x442375
mov bh, 1
cmp al, 0x9c
je 0x442381
cmp al, 0x9d
je 0x442381
xor bl, bl
jmp 0x442383
mov bl, 1
test bh, bh
je 0x4423ae
cmp al, 0x9f
mov esi, 0xffffff88
mov eax, dword [esp + 0x2c]
mov ecx, 0x78
cmove esi, ecx
mov dword [esp + 0x14], eax
imul esi, edi
mov edi, 0x20a
shl esi, 0x10
jmp 0x44244f
test bl, bl
je 0x4423d6
cmp al, 0x9c
mov esi, 0x78
mov eax, dword [esp + 0x2c]
mov ecx, 0xffffff88
cmove esi, ecx
mov dword [esp + 0x14], eax
imul esi, edi
mov edi, 0x20e
shl esi, 0x10
jmp 0x44244f
movzx eax, al
dec eax
cmp eax, 5
ja case.0x4423e3.3
jmp dword [eax*4 + 0x442690]
mov edi, 0x201
mov dword [esp + 0x14], 0x202
mov esi, 1
jmp 0x44244f
mov edi, 0x204
mov dword [esp + 0x14], 0x205
mov esi, 2
jmp 0x44244f
mov edi, 0x207
mov dword [esp + 0x14], 0x208
mov esi, 0x10
jmp 0x44244f
mov dword [esp + 0x20], 0x10000
mov esi, 0x10020
jmp 0x442442
mov dword [esp + 0x20], 0x20000
mov esi, 0x20040
mov dword [esp + 0x14], 0x20c
mov edi, 0x20b
cmp byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
je 0x4424ad
push 0
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x44249d
cmp eax, dword [0x4f9a38]
je 0x44249d
mov ecx, dword [esp + 0x18]
call fcn.00497e30
test al, al
jne 0x44249d
push 1
push dword [esp + 0x30]
push dword [0x4f9a38]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x12]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x24]
jmp 0x4424b5
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
test bh, bh
jne 0x44258d
test bl, bl
jne 0x44258d
cmp dword [ebp + 0xc], 0
jle 0x4425d7
mov eax, dword [sym.imp.USER32.dll_PostMessageW]
mov ebx, dword [esp + 0x28]
cmp dword [esp + 0x1c], 1
je 0x442526
push edx
push esi
push edi
push ebx
call eax
mov eax, dword [0x4f48cc]
cmp dword [eax + 0x58], 0xffffffff
jle 0x442521
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4f9a38], eax
je 0x44250e
mov eax, dword [0x4f48cc]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x442521
mov ecx, dword [0x4f48cc]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.00401890
mov eax, dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [esp + 0x1c], 0
je 0x442578
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x1c]
push ebx
call eax
mov eax, dword [0x4f48cc]
cmp dword [eax + 0x58], 0xffffffff
jle 0x442578
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4f9a38], eax
je 0x442565
mov eax, dword [0x4f48cc]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x442578
mov ecx, dword [0x4f48cc]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.00401890
sub dword [ebp + 0xc], 1
mov edx, dword [esp + 0x24]
mov eax, dword [sym.imp.USER32.dll_PostMessageW]
jne 0x4424d8
jmp 0x4425d7
mov ebx, dword [esp + 0x28]
push edx
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [0x4f48cc]
cmp dword [eax + 0x58], 0xffffffff
jle 0x4425d7
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4f9a38], eax
je 0x4425c4
mov eax, dword [0x4f48cc]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4425d7
mov ecx, dword [0x4f48cc]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.00401890
cmp byte [esp + 0x12], 0
je 0x4425f0
push 0
push dword [esp + 0x30]
push dword [0x4f9a38]
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, dword [0x4f78d0]
push 1
push 0
push 0xffffffffffffffff
push 0x4cd350
call fcn.00495fe0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov ebx, dword [esp + 0x14]
mov eax, dword [0x4f48cc]
test byte [eax + 0x100], 1
jne 0x442640
mov ecx, dword [0x4f78d0]
push 1
push 0
push 0xffffffffffffffff
push 0x4e25ec
call fcn.00495fe0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push 0x4cd2cc
push 0
push 0x4e25ec
mov ecx, ebx
call fcn.0043b880
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20