Function at 0x512790
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x847586
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0xa5d1d4]
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 0x512b23
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push ebx
push 0x5125a0
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0xe79b74], eax
test eax, eax
jne 0x512b33
xor al, al
mov edi, 0xffff
test al, al
jne 0x512853
lea eax, [ebp]
push 0x8a64f0
push eax
call fcn.00737280
add esp, 8
mov esi, eax
or ebx, 1
mov dword [ebp - 4], 0
cmp dword [0xea47c8], 0
mov dword [ebp - 0x14], ebx
je 0x512838
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0xea47c8]
je 0x512838
call fcn.00742270
jmp 0x51283d
mov al, byte [0xa5c73c]
test al, al
je 0x512853
push esi
call fcn.00741d00
add esp, 4
mov byte [ebp - 0xd], 1
cmp eax, 6
jae 0x512857
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x5128ab
push dword [ebp + 0x18]
and ebx, 0xfffffffe
call fcn.008058ea
mov edx, dword [ebp + 0x14]
add esp, 4
cmp edx, 8
jb 0x5128ab
mov ecx, dword [ebp]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5128a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x512b50
push edx
push ecx
call fcn.007fff65
add esp, 8
cmp byte [ebp - 0xd], 0
je 0x512b33
call fcn.00737b00
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 1
call fcn.00737b00
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.004d2a90
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.007433a0
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], 0x8a64f0
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.004d04c0
push dword [ebp + 0x68]
mov byte [ebp - 4], 3
call fcn.008058ea
mov edx, dword [ebp + 0x64]
add esp, 4
cmp edx, 8
jb 0x5129e2
mov ecx, dword [ebp + 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5129d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x512b50
push edx
push ecx
call fcn.007fff65
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 0x512a4c
push 0x4cc550
push dword [esi + 0x10]
mov byte [ebp - 4], 7
push dword [esi + 0x14]
call fcn.00760fc0
push dword [esi + 0x10]
mov dword [esi + 0x18], 0
call fcn.008058ea
push 0x4cc530
push dword [esi]
mov byte [ebp - 4], 8
push dword [esi + 4]
call fcn.00760fc0
push dword [esi]
mov dword [esi + 8], 0
call fcn.008058ea
push 0x20
push esi
call fcn.007fff65
add esp, 0x28
mov dword [ebp - 4], 9
call fcn.00737b00
mov ecx, dword [ebp - 0x20]
cmp ecx, eax
je 0x512a8f
add word [ecx + 8], di
jne 0x512a87
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x512a87
cmp byte [esi + 0xa], 0
je 0x512a7c
push dword [esi]
call fcn.008058ea
add esp, 4
push 0xc
push esi
call fcn.007fff65
add esp, 8
call fcn.00737b00
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xa
call fcn.00737b00
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
je 0x512ad2
add word [ecx + 8], di
jne 0x512aca
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x512aca
cmp byte [esi + 0xa], 0
je 0x512abf
push dword [esi]
call fcn.008058ea
add esp, 4
push 0xc
push esi
call fcn.007fff65
add esp, 8
call fcn.00737b00
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xb
call fcn.00737b00
mov ecx, dword [ebp - 0x28]
cmp ecx, eax
je 0x512b15
add word [ecx + 8], di
jne 0x512b0d
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x512b0d
cmp byte [esi + 0xa], 0
je 0x512b02
push dword [esi]
call fcn.008058ea
add esp, 4
push 0xc
push esi
call fcn.007fff65
add esp, 8
call fcn.00737b00
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xffffffff
mov al, 1
jmp 0x5127f7
mov eax, dword [0xe79b74]
test eax, eax
je 0x512b33
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.008001d2
lea esp, [ebp + 0x74]
pop ebp
ret
call fcn.00805899
int3