Function at 0x10019010
Capabilities:
Log keystrokes via application hook

Disassembly:
sub esp, 0x58
mov eax, dword [0x1004caec]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x74]
test edi, edi
mov dword [esp + 0x64], eax
mov esi, ecx
je 0x10019042
mov eax, edi
lea ecx, [esi + 0x70]
lea ebp, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10019032
sub eax, ebp
push eax
push edi
call fcn.10003ae1
mov edi, dword [esp + 0x84]
test edi, edi
mov ebx, dword [esp + 0x80]
mov dword [esi + 0x54], ebx
jne 0x1001905c
mov edi, 0x10041f74
test edi, edi
lea ecx, [esi + 0x74]
jne 0x10019067
xor eax, eax
jmp 0x10019079
mov eax, edi
lea ebp, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10019070
sub eax, ebp
push eax
push edi
call fcn.10003ae1
test ebx, 0x20000
mov eax, dword [esp + 0x88]
mov dword [esi + 0x58], eax
lea edi, [esi + 0x78]
je 0x100190b3
mov ebp, dword [esp + 0x78]
lea ecx, [esp + 0x18]
push ecx
push ebp
mov byte [edi + 0xc], 1
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x10]
mov dword [edi + 8], ebp
push edx
jmp 0x100190ec
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
mov byte [edi + 0xc], 0
mov dword [edi + 8], eax
call fcn.100169b0
mov edx, dword [eax]
mov dword [edi + 0x10], edx
mov eax, dword [eax + 4]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
lea eax, [esp + 0x18]
mov dword [edi + 4], edx
mov byte [edi + 0xc], 0
push eax
mov ecx, edi
call fcn.100169b0
mov ecx, dword [eax]
mov dword [edi + 0x10], ecx
mov edx, dword [eax + 4]
lea ebp, [esi + 0x64]
mov dword [edi + 0x14], edx
mov eax, dword [ebp]
xor ebx, ebx
cmp eax, ebx
jne 0x1001911a
mov eax, dword [esi]
push ebp
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
jne 0x100191f3
cmp dword [esi + 0x60], ebx
jne 0x10019157
mov edx, dword [ebp]
xor eax, eax
mov dword [esp + 0x28], ebx
mov ecx, 0xe
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
push ecx
push 0x3c
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x3c], 0x2bc
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [esi + 0x60], eax
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x10019208
test byte [esi + 0x54], 4
mov ecx, 0x80
je 0x10019179
mov ecx, 0x88
mov edx, dword [esp + 0x70]
push ebx
push ecx
mov eax, esp
push ecx
push 0x86000000
push edx
mov edx, dword [esp + 0x80]
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [eax], ebx
mov eax, esp
lea ecx, [esp + 0x30]
mov dword [eax], ecx
push edx
mov ecx, esi
call fcn.10018f90
cmp eax, ebx
je 0x100191f3
push ebx
push ecx
mov eax, esp
push ebx
push 0x40000000
push ebx
push ecx
mov dword [eax], ebx
mov eax, esp
mov dword [eax], ebx
mov eax, dword [esi + 4]
push eax
lea ecx, [esi + 0xe4]
call fcn.10018f10
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0xe8]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
jne 0x10019220
xor eax, eax
mov ecx, dword [esp + 0x64]
call fcn.10030334
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x20
mov eax, dword [esp + 0x70]
cmp eax, ebx
jne 0x10019215
mov eax, 0x10041f74
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, esi
call fcn.10017130
test dword [esi + 0x54], 0x10000
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
je 0x10019250
cmp dword [esi + 0x50], ebx
jne 0x10019250
call ebp
push eax
push ebx
lea edx, [esi + 0x38]
push edx
push 0xc
call edi
mov dword [esi + 0x50], eax
lea eax, [esi + 0xb0]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test dword [esi + 0x54], 0x3f8
je 0x1001927a
cmp dword [esi + 0x4c], ebx
jne 0x1001927a
call ebp
push eax
push ebx
lea ecx, [esi + 0x2e]
push ecx
push 7
call edi
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x54]
test ah, 4
je 0x10019296
cmp dword [esi + 0x48], ebx
jne 0x10019296
call ebp
push eax
push ebx
lea edx, [esi + 0x24]
push edx
push 2
call edi
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x58]
cmp eax, ebx
jbe 0x100192ab
push ebx
push eax
mov eax, dword [esi + 4]
push 1
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [esi + 0x54]
test ah, ah
js 0x100192c3
mov ecx, esi
call fcn.10017450
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
test dword [esi + 0x54], 0x40000
jne 0x100192ef
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.100281f0
add esp, 8
test eax, eax
je 0x100192ef
mov ecx, dword [esp + 0x10]
push ecx
call fcn.10028240
add esp, 4
mov ecx, dword [esp + 0x64]
mov eax, 1
call fcn.10030334
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x20