Function at 0x512900
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x8477a6
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0xa5e224]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp byte [ebp + 0x7c], bl
je 0x512c93
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push ebx
push 0x512710
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0xe7abc4], eax
test eax, eax
jne 0x512ca3
xor al, al
mov edi, 0xffff
test al, al
jne 0x5129c3
lea eax, [ebp]
push 0x8a7570
push eax
call fcn.007373c0
add esp, 8
mov esi, eax
or ebx, 1
mov dword [ebp - 4], 0
cmp dword [0xea5818], 0
mov dword [ebp - 0x14], ebx
je 0x5129a8
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0xea5818]
je 0x5129a8
call fcn.007423b0
jmp 0x5129ad
mov al, byte [0xa5d794]
test al, al
je 0x5129c3
push esi
call fcn.00741e40
add esp, 4
mov byte [ebp - 0xd], 1
cmp eax, 6
jae 0x5129c7
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x512a1b
push dword [ebp + 0x18]
and ebx, 0xfffffffe
call fcn.00805aaa
mov edx, dword [ebp + 0x14]
add esp, 4
cmp edx, 8
jb 0x512a1b
mov ecx, dword [ebp]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x512a11
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x512cc0
push edx
push ecx
call fcn.00800125
add esp, 8
cmp byte [ebp - 0xd], 0
je 0x512ca3
call fcn.00737c40
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 1
call fcn.00737c40
mov dword [ebp - 0x24], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push str._s__d_:__s_failed_with_error_0x_08lx___s_.
push eax
call fcn.004d2bd0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
sub esp, 0x14
mov dword [ebp - 4], 3
mov esi, esp
mov dword [ebp - 0x14], esp
call sub.KERNEL32.dll_GetLastError
push eax
push esi
call fcn.007434e0
add esp, 8
xorps xmm0, xmm0
mov byte [ebp - 4], 4
mov dword [ebp + 0x20], 6
mov dword [ebp + 0x28], str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.clean_srcmswwindow.cpp
mov dword [ebp + 0x30], str.wxSetKeyboardHook
mov dword [ebp + 0x2c], 0x1c5a
mov dword [ebp + 0x34], 0x8a7570
movlpd qword [ebp + 0x38], xmm0
movlpd qword [ebp + 0x40], xmm0
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [ebp + 0x48], eax
xor eax, eax
mov dword [ebp + 0x50], 0
mov dword [ebp + 0x4c], 0
mov dword [ebp + 0x60], 0
mov dword [ebp + 0x64], 7
mov word [ebp + 0x50], ax
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x6c], eax
mov byte [ebp - 4], 5
call sub.KERNEL32.dll_GetLastError
push eax
push str.SetWindowsHookEx_wxKeyboardHook_
push 0x1c5a
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.clean_srcmswwindow.cpp
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp + 0x20]
call fcn.004d0600
push dword [ebp + 0x68]
mov byte [ebp - 4], 3
call fcn.00805aaa
mov edx, dword [ebp + 0x64]
add esp, 4
cmp edx, 8
jb 0x512b52
mov ecx, dword [ebp + 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x512b48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x512cc0
push edx
push ecx
call fcn.00800125
add esp, 8
mov esi, dword [ebp + 0x4c]
xor eax, eax
mov dword [ebp + 0x60], 0
mov dword [ebp + 0x64], 7
mov word [ebp + 0x50], ax
test esi, esi
je 0x512bbc
push 0x4cc690
push dword [esi + 0x10]
mov byte [ebp - 4], 7
push dword [esi + 0x14]
call fcn.007610f0
push dword [esi + 0x10]
mov dword [esi + 0x18], 0
call fcn.00805aaa
push 0x4cc670
push dword [esi]
mov byte [ebp - 4], 8
push dword [esi + 4]
call fcn.007610f0
push dword [esi]
mov dword [esi + 8], 0
call fcn.00805aaa
push 0x20
push esi
call fcn.00800125
add esp, 0x28
mov dword [ebp - 4], 9
call fcn.00737c40
mov ecx, dword [ebp - 0x20]
cmp ecx, eax
je 0x512bff
add word [ecx + 8], di
jne 0x512bf7
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x512bf7
cmp byte [esi + 0xa], 0
je 0x512bec
push dword [esi]
call fcn.00805aaa
add esp, 4
push 0xc
push esi
call fcn.00800125
add esp, 8
call fcn.00737c40
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xa
call fcn.00737c40
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
je 0x512c42
add word [ecx + 8], di
jne 0x512c3a
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x512c3a
cmp byte [esi + 0xa], 0
je 0x512c2f
push dword [esi]
call fcn.00805aaa
add esp, 4
push 0xc
push esi
call fcn.00800125
add esp, 8
call fcn.00737c40
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xb
call fcn.00737c40
mov ecx, dword [ebp - 0x28]
cmp ecx, eax
je 0x512c85
add word [ecx + 8], di
jne 0x512c7d
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x512c7d
cmp byte [esi + 0xa], 0
je 0x512c72
push dword [esi]
call fcn.00805aaa
add esp, 4
push 0xc
push esi
call fcn.00800125
add esp, 8
call fcn.00737c40
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xffffffff
mov al, 1
jmp 0x512967
mov eax, dword [0xe7abc4]
test eax, eax
je 0x512ca3
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.00800392
lea esp, [ebp + 0x74]
pop ebp
ret
call fcn.00805a59
int3