Function at 0x140048c10
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xe0
mov rax, qword [0x140098040]
xor rax, rsp
mov qword [rsp + 0xd0], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
lea rax, [0x140048b40]
mov qword [rsp + 0x70], 0x50
xor edi, edi
mov qword [rsp + 0x78], rax
mov edx, 0x7f00
mov qword [rsp + 0x80], rdi
xor ecx, ecx
mov qword [rsp + 0x88], rdi
call qword [sym.imp.USER32.dll_LoadIconA]
mov edx, 0x7f00
xor ecx, ecx
mov qword [rsp + 0x90], rax
call qword [sym.imp.USER32.dll_LoadCursorA]
xorps xmm0, xmm0
lea rbx, str.Element
mov edx, 0x7f00
mov qword [rsp + 0x98], rax
xor ecx, ecx
movdqa xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], rbx
call qword [sym.imp.USER32.dll_LoadIconA]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0xb8], rax
call qword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x140049013
lea rdx, [0x14008d714]
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [0x140098358], rax
test rax, rax
je 0x140048ddb
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [rsp + 0x64]
mov rdx, rbx
mov r9d, dword [rsp + 0x60]
mov r8d, dword [rsp + 0x68]
mov eax, dword [rsp + 0x6c]
sub r8d, r9d
mov qword [rsp + 0x58], rdi
sub eax, ecx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], ecx
xor ecx, ecx
mov dword [rsp + 0x20], r9d
mov r9d, 0x90000000
mov dword [0x140098360], r8d
mov r8, rbx
mov dword [0x140098364], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, dword [0x140098360]
mov edx, 0xffffffec
mov dword [rsp + 0xc8], ecx
mov ecx, dword [0x140098364]
mov dword [rsp + 0xcc], ecx
mov rcx, rax
mov qword [0x140098350], rax
mov qword [rsp + 0xc0], rdi
call qword [sym.imp.USER32.dll_GetWindowLongA]
mov rcx, qword [0x140098350]
mov edx, 0xffffffec
and eax, 0xffffffdf
or eax, 0x8080000
mov r8d, eax
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x140098350]
lea rdx, [rsp + 0xc0]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov rcx, qword [0x140098350]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rbx, qword [0x140098350]
lea rdx, [0x1400994e8]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x140048e04
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov eax, dword [0x140098360]
lea rdx, [0x140099530]
mov rcx, qword [0x1400994e8]
mov r9, rbx
mov qword [rsp + 0x38], rdx
mov r8d, 1
mov dword [0x1400994f0], eax
lea rdx, [0x1400994f0]
mov eax, dword [0x140098364]
mov qword [0x1400994fc], rdi
mov qword [0x140099508], 1
mov qword [0x140099524], rdi
mov dword [0x140099518], 1
mov qword [0x140099510], rbx
mov dword [0x140099504], edi
mov dword [0x1400994f8], 0x15
mov dword [0x1400994f4], eax
mov dword [0x14009951c], 1
mov dword [0x140099520], 0x50
mov dword [0x14009952c], 0x80000000
mov rax, qword [rcx]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdx
xor edx, edx
mov dword [rsp + 0x20], 0x40
call qword [rax + 0xa0]
test eax, eax
jns 0x140048ed1
mov rcx, qword [0x1400994e8]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov ecx, 4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.14001df40
mov rdi, qword [0x1400994d8]
lea rcx, [0x140099c58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140048fcf
lea rcx, [0x140099c50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140048fcf
mov rcx, qword [0x1400994d8]
lea rax, str.imgui_impl_win32
mov qword [0x140099c48], rbx
or dword [rcx + 0xc], 6
mov qword [rcx + 0xd8], rax
mov qword [rcx + 0x108], rbx
mov dword [rcx + 0x3c], 9
mov dword [rcx + 0x40], 0x25
mov dword [rcx + 0x44], 0x27
mov dword [rcx + 0x48], 0x26
mov dword [rcx + 0x4c], 0x28
mov dword [rcx + 0x50], 0x21
mov dword [rcx + 0x54], 0x22
mov dword [rcx + 0x58], 0x24
mov dword [rcx + 0x5c], 0x23
mov dword [rcx + 0x60], 0x2d
mov dword [rcx + 0x64], 0x2e
mov dword [rcx + 0x68], 8
mov dword [rcx + 0x6c], 0x20
mov dword [rcx + 0x70], 0xd
mov dword [rcx + 0x74], 0x1b
mov dword [rcx + 0x78], 0x41
mov dword [rcx + 0x7c], 0x43
mov dword [rcx + 0x80], 0x56
mov dword [rcx + 0x84], 0x58
mov dword [rcx + 0x88], 0x59
mov dword [rcx + 0x8c], 0x5a
jmp 0x140048fd6
mov rcx, qword [0x1400994d8]
mov rax, qword [0x140099530]
lea rdx, str.imgui_impl_dx9
movss xmm2, dword [0x14008daec]
mov qword [rcx + 0xe0], rdx
mov rcx, qword [rdi + 0xa0]
mov qword [0x140099c38], rax
call fcn.140036b00
mov rcx, qword [0x1400994e8]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140049a80
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret