Function at 0x140051740
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [0x140143040]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15, rcx
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov r12d, 1
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, r12d
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea r8, [0x1401315d8]
mov rcx, rax
lea rdx, str.CONOUT_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea r8, [0x1401315d8]
mov rcx, rax
lea rdx, str.CONOUT_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea r8, [0x1401315e4]
mov rcx, rax
lea rdx, str.CONIN_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.___Console_window_initialized._n
call fcn.14004bf50
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, r12d
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 0x50
mov edi, eax
call fcn.1400bbd10
mov r14, rax
mov qword [0x140144320], rax
xorps xmm0, xmm0
lea rcx, [r14 + 8]
xor r13d, r13d
mov qword [rax], r13
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, 0x280
sub si, ax
mov eax, edi
movups xmmword [rcx], xmm0
cdq
movups xmmword [rcx + 0x10], xmm0
sub eax, edx
movups xmmword [rcx + 0x20], xmm0
sar eax, 1
mov ebx, eax
mov eax, 0x168
movups xmmword [rcx + 0x30], xmm0
sub bx, ax
xor eax, eax
mov qword [rbp - 9], rax
lea rax, [0x1400516b0]
movsd xmm0, qword [rbp - 9]
movsd qword [rcx + 0x40], xmm0
mov qword [r14 + 0x10], rax
lea rax, str.ImGui001
mov qword [r14 + 0x48], rax
mov qword [r14 + 0x20], r15
call qword [sym.imp.USER32.dll_RegisterClassA]
movsx ecx, bx
movsx edx, si
mov qword [rsp + 0x58], r13
mov rax, qword [r14 + 0x20]
lea r8, str.Feather
mov qword [rsp + 0x50], rax
mov r15d, 0x500
mov qword [rsp + 0x48], r13
xor r9d, r9d
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x38], 0x2d0
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], ecx
xor ecx, ecx
mov dword [rsp + 0x20], edx
mov rdx, qword [r14 + 0x48]
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [r14], rax
test rax, rax
jne 0x140051954
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Could_not_create_window._n
call fcn.14004bf50
mov eax, r12d
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400bbbd0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
movdqa xmm0, xmmword [0x140131b80]
lea rdx, [rbp + 7]
mov rcx, rax
movdqu xmmword [rbp + 7], xmm0
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov ecx, 0x30
call fcn.1400bbd10
mov dword [rax + 0x29], r13d
mov word [rax + 0x2d], r13w
mov byte [rax + 0x2f], r13b
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r13
mov byte [rax + 0x28], r13b
mov qword [rax + 0x20], r13
mov qword [0x140144310], rax
mov rax, qword [0x140144320]
mov r8, qword [rax]
call fcn.140048350
mov ecx, 0x58
call fcn.1400bbd10
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
mov qword [rax + 0x50], rcx
mov rcx, rax
call fcn.1400485f0
mov qword [0x140144318], rax
mov rax, qword [0x140144310]
mov r9, qword [rax + 8]
mov r8, qword [rax]
mov rax, qword [0x140144320]
mov rdx, qword [rax]
call fcn.140048c80
mov rbx, qword [0x140144320]
mov edx, r12d
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, 8
call fcn.1400bbd10
lea rcx, [0x14004c580]
mov r9, rax
lea r8, [0x14004c880]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rbp - 0x51]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], r13d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x59], rax
test rax, rax
je 0x140051cd9
cmp dword [rbp - 0x51], r13d
je 0x140051ccf
movaps xmm0, xmmword [rbp - 0x59]
lea rcx, [rbp + 7]
movdqa xmmword [rbp + 7], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140051ccf
xorps xmm0, xmm0
movaps xmmword [rsp + 0xf0], xmm6
movdqa xmm6, xmmword [0x140131d70]
movdqa xmmword [rbp - 0x59], xmm0
mov byte [rbp - 0x65], r12b
nop dword [rax]
nop dword [rax + rax]
cmp byte [rbp - 0x65], r13b
lea rcx, [rbp - 0x49]
mov dword [rsp + 0x20], r12d
sete bl
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140051b0c
lea rcx, [rbp - 0x49]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x49]
call qword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [rbp - 0x41], 0x12
lea rcx, [rbp - 0x49]
movzx ebx, bl
cmove ebx, r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x140051ad2
test bl, bl
jne 0x140051beb
mov esi, dword [0x14014430c]
mov ebx, dword [0x140144308]
mov rdi, qword [0x140144310]
test esi, esi
je 0x140051b6d
test ebx, ebx
je 0x140051b6d
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140051b42
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rdi + 0x18], r13
mov rcx, qword [rdi + 0x10]
mov r9d, ebx
mov dword [rsp + 0x28], r13d
mov r8d, esi
xor edx, edx
mov dword [rsp + 0x20], r13d
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, rdi
call fcn.140048560
mov rdi, qword [0x140144310]
mov rcx, qword [rdi + 8]
lea r8, [rdi + 0x18]
movups xmmword [rbp + 7], xmm6
xor r9d, r9d
mov edx, r12d
mov rax, qword [rcx]
call qword [rax + 0x108]
mov rcx, qword [rdi + 8]
lea r8, [rbp + 7]
mov rdx, qword [rdi + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x190]
mov rcx, qword [0x140144318]
lea r9, [rbp - 0x65]
mov dword [rbp - 0x69], 0x2d00500
lea rdx, str.Feather
mov r8d, dword [rbp - 0x69]
call fcn.1400496b0
mov rax, qword [0x140144310]
xor r8d, r8d
mov rcx, qword [rax + 0x10]
cmp byte [rax + 0x28], r13b
mov rax, qword [rcx]
je 0x140051be1
mov edx, r12d
call qword [rax + 0x40]
jmp 0x140051ab0
xor edx, edx
call qword [rax + 0x40]
jmp 0x140051ab0
call fcn.140049400
mov rbx, qword [0x140144310]
movaps xmm6, xmmword [rsp + 0xf0]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140051c12
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x18], r13
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140051c25
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x10], r13
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140051c38
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 8], r13
mov rcx, qword [rbx]
test rcx, rcx
je 0x140051c49
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx], r13
mov rbx, qword [0x140144320]
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.USER32.dll_UnregisterClassA]
mov rbx, qword [0x140144318]
test rbx, rbx
je 0x140051c89
lea rcx, [rbx + 0x20]
call fcn.14004bd60
mov edx, 0x58
mov rcx, rbx
call fcn.1400bbf94
mov rcx, qword [0x140144310]
test rcx, rcx
je 0x140051c9f
mov edx, 0x30
call fcn.1400bbf94
mov rcx, qword [0x140144320]
test rcx, rcx
je 0x140051cb5
mov edx, 0x50
call fcn.1400bbf94
call qword [sym.imp.KERNEL32.dll_FreeConsole]
cmp dword [rbp - 0x51], r13d
je 0x140051cc8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
xor eax, eax
jmp 0x140051927
mov ecx, r12d
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 6
mov dword [rbp - 0x51], r13d
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3