Function at 0x140040570
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x280
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
movaps xmmword [rax - 0x58], xmm9
movaps xmmword [rax - 0x68], xmm10
mov rax, qword [0x140051040]
xor rax, rsp
mov qword [rbp + 0x120], rax
movss xmm10, dword [rbp + 0x1c0]
lea rax, str.SDL_app
mov qword [0x140051700], rax
lea rax, str.Counter_Strike_2
mov qword [0x140051708], rax
mov dword [rbp + 0x20], 0x50
mov dword [rbp + 0x24], 0x40
lea rax, [0x140040f60]
mov qword [rbp + 0x28], rax
xor r14d, r14d
mov qword [rbp + 0x30], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0x38], rax
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x40], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x50], xmm1
lea rax, str.Violet
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], r14
lea rcx, [rbp + 0x20]
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov qword [rsp + 0x58], r14
mov rax, qword [rbp + 0x38]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], 0x320
mov dword [rsp + 0x30], 0x500
mov dword [rsp + 0x28], 0x64
mov dword [rsp + 0x20], 0x64
mov r9d, 0x80000000
lea r8, str.Violet_DirectX11_v1.1
mov rdx, qword [rbp + 0x60]
mov ecx, 0xa8
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [0x140051798], rax
mov qword [rbp + 0x94], r14
mov qword [rbp + 0xa8], 2
mov qword [rbp + 0xc0], 2
mov qword [rbp + 0x80], r14
mov dword [rbp + 0x90], 0x1c
mov dword [rbp + 0x88], 0x3c
mov esi, 1
mov dword [rbp + 0x8c], esi
mov dword [rbp + 0xa4], 0x20
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0x9c], rsi
mov qword [rbp + 0xb8], rsi
mov dword [rbp + 8], 0xb000
mov dword [rbp + 0xc], 0xa000
lea rbx, [0x140051788]
mov qword [rsp + 0x58], rbx
lea rax, [rbp + 0x70]
mov qword [rsp + 0x50], rax
lea rdi, [0x140051780]
mov qword [rsp + 0x48], rdi
lea r15, [0x140051770]
mov qword [rsp + 0x40], r15
lea rax, [rbp + 0x80]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, esi
xor ecx, ecx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
cmp eax, 0x887a0004
jne 0x1400407b8
mov qword [rsp + 0x58], rbx
lea rax, [rbp + 0x70]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r15
lea rax, [rbp + 0x80]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 5
xor ecx, ecx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
je 0x140040816
call fcn.140040ee0
mov rdx, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov eax, esi
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140041040
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [0x140051770]
mov rax, qword [rcx]
lea r9, [rbp]
lea r8, [0x14004a2e0]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [0x140051780]
mov rax, qword [rcx]
lea r9, [0x140051768]
xor r8d, r8d
mov rdx, qword [rbp]
call qword [rax + 0x48]
mov rcx, qword [rbp]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov edx, 0xa
mov rcx, qword [0x140051798]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140051798]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [0x140051728]
mov ecx, 0x5618
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rax
mov r8, qword [0x140051728]
test r8, r8
je 0x1400408f5
mov r10d, dword [r8 + 0x3fe8]
movsx rax, word [r8 + 0x5488]
lea rdx, [r8 + 0x548c]
lea rdx, [rdx + rax*8]
cmp dword [rdx], r10d
je 0x1400408ea
lea ecx, [rax + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x5488], cx
movsx rax, cx
lea rdx, [r8 + 0x548c]
lea rdx, [rdx + rax*8]
mov dword [rdx], r10d
mov dword [rdx + 4], r14d
inc word [rdx + 4]
inc dword [r8 + 0x5480]
mov qword [rbp], r9
lea rax, [rsp + 0x60]
mov qword [rbp + 8], rax
mov qword [rbp + 0x70], r9
test r9, r9
je 0x140040917
xor edx, edx
mov rcx, r9
call fcn.140005890
jmp 0x14004091a
mov rax, r14
mov qword [0x140051728], rax
call fcn.140006930
test rbx, rbx
je 0x140040934
mov qword [0x140051728], rbx
jmp 0x14004093b
mov rbx, qword [0x140051728]
or dword [rbx + 8], 3
xor ecx, ecx
call fcn.1400266f0
mov rcx, qword [0x140051798]
call fcn.1400305e0
call fcn.140030410
mov rdi, qword [rbx + 0x38]
mov qword [rbp], r14
lea r8, [rbp]
lea r15, str.C:WindowsFontsmsyh.ttc
mov rcx, r15
call fcn.140002f00
mov rbx, rax
test rax, rax
jne 0x14004098b
lea rcx, str.Could_not_load_font_file_
call fcn.140014cb0
jmp 0x140040b28
xorps xmm2, xmm2
movups xmmword [rsp + 0x70], xmm2
movups xmmword [rbp - 0x80], xmm2
movups xmmword [rbp - 0x50], xmm2
movups xmmword [rbp - 0x40], xmm2
mov byte [rsp + 0x7c], 1
mov dword [rbp - 0x78], 2
mov dword [rbp - 0x74], esi
mov dword [rbp - 0x4c], 0x7f7fffff
mov dword [rbp - 0x40], 0x3f800000
mov dword [rbp - 0x3c], 0x3f800000
mov eax, 0xffff
mov word [rbp - 0x38], ax
movaps xmm3, xmmword [rsp + 0x70]
movaps xmmword [rbp + 0x80], xmm3
movaps xmm4, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x90], xmm4
movaps xmmword [rbp + 0xa0], xmm2
xorps xmm5, xmm5
movaps xmmword [rbp + 0xb0], xmm5
movaps xmm6, xmmword [rbp - 0x50]
movaps xmmword [rbp + 0xc0], xmm6
movaps xmm1, xmmword [rbp - 0x40]
movaps xmmword [rbp + 0xd0], xmm1
xorps xmm7, xmm7
movaps xmmword [rbp + 0xe0], xmm7
xorps xmm8, xmm8
movaps xmmword [rbp + 0xf0], xmm8
xorps xmm9, xmm9
movaps xmmword [rbp + 0x100], xmm9
movdqa xmm0, xmm1
psrldq xmm0, 0xa
movd eax, xmm0
test al, al
jne 0x140040ace
lea r9, [0x14004a299]
nop dword [rax + rax]
lea rcx, [r9 - 1]
movzx eax, byte [rcx]
cmp al, 0x2f
je 0x140040a67
cmp al, 0x5c
je 0x140040a67
mov r9, rcx
cmp rcx, r15
ja 0x140040a50
xorps xmm0, xmm0
cvtss2sd xmm0, xmm10
movsd qword [rsp + 0x20], xmm0
lea r8, str._s___.0fpx
mov edx, 0x28
lea rcx, [rbp + 0xda]
call fcn.140002ab0
movaps xmm9, xmmword [rbp + 0x100]
movaps xmm8, xmmword [rbp + 0xf0]
movaps xmm7, xmmword [rbp + 0xe0]
movaps xmm1, xmmword [rbp + 0xd0]
movaps xmm6, xmmword [rbp + 0xc0]
movaps xmm5, xmmword [rbp + 0xb0]
movaps xmm2, xmmword [rbp + 0xa0]
movaps xmm4, xmmword [rbp + 0x90]
movaps xmm3, xmmword [rbp + 0x80]
movaps xmmword [rsp + 0x70], xmm3
movaps xmmword [rbp - 0x80], xmm4
movaps xmmword [rbp - 0x70], xmm2
movaps xmmword [rbp - 0x60], xmm5
movaps xmmword [rbp - 0x50], xmm6
movaps xmmword [rbp - 0x40], xmm1
movaps xmmword [rbp - 0x30], xmm7
movaps xmmword [rbp - 0x20], xmm8
movaps xmmword [rbp - 0x10], xmm9
mov qword [rsp + 0x70], rbx
mov eax, dword [rbp]
mov dword [rsp + 0x78], eax
xorps xmm0, xmm0
comiss xmm10, xmm0
jbe 0x140040b10
movss dword [rbp - 0x7c], xmm10
lea rax, [0x1400498e8]
mov qword [rbp - 0x58], rax
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.14002a800
xor bl, bl
nop word [rax + rax]
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x80]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140040b9c
nop dword [rax]
lea rcx, [rbp + 0x80]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x80]
call qword [sym.imp.USER32.dll_DispatchMessageW]
movzx ebx, bl
cmp dword [rbp + 0x88], 0x12
cmove ebx, esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x80]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x140040b50
test bl, bl
jne 0x140040ed0
mov qword [rbp + 8], r14
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov rdx, qword [0x140051708]
mov rcx, qword [0x140051700]
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [0x1400516d8], rax
lea rdx, [0x1400516e0]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [0x1400516e0]
mov edx, esi
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x1400516e8], rax
lea rdx, [rbp + 0x10]
mov rcx, qword [0x1400516d8]
call qword [sym.imp.USER32.dll_GetClientRect]
lea rdx, [rbp + 8]
mov rcx, qword [0x1400516d8]
call qword [sym.imp.USER32.dll_ClientToScreen]
movd xmm3, dword [rbp + 8]
cvtdq2ps xmm3, xmm3
movd xmm2, dword [rbp + 0xc]
cvtdq2ps xmm2, xmm2
movss dword [0x1400516f0], xmm3
movss dword [0x1400516f4], xmm2
movss dword [0x1400517b0], xmm3
movss dword [0x1400517b4], xmm2
movd xmm1, dword [rbp + 0x18]
cvtdq2ps xmm1, xmm1
movd xmm0, dword [rbp + 0x1c]
cvtdq2ps xmm0, xmm0
movss dword [0x1400516f8], xmm1
movss dword [0x1400516fc], xmm0
movss dword [0x1400517b8], xmm1
movss dword [0x1400517bc], xmm0
cvttss2si eax, xmm0
cvttss2si ecx, xmm1
cvttss2si r9d, xmm2
cvttss2si r8d, xmm3
mov dword [rsp + 0x30], 0x40
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rdx, 0xffffffffffffffff
mov rcx, qword [0x140051798]
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rcx, [rbp + 0x70]
call qword [sym.imp.USER32.dll_GetCursorPos]
lea rdx, [rbp + 0x70]
mov rcx, qword [0x140051798]
call qword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [rbp + 0x70]
cvtdq2ps xmm0, xmm0
mov rax, qword [0x140051728]
movss dword [rax + 0xe0], xmm0
movd xmm0, dword [rbp + 0x74]
cvtdq2ps xmm0, xmm0
movss dword [rax + 0xe4], xmm0
mov edx, 0xffffffec
mov rcx, qword [0x140051798]
cmp byte [rax + 0xb0], 0
je 0x140040d08
call qword [sym.imp.USER32.dll_GetWindowLongW]
btr eax, 0x13
jmp 0x140040d12
call qword [sym.imp.USER32.dll_GetWindowLongW]
bts eax, 0x13
mov r8d, eax
mov edx, 0xffffffec
mov rcx, qword [0x140051798]
call qword [sym.imp.USER32.dll_SetWindowLongW]
cmp byte [0x140051760], 0
je 0x140040d59
mov rcx, qword [0x140051770]
mov rax, qword [rcx]
mov r8d, esi
xor edx, edx
call qword [rax + 0x40]
cmp eax, 0x87a0001
jne 0x140040d59
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140040b30
mov byte [0x140051760], 0
mov r8d, dword [0x140051764]
test r8d, r8d
je 0x140040e0d
mov r9d, dword [0x140051778]
test r9d, r9d
je 0x140040e0d
mov rcx, qword [0x140051768]
test rcx, rcx
je 0x140040da7
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x140051768], r14
mov r8d, dword [0x140051764]
mov r9d, dword [0x140051778]
mov rcx, qword [0x140051770]
mov rax, qword [rcx]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor edx, edx
call qword [rax + 0x68]
mov dword [0x140051778], r14d
mov dword [0x140051764], r14d
mov rcx, qword [0x140051770]
mov rax, qword [rcx]
lea r9, [rbp]
lea r8, [0x14004a2e0]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [0x140051780]
mov rax, qword [rcx]
lea r9, [0x140051768]
xor r8d, r8d
mov rdx, qword [rbp]
call qword [rax + 0x48]
mov rcx, qword [rbp]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [0x140051728]
test rax, rax
je 0x140040e22
mov rcx, qword [rax + 0xa0]
jmp 0x140040e25
mov rcx, r14
cmp qword [rcx + 0x48], 0
jne 0x140040e31
call fcn.14002fdb0
call fcn.140030ff0
call fcn.140008950
call fcn.140001000
call fcn.14000a9e0
xorps xmm0, xmm0
movups xmmword [rbp + 0x110], xmm0
mov rcx, qword [0x140051788]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [0x140051768]
mov edx, esi
call qword [rax + 0x108]
mov rcx, qword [0x140051788]
mov rax, qword [rcx]
lea r8, [rbp + 0x110]
mov rdx, qword [0x140051768]
call qword [rax + 0x190]
mov rax, qword [0x140051728]
mov rcx, qword [rax + 0x4bd0]
mov rax, qword [rcx]
add rax, 0x50
mov rcx, r14
cmp byte [rax], r14b
cmovne rcx, rax
call fcn.14002f340
mov rcx, qword [0x140051770]
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x40]
cmp eax, 0x87a0001
sete byte [0x140051760]
jmp 0x140040b30
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3