Function at 0x140046880
Capabilities:
Log keystrokes via polling
Read file on windows

Disassembly:
push rbp
push rbx
push r12
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x1400b6040]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
lea rax, [0x1400476c0]
mov dword [rbp + 0x80], 0x50
xor r12d, r12d
mov qword [rbp + 0x88], rax
xor ecx, ecx
mov qword [rbp + 0x90], r12
mov dword [rbp + 0x84], 0x40
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xorps xmm0, xmm0
mov qword [rbp + 0xc8], r12
xorps xmm1, xmm1
movdqa xmmword [rbp + 0xa0], xmm0
lea rbx, str.Loader_Base
movdqa xmmword [rbp + 0xb0], xmm1
lea rcx, [rbp + 0x80]
mov qword [rbp + 0x98], rax
mov qword [rbp + 0xc0], rbx
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov rax, qword [rbp + 0x98]
mov r9d, 0x80000000
mov rdx, qword [rbp + 0xc0]
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_CreateWindowExW]
lea ecx, [r12 + 0x20]
mov qword [0x1400b6d10], rax
mov rbx, rax
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov qword [0x1400b6d18], rax
mov rcx, rax
test rax, rax
je 0x140047649
lea rdx, [0x1400b6d00]
mov qword [0x1400b6cc0], r12
mov qword [rsp + 0x30], rdx
lea r8d, [r12 + 1]
lea rdx, [0x1400b6cc0]
mov qword [0x1400b6ccc], r12
mov qword [rsp + 0x28], rdx
mov r9, rbx
mov dword [0x1400b6cd4], r12d
xor edx, edx
mov qword [0x1400b6cdc], r12
mov dword [0x1400b6ce4], r12d
mov qword [0x1400b6cf4], r12
mov dword [0x1400b6ce8], 1
mov dword [0x1400b6cd8], 1
mov dword [0x1400b6cc8], r12d
mov dword [0x1400b6cec], 1
mov dword [0x1400b6cf0], 0x50
mov dword [0x1400b6cfc], 1
mov rax, qword [rax]
mov dword [rsp + 0x20], 0x40
call qword [rax + 0x80]
test eax, eax
js 0x140047642
mov rcx, qword [0x1400b6d10]
xor edx, edx
mov qword [rsp + 0x350], rsi
mov qword [rsp + 0x358], rdi
mov qword [rsp + 0x360], r13
mov qword [rsp + 0x328], r14
mov qword [rsp + 0x320], r15
movaps xmmword [rsp + 0x310], xmm6
movaps xmmword [rsp + 0x300], xmm7
movaps xmmword [rsp + 0x2f0], xmm8
movaps xmmword [rsp + 0x2d0], xmm10
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400b6d10]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rax, qword [0x1400b6cb0]
test rax, rax
je 0x140046aa3
inc dword [rax + 0x3b0]
mov ecx, 0x3e48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140046abf
xor edx, edx
mov rcx, rax
call fcn.140002ce0
jmp 0x140046ac2
mov rax, r12
cmp qword [0x1400b6cb0], r12
jne 0x140046ad2
mov qword [0x1400b6cb0], rax
mov rcx, rax
call fcn.140009360
mov r13, qword [0x1400b6cb0]
lea rdx, [rbp - 0x10]
movss xmm10, dword [0x1400ab0bc]
xorps xmm0, xmm0
xor eax, eax
mov qword [rbp + 0xe0], r12
movups xmmword [rbp + 0x136], xmm0
or dword [r13 + 8], 0x400
mov ecx, 0xffff
movups xmmword [rbp + 0x146], xmm0
mov qword [rbp + 0x10c], rax
movups xmmword [rbp - 0x4a], xmm0
mov byte [rbp + 0xec], al
movups xmmword [rbp - 0x3a], xmm0
mov byte [rbp + 0x100], al
mov qword [rbp + 0x104], rax
mov dword [rbp + 0x120], eax
mov byte [rbp + 0x128], al
mov word [rbp + 0x134], cx
mov qword [rbp + 0x156], rax
mov qword [rbp - 0x2a], rax
lea rax, [0x140087460]
mov word [rbp - 0x4c], cx
mov qword [r13 + 0x20], r12
mov qword [r13 + 0x28], r12
mov rcx, qword [r13 + 0xa8]
mov dword [rbp + 0xe8], r12d
movaps xmm0, xmmword [rbp + 0xe0]
movaps xmmword [rbp - 0x10], xmm0
movaps xmm0, xmmword [rbp + 0x100]
movaps xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0xf0], r12
mov dword [rbp + 0xf8], 3
mov dword [rbp + 0xfc], 1
movaps xmm1, xmmword [rbp + 0xf0]
movaps xmmword [rbp], xmm1
mov qword [rbp + 0x118], r12
movaps xmm1, xmmword [rbp + 0x110]
movaps xmmword [rbp + 0x20], xmm1
mov dword [rbp + 0x124], 0x7f7fffff
mov dword [rbp + 0x12c], r12d
movaps xmm0, xmmword [rbp + 0x120]
movaps xmmword [rbp + 0x30], xmm0
movaps xmm0, xmmword [rbp + 0x140]
movaps xmmword [rbp + 0x50], xmm0
mov dword [rbp + 0x130], 0x3f800000
movaps xmm1, xmmword [rbp + 0x130]
movaps xmmword [rbp + 0x40], xmm1
movaps xmm1, xmmword [rbp + 0x150]
mov qword [rbp + 0x160], r12
movsd xmm0, qword [rbp + 0x160]
movsd qword [rbp + 0x70], xmm0
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x68], r12d
mov byte [rsp + 0x6c], 1
mov qword [rsp + 0x70], r12
mov qword [rbp - 0x7c], r12
mov qword [rbp - 0x74], r12
mov qword [rbp - 0x68], r12
mov dword [rbp - 0x60], r12d
mov dword [rbp - 0x5c], 0x7f7fffff
mov dword [rbp - 0x54], r12d
mov dword [rbp - 0x50], 0x3f800000
mov qword [rbp - 0x20], r12
mov byte [rbp - 0x58], 1
mov byte [rbp - 0x80], 1
mov dword [rsp + 0x78], 3
mov dword [rsp + 0x7c], 3
movaps xmmword [rbp + 0x60], xmm1
mov qword [rbp - 0x10], rax
mov dword [rbp - 8], 0x225bc
mov dword [rbp + 4], 0x41a80000
call fcn.14002f920
mov rax, qword [0x1400b6cb0]
mov r14, qword [r13 + 0xa8]
test rax, rax
je 0x140046ca1
inc dword [rax + 0x3b0]
mov ecx, 0x286ac
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
lea rbx, [0x140068dd0]
lea rax, [0x140068dc0]
mov qword [0x1400b70a8], rsi
mov rcx, rbx
mov qword [0x1400b7098], rax
mov qword [0x1400b70b0], rsi
lea rdi, [rsi + 0x286ac]
mov qword [0x1400b70a0], rdi
call fcn.140033d20
cmp rax, rbx
je 0x140046d09
nop dword [rax]
cmp qword [0x1400b70b0], rdi
ja 0x140046d09
mov rcx, rax
mov rbx, rax
call fcn.140033d20
cmp rax, rbx
jne 0x140046cf0
movaps xmm0, xmmword [rsp + 0x60]
lea rax, [0x1400aa288]
movaps xmm2, xmmword [rsp + 0x70]
lea rdx, [rsp + 0x60]
movaps xmm4, xmmword [rbp - 0x70]
mov rcx, r14
movaps xmm3, xmmword [rbp - 0x80]
movaps xmm5, xmmword [rbp - 0x60]
movaps xmm6, xmmword [rbp - 0x50]
movaps xmm7, xmmword [rbp - 0x40]
movaps xmm8, xmmword [rbp - 0x30]
movsd xmm1, qword [rbp - 0x20]
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rsp + 0x70], xmm2
movaps xmmword [rbp - 0x70], xmm4
mov byte [rbp - 4], 1
movaps xmm0, xmmword [rbp - 0x10]
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x68], 0x286ac
movaps xmmword [rbp - 0x80], xmm3
movaps xmmword [rbp - 0x60], xmm5
movaps xmmword [rbp - 0x50], xmm6
movaps xmmword [rbp - 0x40], xmm7
movaps xmmword [rbp - 0x30], xmm8
movsd qword [rbp - 0x20], xmm1
mov dword [rsp + 0x74], 0x41ac0000
mov qword [rbp - 0x68], rax
call fcn.14002f920
mov rcx, qword [r13 + 0xa8]
call fcn.14002fbe0
mov r14, qword [r13 + 0xa8]
lea r15, str.C:WindowsFontsConsola.ttf
mov rcx, r15
lea rdx, [0x1400a9bd0]
call fcn.140004450
mov rbx, rax
test rax, rax
je 0x140047066
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14004705d
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14004705d
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14004705d
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14004705d
cmp rdi, 0xffffffffffffffff
je 0x14004705d
mov rax, qword [0x1400b6cb0]
test rax, rax
je 0x140046e39
inc dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14004705d
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140046e90
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400b6cb0]
test rax, rax
je 0x140046e82
dec dword [rax + 0x3b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140047066
movaps xmmword [rsp + 0x2e0], xmm9
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xorps xmm0, xmm0
mov qword [rbp - 0x74], r12
mov eax, 0xffff
mov qword [rsp + 0x60], r12
mov word [rbp - 0x4c], ax
xor eax, eax
mov qword [rbp - 0x2a], rax
movups xmmword [rbp - 0x4a], xmm0
mov dword [rsp + 0x68], r12d
movups xmmword [rbp - 0x3a], xmm0
mov byte [rsp + 0x6c], 1
movaps xmm1, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rbp - 0x40]
movaps xmm8, xmmword [rbp - 0x30]
movd eax, xmm0
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x78], 3
mov dword [rsp + 0x7c], 1
movaps xmm2, xmmword [rsp + 0x70]
mov byte [rbp - 0x80], r12b
mov qword [rbp - 0x7c], r12
movaps xmm3, xmmword [rbp - 0x80]
mov qword [rbp - 0x68], r12
movaps xmm4, xmmword [rbp - 0x70]
mov dword [rbp - 0x60], r12d
mov dword [rbp - 0x5c], 0x7f7fffff
mov byte [rbp - 0x58], r12b
mov dword [rbp - 0x54], r12d
movaps xmm5, xmmword [rbp - 0x60]
mov dword [rbp - 0x50], 0x3f800000
movaps xmm6, xmmword [rbp - 0x50]
mov qword [rbp - 0x20], r12
movsd xmm9, qword [rbp - 0x20]
movaps xmmword [rbp + 0xe0], xmm1
movaps xmmword [rbp + 0xf0], xmm2
movaps xmmword [rbp + 0x100], xmm3
movaps xmmword [rbp + 0x110], xmm4
movaps xmmword [rbp + 0x120], xmm5
movaps xmmword [rbp + 0x130], xmm6
movaps xmmword [rbp + 0x140], xmm7
movaps xmmword [rbp + 0x150], xmm8
movsd qword [rbp + 0x160], xmm9
test al, al
jne 0x140047011
lea r9, [0x1400aa254]
nop dword [rax]
movzx eax, byte [r9 - 1]
lea rcx, [r9 - 1]
cmp al, 0x2f
je 0x140046fa9
cmp al, 0x5c
je 0x140046fa9
mov r9, rcx
cmp rcx, r15
ja 0x140046f90
movsd xmm0, qword [0x1400ab0f0]
lea r8, str._s___.0fpx
mov edx, 0x28
movsd qword [rsp + 0x20], xmm0
lea rcx, [rbp + 0x136]
call fcn.140004320
movaps xmm5, xmmword [rbp + 0x120]
movaps xmm4, xmmword [rbp + 0x110]
movaps xmm3, xmmword [rbp + 0x100]
movaps xmm2, xmmword [rbp + 0xf0]
movaps xmm1, xmmword [rbp + 0xe0]
movsd xmm9, qword [rbp + 0x160]
movaps xmm8, xmmword [rbp + 0x150]
movaps xmm7, xmmword [rbp + 0x140]
movaps xmm6, xmmword [rbp + 0x130]
movaps xmmword [rbp - 0x10], xmm1
lea rdx, [rbp - 0x10]
movaps xmmword [rbp], xmm2
mov rcx, r14
mov qword [rbp - 0x10], rsi
mov dword [rbp - 8], edi
mov dword [rbp + 4], 0x41880000
movaps xmmword [rbp + 0x10], xmm3
movaps xmmword [rbp + 0x20], xmm4
movaps xmmword [rbp + 0x30], xmm5
movaps xmmword [rbp + 0x40], xmm6
movaps xmmword [rbp + 0x50], xmm7
movaps xmmword [rbp + 0x60], xmm8
movsd qword [rbp + 0x70], xmm9
call fcn.14002f920
movaps xmm9, xmmword [rsp + 0x2e0]
jmp 0x140047069
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, r12
test dword [r13 + 8], 0x400
movaps xmm8, xmmword [rsp + 0x2f0]
movaps xmm7, xmmword [rsp + 0x300]
movaps xmm6, xmmword [rsp + 0x310]
mov qword [0x1400b6d08], rax
mov rax, qword [0x1400b6cb0]
je 0x1400470ab
mov dword [rax + 0x164c], r12d
mov dword [rax + 0x1728], 0x3f800000
mov rcx, qword [0x1400b6d00]
lea r8, [rbp + 0xd0]
lea rdx, str.C:_rE.png
call qword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileA]
test eax, eax
jne 0x140047109
mov rcx, qword [rbp + 0xd0]
lea r8, [rbp + 0x170]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rax, qword [rbp + 0xd0]
mov qword [0x1400b6cb8], rax
mov eax, dword [rbp + 0x188]
mov dword [0x1400b60a4], eax
mov eax, dword [rbp + 0x18c]
mov dword [0x1400b60a0], eax
call fcn.1400355f0
mov rcx, qword [0x1400b6d00]
lea rax, str.imgui_impl_dx9
mov rbx, qword [0x1400b6cb0]
mov qword [0x1400b70c8], rcx
or dword [rbx + 0xc], 0x1008
mov qword [rbx + 0xe8], rax
mov rax, qword [rcx]
call qword [rax + 8]
test dword [rbx + 8], 0x400
je 0x140047194
mov rax, qword [0x1400b6cb0]
lea rcx, [fcn.1400352c0]
mov qword [rax + 0x15f0], rcx
lea rcx, [fcn.140035390]
mov qword [rax + 0x15f8], rcx
lea rcx, [0x140035410]
mov qword [rax + 0x1600], rcx
lea rcx, [0x140035470]
mov qword [rax + 0x1608], rcx
lea rcx, [0x1400355c0]
mov qword [rax + 0x1610], rcx
xorps xmm0, xmm0
movups xmmword [rbp + 0x190], xmm0
movups xmmword [rbp + 0x1a0], xmm0
movups xmmword [rbp + 0x1b0], xmm0
nop dword [rax]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp + 0x190]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400471f0
lea rcx, [rbp + 0x190]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x190]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x140047524
cmp qword [0x1400b70b8], r12
jne 0x1400471fe
call fcn.140035150
mov rcx, qword [0x1400b70d8]
lea rdx, [rbp + 0x170]
mov rbx, qword [0x1400b6cb0]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp + 0x178]
sub eax, dword [rbp + 0x170]
movd xmm1, eax
mov eax, dword [rbp + 0x17c]
sub eax, dword [rbp + 0x174]
cmp byte [0x1400b60a9], r12b
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x10], xmm1
movss dword [rbx + 0x14], xmm0
je 0x1400472a2
mov rdi, qword [0x1400b6cb0]
mov ecx, dword [rdi + 0x161c]
test ecx, ecx
jns 0x140047280
mov eax, ecx
cdq
sub eax, edx
mov edx, r12d
sar eax, 1
add eax, ecx
lea rcx, [rdi + 0x1618]
test eax, eax
cmovg edx, eax
call fcn.140023ac0
xor r9d, r9d
mov dword [rdi + 0x1618], r12d
lea r8, [0x140035f80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplayMonitors]
mov byte [0x1400b60a9], r12b
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rbp + 0xd0]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x1400b70e0]
cvtsi2ss xmm0, qword [0x1400b70e8]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rbx + 0x18], xmm1
mov qword [0x1400b70e0], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rbx + 0x13c], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rbx + 0x13d], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x13f], r12b
mov byte [rbx + 0x13e], al
call fcn.140035ac0
cmp byte [rbx + 0xd0], r12b
je 0x140047342
mov eax, 0xffffffff
jmp 0x14004734f
mov rax, qword [0x1400b6cb0]
mov eax, dword [rax + 0x1ef0]
cmp dword [0x1400b6260], eax
je 0x140047362
mov dword [0x1400b6260], eax
call fcn.140035940
call fcn.140035cd0
call fcn.1400084e0
call fcn.140049ea0
lea rcx, str._redENGINE___Goofball_Edition
xor r8d, r8d
xor edx, edx
call fcn.14000eac0
call fcn.140047780
call fcn.140011a20
call fcn.14000a6e0
mov rcx, qword [0x1400b6d00]
mov r9d, 3
mov dword [rsp + 0x30], r12d
xor r8d, r8d
movss dword [rsp + 0x28], xmm10
xor edx, edx
mov dword [rsp + 0x20], r12d
mov rax, qword [rcx]
call qword [rax + 0x158]
mov rcx, qword [0x1400b6d00]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x14004740c
call fcn.14000abc0
mov rax, qword [0x1400b6cb0]
mov rcx, qword [rax + 0x1d40]
mov rax, qword [rcx]
mov rcx, r12
add rax, 0xb0
cmp byte [rax], r12b
cmovne rcx, rax
call fcn.1400349b0
mov rcx, qword [0x1400b6d00]
mov rax, qword [rcx]
call qword [rax + 0x150]
test dword [r13 + 8], 0x400
je 0x1400474e7
call fcn.14001a800
mov rbx, qword [0x1400b6cb0]
mov r14d, 1
mov eax, dword [rbx + 0x1630]
cmp eax, r14d
jle 0x140047489
mov esi, 8
nop dword [rax]
mov rax, qword [rbx + 0x1638]
mov rdi, qword [rsi + rax]
test byte [rdi + 4], 0x80
jne 0x140047477
mov rax, qword [rbx + 0x15c0]
test rax, rax
je 0x140047464
xor edx, edx
mov rcx, rdi
call rax
mov rax, qword [rbx + 0x1608]
test rax, rax
je 0x140047477
xor edx, edx
mov rcx, rdi
call rax
mov eax, dword [rbx + 0x1630]
inc r14d
add rsi, 8
cmp r14d, eax
jl 0x140047440
mov r14d, 1
cmp eax, r14d
jle 0x1400474e7
mov esi, 8
nop dword [rax]
mov rax, qword [rbx + 0x1638]
mov rdi, qword [rsi + rax]
test byte [rdi + 4], 0x80
jne 0x1400474d7
mov rax, qword [rbx + 0x15c8]
test rax, rax
je 0x1400474c4
xor edx, edx
mov rcx, rdi
call rax
mov rax, qword [rbx + 0x1610]
test rax, rax
je 0x1400474d7
xor edx, edx
mov rcx, rdi
call rax
inc r14d
add rsi, 8
cmp r14d, dword [rbx + 0x1630]
jl 0x1400474a0
mov rcx, qword [0x1400b6d00]
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 0x140047524
mov rcx, qword [0x1400b6d00]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x140047524
call fcn.1400467e0
cmp dword [rbp + 0x198], 0x12
jne 0x1400471b0
movaps xmm10, xmmword [rsp + 0x2d0]
mov r15, qword [rsp + 0x320]
mov r14, qword [rsp + 0x328]
mov r13, qword [rsp + 0x360]
mov rdi, qword [rsp + 0x358]
mov rsi, qword [rsp + 0x350]
call fcn.14001add0
call fcn.1400351e0
mov rcx, qword [0x1400b70c8]
test rcx, rcx
je 0x140047585
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400b70c8], 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 rbx, qword [0x1400b6cb0]
mov rcx, rbx
mov qword [0x1400b70d8], r12
call fcn.1400095f0
cmp qword [0x1400b6cb0], rbx
jne 0x1400475c3
mov qword [0x1400b6cb0], r12
test rbx, rbx
je 0x1400475eb
mov rcx, rbx
call fcn.1400242e0
mov rax, qword [0x1400b6cb0]
test rax, rax
je 0x1400475e2
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x1400b6d00]
test rcx, rcx
je 0x140047604
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400b6d00], r12
mov rcx, qword [0x1400b6d18]
test rcx, rcx
je 0x14004761d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400b6d18], r12
mov rcx, qword [0x1400b6d10]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp + 0x98]
mov rcx, qword [rbp + 0xc0]
call qword [sym.imp.USER32.dll_UnregisterClassW]
xor eax, eax
jmp 0x140047697
mov rcx, qword [0x1400b6d18]
mov rdx, qword [0x1400b6d00]
test rdx, rdx
je 0x14004766c
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [0x1400b6d18]
mov qword [0x1400b6d00], r12
test rcx, rcx
je 0x14004767e
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov qword [0x1400b6d18], r12
mov rdx, qword [rbp + 0x98]
mov rcx, qword [rbp + 0xc0]
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov eax, 1
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140061160
add rsp, 0x330
pop r12
pop rbx
pop rbp
ret