Function at 0x140031bb0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
xor esi, esi
lea ecx, [rsi + 8]
call fcn.1400a062c
lea rcx, [0x140031ab0]
mov qword [rax], rcx
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x14003d880]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140031db9
cmp dword [rsp + 0x38], esi
jne 0x140031c18
lea ecx, [rsi + 1]
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x140031c3b
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
lea rdx, str.MedalOverlay
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
mov qword [0x1400eda68], rax
mov rdx, rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
lea rdx, [0x14003c7c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call fcn.140031560
xor edx, edx
mov rcx, qword [0x1400eda68]
call qword [sym.imp.USER32.dll_SetMenu]
mov qword [rsp + 0x40], rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x48], eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x4c], eax
lea rdx, [rsp + 0x40]
mov rcx, qword [0x1400eda68]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov r9d, 2
mov r8b, 0xfe
xor edx, edx
mov rcx, qword [0x1400eda68]
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], ebx
mov r9d, eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x1400eda68]
call qword [sym.imp.USER32.dll_MoveWindow]
mov rcx, qword [0x1400eda68]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov edx, 5
mov rcx, qword [0x1400eda68]
call qword [sym.imp.USER32.dll_ShowWindow]
call fcn.140005a20
call fcn.1400311f0
mov rcx, qword [0x1400eda68]
call fcn.140029260
mov rdi, qword [0x1400edb88]
mov rbx, qword [0x1400eda20]
test rbx, rbx
je 0x140031d4f
inc dword [rbx + 0xec]
mov ecx, Ordinal_41
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140031d7e
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x140031d81
mov rax, rsi
mov qword [rbx + 0x98], rax
lea rcx, str.imgui_impl_dx9
mov qword [rbx + 0x88], rcx
or dword [rbx + 0xc], 8
mov qword [rax], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov dword [rsp + 0x38], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3