Function at 0x140037e70
Capabilities:
Terminate process

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x68]
sub rsp, 0x168
mov rax, qword [0x14019f080]
xor rax, rsp
mov qword [rbp + 0x48], rax
mov rdi, rcx
lea rcx, [0x1407b9330]
call fcn.140056df0
cmp byte [0x1407b9560], 0
jne 0x140037f15
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rbp + 0x38]
call fcn.1400387d0
movzx edx, byte [rax + 0xa]
test dl, dl
je 0x140037eea
xor byte [rax], 0x33
xor byte [rax + 1], 0x34
xor byte [rax + 2], 0x35
xor byte [rax + 3], 0x36
xor byte [rax + 4], 0x37
xor byte [rax + 5], 0x38
xor byte [rax + 6], 0x39
xor byte [rax + 7], 0x3a
xor byte [rax + 8], 0x3b
xor byte [rax + 9], 0x3c
xor dl, 0x3d
mov byte [rax + 0xa], dl
mov rdx, rax
call fcn.140038910
mov rcx, rax
lea rdx, [0x1407b9568]
call fcn.140038af0
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x188], rbx
lea rax, [0x140038880]
mov qword [rsp + 0x190], rsi
xor ecx, ecx
mov qword [rsp + 0x160], r12
xor r12d, r12d
mov qword [rbp - 0x20], r12
mov qword [rsp + 0x150], r15
mov dword [rbp - 0x30], 0x50
mov dword [rbp - 0x2c], 0x40
mov qword [rbp - 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xorps xmm0, xmm0
mov qword [rbp + 0x18], r12
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x10], xmm0
lea rsi, str.Patsima_Store
movdqa xmmword [rbp], xmm1
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x18], rax
mov qword [rbp + 0x10], rsi
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov r15d, 1
mov ecx, r15d
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
xor ecx, ecx
sub eax, edx
sar eax, 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm0, dword [0x14018699c]
cvttss2si ebx, xmm0
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov qword [rsp + 0x58], r12
mov r9d, 0x80000000
mov qword [rsp + 0x50], rdi
cdq
mov qword [rsp + 0x48], r12
sub eax, edx
mov rdx, qword [rbp + 0x10]
mov r8, rsi
mov qword [rsp + 0x40], r12
xor ecx, ecx
sar eax, 1
mov dword [rsp + 0x38], 0x190
mov dword [rsp + 0x30], Ordinal_301
mov dword [rsp + 0x28], ebx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm0, dword [0x140186988]
cvttss2si eax, xmm0
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, rax
mov qword [0x1407b9660], rax
mov edx, 0xffffffec
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov rcx, qword [0x1407b9660]
mov edx, 0xffffffec
bts eax, 0x13
mov r8d, eax
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x1407b9660]
mov r9d, 2
mov r8b, 0xff
xor edx, edx
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
movdqa xmm0, xmmword [0x140186a00]
lea rdx, [rbp + 0x28]
mov rcx, qword [0x1407b9660]
movdqu xmmword [rbp + 0x28], xmm0
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov rcx, qword [0x1407b9660]
lea rdx, [0x1407b9668]
xorps xmm0, xmm0
movups xmmword [0x1407b9668], xmm0
call qword [sym.imp.USER32.dll_GetWindowRect]
mov qword [rbp - 0x6c], r12
mov qword [rbp - 0x58], 2
mov qword [rbp - 0x40], 2
mov rax, qword [0x1407b9660]
lea rbx, [0x1407b9698]
mov qword [rsp + 0x58], rbx
lea rdi, [0x1407b96a0]
mov qword [rbp - 0x50], rax
lea rsi, [0x1407b96a8]
lea rax, [rsp + 0x68]
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x50], rax
xor r9d, r9d
mov qword [rsp + 0x48], rdi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rsi
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov edx, r15d
mov dword [rsp + 0x30], 7
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 2
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x70], Ordinal_33
mov dword [rbp - 0x78], reloc.WLDAP32.dll_Ordinal_60
mov dword [rbp - 0x74], r15d
mov dword [rbp - 0x5c], reloc.WLDAP32.dll_Ordinal_32
mov qword [rbp - 0x64], r15
mov qword [rbp - 0x48], r15
mov dword [rsp + 0x60], 0xb000
mov dword [rsp + 0x64], 0xa000
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
cmp eax, 0x887a0004
jne 0x1400381a0
mov qword [rsp + 0x58], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
xor r9d, r9d
mov qword [rsp + 0x48], rdi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rsi
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov edx, 5
mov dword [rsp + 0x30], 7
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 2
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
jne 0x14003877e
mov rcx, qword [0x1407b96a8]
lea r9, [rsp + 0x70]
lea r8, [0x140184c40]
mov qword [rsp + 0x158], r14
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [0x1407b96a0]
lea r9, [0x1407b96b0]
mov rdx, qword [rsp + 0x70]
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x1407b9660]
mov edx, 0xa
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1407b9660]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [0x1407b8d30]
test rbx, rbx
je 0x140038223
inc dword [rbx + 0xf4]
mov ecx, 0x5e38
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x14003823f
xor edx, edx
mov rcx, rax
call fcn.140001c70
jmp 0x140038242
mov rax, r12
mov qword [0x1407b8d30], rax
call fcn.140005640
test rbx, rbx
je 0x14003825c
mov qword [0x1407b8d30], rbx
jmp 0x140038263
mov rbx, qword [0x1407b8d30]
mov qword [rbx + 0x20], r12
call fcn.14003bbb0
xor ecx, ecx
call fcn.14001b2b0
mov rsi, qword [0x1407b9660]
lea rcx, [rbp + 0x20]
mov rbx, qword [0x1407b8d30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400383ba
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400383ba
mov rax, qword [0x1407b8d30]
test rax, rax
je 0x1400382b7
inc dword [rax + 0xf4]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400382e4
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
mov qword [rdi + 0x40], rax
jmp 0x1400382e7
mov rdi, r12
or dword [rbx + 0xc], 6
lea rax, [0x1401847b8]
mov qword [rbx + 0x88], rax
mov qword [rbx + 0x98], rdi
mov rbx, r12
mov qword [rdi], rsi
mov rax, qword [rbp + 0x20]
mov qword [rdi + 0x20], rax
mov rax, qword [rbp + 0x38]
mov qword [rdi + 0x18], rax
mov rax, qword [0x1407b8d30]
mov dword [rdi + 0x28], 9
mov rcx, qword [rax + 0x48d0]
mov rax, qword [rcx]
mov qword [rax + 0x28], rsi
lea rax, str.xinput1_4.dll
mov qword [rbp - 0x80], rax
lea rax, str.xinput1_3.dll
mov qword [rbp - 0x78], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp - 0x70], rax
lea rax, str.xinput1_2.dll
mov qword [rbp - 0x68], rax
lea rax, str.xinput1_1.dll
mov qword [rbp - 0x60], rax
mov byte [rdi + 0x2d], r15b
nop dword [rax]
mov rcx, qword [rbp + rbx*8 - 0x80]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14003838e
inc rbx
cmp rbx, 5
jl 0x140038370
jmp 0x1400383ba
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x30], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x40], rax
mov rdi, qword [0x1407b8d30]
mov r14, qword [0x1407b9698]
mov rsi, qword [0x1407b96a0]
test rdi, rdi
je 0x1400383da
inc dword [rdi + 0xf4]
mov ecx, 0x78
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14003841b
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
mov dword [rax + 0x70], 0x1388
mov dword [rax + 0x74], 0x2710
jmp 0x14003841e
mov rbx, r12
or dword [rdi + 0xc], 8
lea rax, str.imgui_impl_dx11
mov qword [rdi + 0x90], rax
lea r8, [rsp + 0x60]
mov qword [rdi + 0xa0], rbx
lea rdx, [0x140184788]
mov rax, qword [rsi]
mov rcx, rsi
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
call qword [rax]
test eax, eax
jne 0x1400384a4
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x68]
lea rdx, [0x140184798]
mov rax, qword [rcx]
call qword [rax + Ordinal_50]
test eax, eax
jne 0x1400384a4
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x70]
lea rdx, [0x1401847a8]
mov rax, qword [rcx]
call qword [rax + Ordinal_50]
test eax, eax
jne 0x1400384a4
mov qword [rbx], rsi
mov qword [rbx + 8], r14
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x10], rax
mov rcx, qword [rsp + 0x60]
mov r14, qword [rsp + 0x158]
test rcx, rcx
je 0x1400384bc
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400384cc
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor bl, bl
xorps xmm0, xmm0
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea rcx, [rbp - 0x80]
xor r8d, r8d
xor edx, edx
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140038552
nop dword [rax + rax]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [rbp - 0x78], 0x12
lea rcx, [rbp - 0x80]
movzx ebx, bl
cmove ebx, r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x140038510
test bl, bl
jne 0x140038604
mov rax, qword [0x1407b8d30]
test rax, rax
je 0x140038567
mov rcx, qword [rax + 0xa0]
jmp 0x14003856a
mov rcx, r12
cmp qword [rcx + 0x48], r12
jne 0x140038575
call fcn.140027c30
call fcn.140028a60
call fcn.140007c80
call fcn.14003c310
call fcn.140009d30
mov rcx, qword [0x1407b9698]
lea r8, [0x1407b96b0]
xorps xmm0, xmm0
xor r9d, r9d
movups xmmword [rbp + 0x38], xmm0
mov edx, r15d
mov rax, qword [rcx]
call qword [rax + 0x108]
mov rcx, qword [0x1407b9698]
lea r8, [rbp + 0x38]
mov rdx, qword [0x1407b96b0]
mov rax, qword [rcx]
call qword [rax + 0x190]
mov rax, qword [0x1407b8d30]
mov rcx, qword [rax + 0x48d0]
mov rax, qword [rcx]
mov rcx, r12
add rax, 0x48
cmp byte [rax], r12b
cmovne rcx, rax
call fcn.1400271c0
mov rcx, qword [0x1407b96a8]
xor r8d, r8d
mov edx, r15d
mov rax, qword [rcx]
call qword [rax + 0x40]
jmp 0x1400384e1
mov rbx, qword [0x1407b8d30]
mov qword [0x1407b8d30], rbx
call fcn.140005a50
mov qword [0x1407b8d30], r12
test rbx, rbx
je 0x140038646
mov rcx, rbx
call fcn.14001a2f0
mov rax, qword [0x1407b8d30]
test rax, rax
je 0x14003863d
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [0x1407b8d50]
call fcn.140020a20
mov rdi, qword [0x1407b8d30]
test rdi, rdi
je 0x140038667
mov rbx, qword [rdi + 0xa0]
jmp 0x14003866a
mov rbx, r12
call fcn.140028170
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14003867e
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003868c
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14003869b
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [0x1407b8d30]
mov qword [rdi + 0x90], r12
mov qword [rdi + 0xa0], r12
test rax, rax
je 0x1400386bb
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1407b8d30]
test rax, rax
je 0x1400386d9
mov rbx, qword [rax + 0x98]
jmp 0x1400386dc
mov rbx, r12
mov rcx, qword [rbx + 0x30]
lea rdi, [rax + 8]
test rcx, rcx
je 0x1400386f6
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x1407b8d30]
mov qword [rdi + 0x80], r12
mov qword [rdi + 0x90], r12
test rax, rax
je 0x14003870f
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x1407b8d30]
mov qword [0x1407b8d30], rbx
call fcn.140005a50
mov qword [0x1407b8d30], r12
test rbx, rbx
je 0x14003875a
mov rcx, rbx
call fcn.14001a2f0
mov rax, qword [0x1407b8d30]
test rax, rax
je 0x140038751
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call fcn.140038800
mov rcx, qword [0x1407b9660]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.USER32.dll_UnregisterClassW]
xor eax, eax
jmp 0x140038794
call fcn.140038800
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov eax, r15d
mov r12, qword [rsp + 0x160]
mov rsi, qword [rsp + 0x190]
mov rbx, qword [rsp + 0x188]
mov r15, qword [rsp + 0x150]
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.140116d70
add rsp, 0x168
pop rdi
pop rbp
ret