Function at 0x140046d10
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rdi
push r15
lea rbp, [r11 - 0xf8]
sub rsp, 0x1e0
mov rax, qword [0x1400d1080]
xor rax, rsp
mov qword [rbp + 0xc0], rax
xorps xmm0, xmm0
mov qword [r11 + 8], rsi
xor r15d, r15d
mov qword [r11 + 0x10], r14
lea rax, [0x140047300]
mov qword [rbp - 0x18], r15
xor ecx, ecx
mov qword [rbp - 0x68], rax
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp - 0x60], r15
movups xmmword [rbp], xmm0
mov dword [rbp - 0x70], 0x50
movups xmmword [rbp + 0x10], xmm0
mov dword [rbp - 0x6c], 0x40
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov qword [rbp - 0x58], rax
lea edx, [r15 + 0x67]
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rbp - 0x48], r15
lea rcx, [rbp - 0x70]
mov qword [rbp - 0x50], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
movabs r14, 0x139b25e7cc7c21ba
mov qword [rsp + 0x60], r14
movabs rsi, 0x4e4c5e9c3968fccf
mov rax, qword [rsp + 0x60]
movabs rdi, 0x13f7258acc1521fb
mov qword [rsp + 0x70], rax
movabs rbx, 0x4e4c5ef7390bfca0
mov qword [rsp + 0x60], rsi
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x60], rdi
mov rax, qword [rsp + 0x60]
mov qword [rbp + 0xa0], rax
mov qword [rsp + 0x60], rbx
mov rax, qword [rsp + 0x60]
movdqa xmm0, xmmword [rsp + 0x70]
mov qword [rbp + 0xa8], rax
lea rax, [rsp + 0x70]
xorps xmm0, xmmword [rbp + 0xa0]
movdqa xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], r15
call qword [sym.imp.USER32.dll_RegisterClassExW]
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
lea rdx, [rbp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rbp + 0x3c]
cdq
mov qword [rsp + 0x58], r15
sub eax, edx
sar eax, 1
lea r8d, [rax - 0xb9]
mov eax, dword [rbp + 0x38]
mov qword [rsp + 0x60], r14
cdq
mov rcx, qword [rsp + 0x60]
sub eax, edx
mov qword [rbp - 0x80], rcx
mov qword [rsp + 0x60], rsi
mov rcx, qword [rsp + 0x60]
mov qword [rbp - 0x78], rcx
mov qword [rsp + 0x60], rdi
mov rcx, qword [rsp + 0x60]
sar eax, 1
mov qword [rsp + 0x60], rbx
mov qword [rbp + 0xb0], rcx
lea edx, [rax - 0xfa]
mov rax, qword [rsp + 0x60]
movdqa xmm0, xmmword [rbp - 0x80]
mov qword [rbp + 0xb8], rax
xorps xmm0, xmmword [rbp + 0xb0]
movdqa xmmword [rbp - 0x80], xmm0
mov rax, qword [rbp - 0x58]
mov r9d, 0x80000000
mov qword [rsp + 0x50], rax
xor ecx, ecx
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], 0x172
mov dword [rsp + 0x30], 0x1f4
mov dword [rsp + 0x28], r8d
lea r8, [rbp - 0x80]
mov dword [rsp + 0x20], edx
mov rdx, qword [rbp - 0x30]
call qword [sym.imp.USER32.dll_CreateWindowExW]
lea ecx, [r15 + 0x20]
mov rdi, rax
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov r14, qword [rsp + 0x208]
mov rcx, rax
mov rsi, qword [rsp + 0x200]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x140047293
xorps xmm0, xmm0
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x30], rdx
lea r8d, [r15 + 1]
movups xmmword [rbp + 0x10], xmm0
lea rdx, [rbp - 0x10]
mov dword [rbp + 0x18], 1
movups xmmword [rbp + 0x20], xmm0
mov qword [rsp + 0x28], rdx
mov r9, rdi
movups xmmword [rbp - 0x10], xmm0
mov dword [rbp - 8], r15d
xor edx, edx
movups xmmword [rbp], xmm0
mov dword [rbp + 8], 1
mov dword [rbp + 0x1c], 1
mov dword [rbp + 0x20], 0x50
mov dword [rbp + 0x2c], 1
mov rax, qword [rax]
mov dword [rsp + 0x20], 0x40
call qword [rax + 0x80]
test eax, eax
js 0x14004728f
lea edx, [r15 + 0xa]
movaps xmmword [rsp + 0x1d0], xmm6
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rdi
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [0x1403cf698]
test rbx, rbx
je 0x140046fd7
inc dword [rbx + 0xec]
mov ecx, 0x5e68
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140046ff3
xor edx, edx
mov rcx, rax
call fcn.14000cce0
jmp 0x140046ff6
mov rax, r15
mov qword [0x1403cf698], rax
call fcn.140010940
test rbx, rbx
je 0x14004700e
mov qword [0x1403cf698], rbx
mov rdx, rdi
lea rcx, [rbp + 0x70]
call fcn.1400082b0
mov rcx, rdi
call fcn.140036820
mov rbx, qword [0x1403cf698]
mov rdi, qword [rbp - 0x18]
test rbx, rbx
je 0x140047038
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 0x140047067
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x14004706a
mov rax, r15
or dword [rbx + 0xc], 8
lea rcx, str.imgui_impl_dx9
mov qword [rbx + 0x88], rcx
mov rcx, rdi
mov qword [rbx + 0x98], rax
mov qword [rax], rdi
mov rax, qword [rdi]
call qword [rax + reloc.WS2_32.dll_htonl]
movss xmm6, dword [0x1400c15d4]
nop word [rax + rax]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp + 0x40]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400470fc
nop
lea rcx, [rbp + 0x40]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [rbp + 0x48], 0x12
je 0x14004727f
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp + 0x40]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1400470c0
mov rax, qword [0x1403cf698]
test rax, rax
je 0x140047111
mov rcx, qword [rax + 0x98]
jmp 0x140047114
mov rcx, r15
cmp qword [rcx + 0x18], r15
jne 0x140047135
test rax, rax
je 0x140047135
mov rcx, qword [rax + 0x98]
test rcx, rcx
je 0x140047135
cmp qword [rcx], r15
je 0x140047135
call fcn.140036570
call fcn.1400371a0
call fcn.140012060
lea rcx, [rbp + 0x70]
call fcn.140009720
call fcn.140013d80
mov rcx, qword [rbp - 0x18]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [rbp - 0x18]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [rbp - 0x18]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [rbp - 0x18]
mov r9d, 3
mov dword [rsp + 0x30], r15d
xor r8d, r8d
movss dword [rsp + 0x28], xmm6
xor edx, edx
mov dword [rsp + 0x20], 0x1000000
mov rax, qword [rcx]
call qword [rax + 0x158]
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x1400471fc
call fcn.140014190
mov rax, qword [0x1403cf698]
mov rcx, qword [rax + 0x48b8]
mov rax, qword [rcx]
mov rcx, r15
add rax, 0x48
cmp byte [rax], r15b
cmovne rcx, rax
call fcn.140035fb0
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [rbp - 0x18]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r15
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x1400470a0
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
cmp eax, 0x88760869
jne 0x1400470a0
call fcn.1400367a0
mov rcx, qword [rbp - 0x18]
lea rdx, [rbp - 0x10]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov rax, qword [0x1403cf698]
test rax, rax
je 0x1400470a0
mov rax, qword [rax + 0x98]
test rax, rax
je 0x1400470a0
cmp qword [rax], r15
je 0x1400470a0
call fcn.140036570
jmp 0x1400470a0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
movaps xmm6, xmmword [rsp + 0x1d0]
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x1400472ad
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x18], r15
test rcx, rcx
je 0x1400472bc
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov qword [rbp - 0x20], r15
mov rdx, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov eax, 1
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1400a92b0
mov rbx, qword [rsp + 0x210]
add rsp, 0x1e0
pop r15
pop rdi
pop rbp
ret