Function at 0x10007ec0
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x90
mov eax, dword [0x1001c018]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x98]
cmp eax, 0x111
push ebx
push ebp
mov ebp, dword [esp + 0x9c]
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edi
ja 0x10008315
je 0x100082a2
cmp eax, 0x4e
ja 0x100080ec
je 0x10008083
cmp eax, 0xf
je 0x10007f93
cmp eax, 0x2b
jne case.0x1000832e.313
mov eax, dword [esp + 0xac]
mov ecx, dword [ebp + 8]
lea esi, [ebp + 4]
mov dword [esp + 0x14], eax
lea ebx, [esp + 0x14]
lea eax, [esp + 0x50]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
call fcn.10008a90
lea esi, [esp + 0x18]
mov edi, eax
call fcn.1000e660
test al, al
jne 0x10008285
mov edi, dword [esp + 0xac]
lea ecx, [esp + 0x14]
lea eax, [ebp + 4]
mov dword [esp + 0x14], edi
call fcn.10008a10
mov ecx, dword [eax]
mov edx, dword [ecx]
mov esi, dword [esp + 0x20]
mov eax, dword [edx]
push esi
call eax
test byte [esi + 0x10], 0x10
je 0x10007f89
mov dword [ebp + 0x11c], edi
mov eax, 1
jmp 0x10008287
push 0x3c
lea ecx, [esp + 0x60]
push 0
push ecx
mov dword [esp + 0x64], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x58]
push edx
push esi
call dword [sym.imp.USER32.dll_BeginPaint]
mov ebx, eax
push ebx
lea esi, [ebp + 0x48]
call fcn.1000a9d0
push ebx
lea esi, [ebp + 0x60]
call fcn.1000a9d0
mov ecx, dword [ebp + 0x68]
mov eax, dword [ebp + 0x64]
mov edx, dword [ebp + 0x6c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp + 0x70]
add eax, 5
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], eax
call fcn.1000dea0
mov edi, 0x32
call fcn.1000e4f0
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call esi
push 0xffffff
push ebx
mov edi, eax
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [ebp + 0x3c], 8
mov dword [esp + 0x18], eax
jb 0x1000802e
mov eax, dword [ebp + 0x28]
jmp 0x10008031
lea eax, [ebp + 0x28]
push 0x24
lea edx, [esp + 0x2c]
push edx
push 0xffffffffffffffff
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
push edi
push ebx
call esi
mov eax, dword [esp + 0x20]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
push ebx
mov ecx, ebp
call eax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x58]
push ecx
push edx
call dword [sym.imp.USER32.dll_EndPaint]
mov eax, 1
jmp 0x10008287
movzx eax, word [esp + 0xac]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
lea esi, [ebp + 4]
mov dword [esp + 0x24], eax
lea ebx, [esp + 0x18]
lea eax, [esp + 0x40]
call fcn.10008a90
mov ebx, eax
mov eax, dword [ebx]
test eax, eax
je 0x100080b2
cmp eax, esi
je 0x100080b8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x24]
cmp dword [ebx + 4], ecx
je 0x10008285
movzx eax, word [esp + 0xac]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov eax, esi
call fcn.10008a10
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push edi
push ebp
call eax
jmp 0x10008287
cmp eax, 0x110
jne case.0x1000832e.313
mov eax, dword [esp + 0x14]
mov ebx, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x44]
sub esp, 0x10
xor edx, edx
mov dword [ebp + 0x1c], eax
mov eax, esp
mov dword [eax], edx
xor esi, esi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
lea esi, [ebp + 0x48]
lea edi, [edx + 2]
mov dword [eax + 0xc], ecx
call fcn.1000a980
lea edx, [edi - 1]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
xor esi, esi
mov dword [eax + 4], esi
lea ecx, [ebx - 1]
lea edi, [edx + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
lea esi, [ebp + 0x60]
lea edi, [edx + 3]
call fcn.1000a980
mov eax, dword [esp + 0x14]
mov esi, dword [ebp + 0x78]
push 0xb
push eax
push 2
lea ecx, [ebx - 2]
sub esp, 0x10
mov eax, esp
lea edx, [edi - 3]
add ebx, 0xffffffe7
mov dword [eax], ebx
mov dword [eax + 4], edx
mov edx, dword [esi + 0xc]
mov dword [eax + 8], ecx
lea edi, [ebp + 0x78]
mov ecx, 0x17
mov dword [eax + 0xc], ecx
mov ecx, edi
call edx
push 6
push 5
push 8
push 8
mov ebx, edi
call fcn.10001590
cmp dword [edi + 0x14], 0xffffffff
je 0x10008199
mov dword [edi + 0x40], 0x10008560
push 0
call fcn.1000dea0
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x38], esp
push 0xd7
call fcn.1000e400
mov ecx, edi
call fcn.100014d0
push edi
mov ecx, ebp
call fcn.10007dc0
mov ebx, dword [esp + 0x14]
push 4
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
jne 0x100081d9
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp + 0x44]
mov ecx, dword [esp + 0x34]
mov esi, dword [ebp + 0x40]
push 0x40
push eax
sub eax, dword [esp + 0x34]
push esi
add eax, ecx
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x40]
mov eax, esi
sub eax, dword [esp + 0x38]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
push ecx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
call esi
cmp eax, dword [ebp + 0x1c]
je 0x10008267
call esi
test eax, eax
je 0x10008267
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
cmp edi, esi
je 0x10008267
push 1
push esi
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
je 0x10008267
push ebx
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 0
push esi
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edx, dword [ebp]
mov eax, dword [edx + 8]
mov ecx, ebp
call eax
test eax, eax
jne 0x1000835a
mov ecx, dword [ebp + 0x1c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10014613
add esp, 0x90
ret 0xc
cmp dword [esp + 0xac], 1
jne 0x100082b9
mov edx, dword [ebp + 0x11c]
mov dword [esp + 0xac], edx
mov eax, dword [ebp + 8]
movzx edi, word [esp + 0xac]
lea esi, [ebp + 4]
mov dword [esp + 0x24], eax
lea ebx, [esp + 0x18]
lea eax, [esp + 0x48]
mov dword [esp + 0x18], edi
call fcn.10008a90
mov ebx, eax
mov eax, dword [ebx]
test eax, eax
je 0x100082e8
cmp eax, esi
je 0x100082ee
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x24]
cmp dword [ebx + 4], ecx
je 0x10008285
lea ecx, [esp + 0x18]
mov eax, esi
mov dword [esp + 0x18], edi
call fcn.10008a10
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
jmp 0x10008287
lea ecx, [eax - 0x138]
cmp ecx, 0xca
ja case.0x1000832e.313
movzx ecx, byte [ecx + 0x10008490]
jmp dword [ecx*4 + 0x1000847c]
mov eax, edi
shr eax, 0x10
movzx ecx, di
push eax
push ecx
lea eax, [ebp + 0x60]
call fcn.1000aa90
test eax, eax
je 0x1000835a
push edi
push 2
push 0xa2
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
jmp 0x10008287
mov eax, edi
shr eax, 0x10
movzx ecx, di
push eax
push ecx
lea eax, [ebp + 0x60]
call fcn.1000aa90
test eax, eax
je 0x10008389
push edi
push 2
push 0xa1
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
jmp 0x10008287
mov eax, edi
shr eax, 0x10
movzx ecx, di
push eax
push ecx
lea eax, [ebp + 0x60]
call fcn.1000aa90
test eax, eax
je 0x100083b8
push edi
push 2
push 0xa0
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
jmp 0x10008287
push edi
call dword [sym.imp.USER32.dll_GetMenu]
mov edx, dword [ebp + 8]
add ebp, 4
mov dword [esp + 0x14], eax
lea ebx, [esp + 0x14]
lea eax, [esp + 0x38]
mov esi, ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ebp
call fcn.10008a90
lea esi, [esp + 0x18]
mov edi, eax
call fcn.1000e660
test al, al
jne 0x10008285
mov ecx, ebx
mov eax, ebp
call fcn.10008a10
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
jmp 0x10008287
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x14]
lea esi, [ebp + 0x10]
mov dword [esp + 0x24], eax
lea ebx, [esp + 0x18]
lea eax, [esp + 0x38]
call fcn.10008a90
mov ebx, eax
mov eax, dword [ebx]
test eax, eax
je 0x1000843b
cmp eax, esi
je 0x10008441
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x24]
cmp dword [ebx + 4], ecx
je 0x10008285
mov edx, dword [esp + 0xa8]
lea ecx, [esp + 0x18]
mov eax, esi
mov dword [esp + 0x18], edx
call fcn.10008a10
mov ecx, dword [esp + 0xac]
mov edx, dword [eax]
push edi
push ecx
push ebp
call edx
add esp, 0xc
jmp 0x10008287