Function at 0x14004fcf0
Capabilities:
Create thread
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push r12
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x14010a0c0]
xor rax, rsp
mov qword [rbp], rax
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x1400f20a8]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
xor r12d, r12d
cmp byte [0x140135ba2], r12b
jne 0x14004fd6d
mov qword [rsp + 0x28], r12
lea r8, [0x14004f7f0]
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor edx, edx
mov byte [0x140135ba2], 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rax, [0x140050730]
mov dword [rbp - 0x80], 0x50
xor ecx, ecx
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x7c], 0x40
mov qword [rbp - 0x70], r12
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov qword [rbp - 0x38], r12
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x60], xmm0
lea rbx, str.Abyss
movdqa xmmword [rbp - 0x50], xmm1
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x40], rbx
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov rax, qword [rbp - 0x68]
mov r9d, 0x80000000
mov rdx, qword [rbp - 0x40]
mov r8, rbx
mov qword [rsp + 0x58], r12
xor ecx, ecx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], 5
mov dword [rsp + 0x30], 5
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, reloc.WLDAP32.dll_Ordinal_32
mov qword [0x140135c18], rax
mov rbx, rax
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov qword [0x140135c10], rax
mov rcx, rax
test rax, rax
je 0x1400506c6
lea rdx, [0x140136128]
mov qword [0x140135bd0], r12
mov qword [rsp + 0x30], rdx
mov r9, rbx
lea rdx, [0x140135bd0]
mov qword [0x140135bdc], r12
mov qword [rsp + 0x28], rdx
xor edx, edx
mov dword [0x140135be4], r12d
mov qword [0x140135bec], r12
mov dword [0x140135bf4], r12d
mov qword [0x140135c04], r12
lea r8d, [rdx + 1]
mov dword [0x140135bf8], 1
mov dword [0x140135be8], 1
mov dword [0x140135bd8], r12d
mov dword [0x140135bfc], 1
mov dword [0x140135c00], 0x50
mov dword [0x140135c0c], 1
mov rax, qword [rax]
mov dword [rsp + 0x20], 0x40
call qword [rax + 0x80]
test eax, eax
js 0x1400506bf
mov rcx, qword [0x140135c18]
xor edx, edx
mov qword [rsp + 0x170], rsi
mov qword [rsp + 0x178], rdi
mov qword [rsp + 0x180], r13
mov qword [rsp + 0x148], r14
mov qword [rsp + 0x140], r15
movaps xmmword [rsp + 0x130], xmm6
movaps xmmword [rsp + 0x120], xmm7
movaps xmmword [rsp + 0x110], xmm8
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140135c18]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rax, qword [0x140135bb0]
test rax, rax
je 0x14004ff3a
inc dword [rax + 0x3b0]
mov ecx, 0x40b0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x14004ff56
xor edx, edx
mov rcx, rax
call fcn.1400085f0
jmp 0x14004ff59
mov rax, r12
cmp qword [0x140135bb0], r12
jne 0x14004ff69
mov qword [0x140135bb0], rax
mov rcx, rax
call fcn.14000f170
mov r13, qword [0x140135bb0]
or dword [r13 + 8], 0x400
mov qword [r13 + 0x20], r12
mov dword [r13 + 0x1644], r12d
mov dword [r13 + 0x1728], 0x3f800000
call fcn.14003e5b0
mov rcx, qword [0x140136128]
lea rax, str.imgui_impl_dx9
mov rbx, qword [0x140135bb0]
mov qword [0x140136058], rcx
or dword [rbx + 0xc], 0x1008
mov qword [rbx + 0xe8], rax
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
test dword [rbx + 8], 0x400
je 0x140050021
mov rax, qword [0x140135bb0]
lea rcx, [fcn.14003e280]
mov qword [rax + 0x15f0], rcx
lea rcx, [0x14003e350]
mov qword [rax + 0x15f8], rcx
lea rcx, [0x14003e3d0]
mov qword [rax + 0x1600], rcx
lea rcx, [0x14003e430]
mov qword [rax + 0x1608], rcx
lea rcx, [0x14003e580]
mov qword [rax + 0x1610], rcx
cmp qword [0x140136130], r12
jne 0x14005004b
mov rcx, qword [0x140136128]
lea r9, [0x140136130]
mov r8d, 0x14ac
lea rdx, [0x14012fa40]
call qword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileInMemory]
cmp qword [0x140136140], r12
jne 0x140050075
mov rcx, qword [0x140136128]
lea r9, [0x140136140]
mov r8d, 0x33ea
lea rdx, [0x140125ce0]
call qword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileInMemory]
cmp qword [0x140136138], r12
jne 0x14005009f
mov rcx, qword [0x140136128]
lea r9, [0x140136138]
mov r8d, 0x3a37
lea rdx, [0x1401222a0]
call qword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileInMemory]
cmp qword [0x140136148], r12
jne 0x1400500c9
mov rcx, qword [0x140136128]
lea r9, [0x140136148]
mov r8d, 0x30a6
lea rdx, [0x140130ef0]
call qword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileInMemory]
cmp qword [0x140136150], r12
jne 0x1400500f3
mov rcx, qword [0x140136128]
lea r9, [0x140136150]
mov r8d, 0x6964
lea rdx, [0x1401290d0]
call qword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileInMemory]
movss xmm2, dword [0x1400f42bc]
lea rdx, str.C:_windows_fonts_verdana.ttf
mov rcx, qword [r13 + 0xa8]
call fcn.1400385f0
movss xmm2, dword [0x1400f42e4]
lea rdx, str.C:_windows_fonts_verdanab.ttf
mov qword [0x140136518], rax
mov rcx, qword [r13 + 0xa8]
call fcn.1400385f0
movss xmm7, dword [0x1400f41f0]
xorps xmm0, xmm0
movss xmm8, dword [0x1400f4234]
xorps xmm6, xmm6
movups xmmword [rbp - 0x30], xmm0
mov qword [0x140136520], rax
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
nop word [rax + rax]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp - 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140050197
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x140050544
cmp qword [0x140136048], r12
jne 0x1400501a5
call fcn.14003e0b0
mov rcx, qword [0x140136080]
lea rdx, [rsp + 0x60]
mov rdi, qword [0x140135bb0]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x68]
sub eax, dword [rsp + 0x60]
movd xmm1, eax
mov eax, dword [rsp + 0x6c]
sub eax, dword [rsp + 0x64]
cmp byte [reloc.WS2_32.dll_accept], r12b
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
je 0x140050248
mov rbx, qword [0x140135bb0]
mov ecx, dword [rbx + 0x161c]
test ecx, ecx
jns 0x140050226
mov eax, ecx
cdq
sub eax, edx
mov edx, r12d
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x1618]
test eax, eax
cmovg edx, eax
call fcn.14002b2f0
xor r9d, r9d
mov dword [rbx + 0x1618], r12d
lea r8, [0x14003f010]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplayMonitors]
mov byte [reloc.WS2_32.dll_accept], r12b
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x70], r12
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x70]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x140136088]
cvtsi2ss xmm0, qword [0x140136090]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x140136088], rcx
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, reloc.WS2_32.dll_recv
and al, 1
mov byte [rdi + 0x13c], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, reloc.WS2_32.dll_select
and al, 1
mov byte [rdi + 0x13d], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x13f], r12b
mov byte [rdi + 0x13e], al
call fcn.14003eb30
cmp byte [rdi + 0xcf], r12b
je 0x1400502e9
mov eax, 0xffffffff
jmp 0x1400502f6
mov rax, qword [0x140135bb0]
mov eax, dword [rax + 0x20d0]
cmp dword [reloc.WS2_32.dll_htons], eax
je 0x140050309
mov dword [reloc.WS2_32.dll_htons], eax
call fcn.14003e9b0
call fcn.14003ed40
call fcn.14000de50
cmp dword [0x1401360b0], r12d
jne 0x1400503a8
xor ecx, ecx
call fcn.140033200
movss xmm0, dword [0x140134860]
ucomiss xmm0, xmm6
jp 0x14005039c
jne 0x14005039c
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetWindowRect]
movd xmm1, dword [rsp + 0x68]
movd xmm0, dword [rsp + 0x6c]
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
movss dword [0x140134858], xmm1
subss xmm1, dword [0x140134868]
movss dword [0x14013485c], xmm0
subss xmm0, dword [0x14013486c]
mulss xmm1, xmm7
mulss xmm0, xmm7
movss dword [0x140134860], xmm1
movss dword [0x140134864], xmm0
mov dword [0x1401360b0], 1
jmp 0x1400503ad
call fcn.140056510
call fcn.140010590
mov rcx, qword [0x140136128]
mov r9d, 3
mov dword [rsp + 0x30], r12d
xor r8d, r8d
movss dword [rsp + 0x28], xmm8
xor edx, edx
mov dword [rsp + 0x20], r12d
mov rax, qword [rcx]
call qword [rax + 0x158]
mov rcx, qword [0x140136128]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x14005042d
call fcn.140010a60
mov rax, qword [0x140135bb0]
mov rcx, qword [rax + 0x1ef8]
mov rax, qword [rcx]
mov rcx, r12
add rax, 0xa8
cmp byte [rax], r12b
cmovne rcx, rax
call fcn.14003d890
mov rcx, qword [0x140136128]
mov rax, qword [rcx]
call qword [rax + 0x150]
test dword [r13 + 8], 0x400
je 0x14005050a
call fcn.140021670
mov rbx, qword [0x140135bb0]
mov r14d, 1
mov eax, dword [rbx + 0x1628]
cmp eax, r14d
jle 0x1400504ac
mov esi, 8
nop dword [rax]
mov rax, qword [rbx + 0x1630]
mov rdi, qword [rsi + rax]
test dword [rdi + 4], 0x400
jne 0x14005049a
mov rax, qword [rbx + 0x15c0]
test rax, rax
je 0x140050487
xor edx, edx
mov rcx, rdi
call rax
mov rax, qword [rbx + 0x1608]
test rax, rax
je 0x14005049a
xor edx, edx
mov rcx, rdi
call rax
mov eax, dword [rbx + 0x1628]
inc r14d
add rsi, 8
cmp r14d, eax
jl 0x140050460
mov r14d, 1
cmp eax, r14d
jle 0x14005050a
mov esi, 8
nop dword [rax]
mov rax, qword [rbx + 0x1630]
mov rdi, qword [rsi + rax]
test dword [rdi + 4], 0x400
jne 0x1400504fa
mov rax, qword [rbx + 0x15c8]
test rax, rax
je 0x1400504e7
xor edx, edx
mov rcx, rdi
call rax
mov rax, qword [rbx + 0x1610]
test rax, rax
je 0x1400504fa
xor edx, edx
mov rcx, rdi
call rax
inc r14d
add rsi, 8
cmp r14d, dword [rbx + 0x1628]
jl 0x1400504c0
mov rcx, qword [0x140136128]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r12
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x14005053b
mov rcx, qword [0x140136128]
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
cmp byte [0x140136158], r12b
je 0x140050550
cmp dword [rbp - 0x28], 0x12
jne 0x140050160
jmp 0x140050557
mov dword [rbp - 0x28], reloc.WS2_32.dll_select
call fcn.140021c50
call fcn.14003e140
mov rcx, qword [0x140136058]
movaps xmm8, xmmword [rsp + 0x110]
movaps xmm7, xmmword [rsp + 0x120]
movaps xmm6, xmmword [rsp + 0x130]
mov r15, qword [rsp + 0x140]
mov r14, qword [rsp + 0x148]
mov r13, qword [rsp + 0x180]
mov rdi, qword [rsp + 0x178]
mov rsi, qword [rsp + 0x170]
test rcx, rcx
je 0x1400505bb
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x140136058], r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdx, rax
lea rcx, str.ImGui_Platform
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov rcx, qword [0x140136068]
test rcx, rcx
je 0x1400505e5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [0x140135bb0]
mov rcx, rbx
mov qword [0x140136068], r12
mov qword [0x140136070], r12
mov qword [0x140136078], r12
mov qword [0x140136080], r12
mov qword [0x140136088], r12
mov qword [0x140136090], r12
mov dword [reloc.WS2_32.dll_htons], 9
mov byte [0x14013600c], r12b
mov byte [reloc.WS2_32.dll_accept], 1
call fcn.14000f4d0
cmp qword [0x140135bb0], rbx
jne 0x140050646
mov qword [0x140135bb0], r12
test rbx, rbx
je 0x14005066e
mov rcx, rbx
call fcn.14002bd40
mov rax, qword [0x140135bb0]
test rax, rax
je 0x140050665
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x140136128]
test rcx, rcx
je 0x140050687
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x140136128], r12
mov rcx, qword [0x140135c10]
test rcx, rcx
je 0x1400506a0
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x140135c10], r12
mov rcx, qword [0x140135c18]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp - 0x68]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.USER32.dll_UnregisterClassA]
xor eax, eax
jmp 0x14005070e
mov rcx, qword [0x140135c10]
mov rdx, qword [0x140136128]
test rdx, rdx
je 0x1400506e9
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x140135c10]
mov qword [0x140136128], r12
test rcx, rcx
je 0x1400506fb
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov qword [0x140135c10], r12
mov rdx, qword [rbp - 0x68]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, 1
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400d3a80
add rsp, 0x150
pop r12
pop rbx
pop rbp
ret