Function at 0x140071860
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
push rbp
lea rbp, [rax - 0x28]
sub rsp, 0x120
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
movaps xmmword [rax - 0x48], xmm9
movaps xmmword [rax - 0x58], xmm10
movaps xmmword [rax - 0x68], xmm11
movaps xmmword [rax - 0x78], xmm12
movaps xmmword [rax - 0x88], xmm13
mov rax, qword [0x1400e5180]
xor rax, rsp
mov qword [rbp - 0x68], rax
xor edi, edi
call fcn.140077d30
mov edx, 3
mov ecx, 0x22002
call fcn.140078f80
mov edx, 3
mov ecx, 0x22003
call fcn.140078f80
mov edx, 0x32001
mov ecx, 0x22008
call fcn.140078f80
nop
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, str.Wishing
mov edx, 0x240
mov ecx, 0x400
call fcn.1400797d0
mov qword [0x1400e94d0], rax
movss xmm10, dword [0x1400ad678]
movss xmm11, dword [0x1400ad608]
movss xmm12, dword [0x1400ad600]
movss xmm13, dword [0x1400ad604]
test rax, rax
jne 0x14007195e
lea rdx, str.Failed_to_create_window
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002550
lea rdx, [0x140002730]
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.140077e80
jmp 0x140071a11
mov rcx, rax
call fcn.140076810
lea rcx, [0x1400a5f90]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1400e9718], rax
test rax, rax
je 0x1400719b9
lea rdx, [0x1400a5fc0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400e9708], rax
test rax, rax
je 0x1400719b9
call fcn.14000dc40
mov rcx, qword [0x1400e9718]
test rcx, rcx
je 0x1400719b9
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1400e9718], rdi
xor edx, edx
xor ecx, ecx
mov r9d, 0x240
mov r8d, 0x400
call qword [0x1400e94a0]
xor r8d, r8d
mov edx, 0x20005
mov rcx, qword [0x1400e94d0]
call fcn.14007b1b0
movaps xmm3, xmm10
movaps xmm2, xmm11
movaps xmm1, xmm12
movaps xmm0, xmm13
call qword [0x1400e9488]
mov ecx, 0x4000
call qword [0x1400e9478]
mov rcx, qword [0x1400e94d0]
call fcn.140076920
nop
call fcn.14000e760
mov ecx, 0x10
call fcn.140096bc8
lea rcx, [0x1400e9860]
mov qword [rax], rcx
lea rcx, [0x140006ea0]
mov qword [rax + 8], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140072040]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140072008
mov ecx, 0x10
call fcn.140096bc8
lea rbx, [0x1400e9850]
mov qword [rax], rbx
lea rcx, [0x140001ca0]
mov qword [rax + 8], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rbp - 0x78]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140072040]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x80], rax
test rax, rax
je 0x140071ff9
mov ecx, 0x10
call fcn.140096bc8
mov qword [rax], rbx
lea rcx, [0x140002240]
mov qword [rax + 8], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140072040]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140071fe9
mov rcx, qword [0x1400e94d0]
call fcn.140079c90
test eax, eax
jne 0x140071d9d
movsd xmm8, qword [0x1400ad6b8]
movsd xmm9, qword [0x1400ad6d0]
nop
xor ecx, ecx
call fcn.140023810
test al, al
je 0x140071c38
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x40]
mov rcx, qword [0x1400e94d0]
call fcn.14007c9c0
comisd xmm8, xmmword [rbp - 0x70]
jb 0x140071b70
movsd xmm0, qword [rsp + 0x40]
comisd xmm9, xmm0
jb 0x140071b70
comisd xmm0, xmm8
jae 0x140071b85
cmp byte [0x1400e97a9], 0
jne 0x140071b85
mov byte [0x1400e97aa], 1
jmp 0x140071c48
cmp byte [0x1400e97aa], 0
jne 0x140071c48
xorps xmm6, xmm6
xorps xmm7, xmm7
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140071bbb
movd xmm6, dword [rsp + 0x70]
cvtdq2pd xmm6, xmm6
movd xmm7, dword [rsp + 0x74]
cvtdq2pd xmm7, xmm7
cmp byte [0x1400e97a8], 0
jne 0x140071bfd
mov word [0x1400e97a8], 0x101
cvttsd2si eax, xmm6
mov dword [0x1400e9798], eax
cvttsd2si eax, xmm7
mov dword [0x1400e979c], eax
lea r8, [0x1400e97a4]
lea rdx, [0x1400e97a0]
mov rcx, qword [0x1400e94d0]
call fcn.14007a030
jmp 0x140071c48
cmp byte [0x1400e97a9], 1
jne 0x140071c48
cvttsd2si edx, xmm6
sub edx, dword [0x1400e9798]
cvttsd2si ecx, xmm7
sub ecx, dword [0x1400e979c]
mov r8d, dword [0x1400e97a4]
add r8d, ecx
add edx, dword [0x1400e97a0]
mov rcx, qword [0x1400e94d0]
call fcn.14007a0e0
jmp 0x140071c48
mov word [0x1400e97a8], 0
mov byte [0x1400e97aa], 0
movaps xmm3, xmm10
movaps xmm2, xmm11
movaps xmm1, xmm12
movaps xmm0, xmm13
call qword [0x1400e9488]
mov ecx, 0x4000
call qword [0x1400e9478]
mov rbx, qword [0x1400e94e0]
test rbx, rbx
je 0x140071c7e
mov rbx, qword [rbx + 0xa8]
jmp 0x140071c81
mov rbx, rdi
cmp dword [rbx + 0x30], 0
jne 0x140071c8c
call fcn.1400500b0
cmp dword [rbx + 0x2c], 0
jne 0x140071c97
call fcn.14004fc00
call fcn.14004e160
call fcn.140017e20
nop
mov rbx, qword [0x1400e94e0]
mov qword [rbx + 0x4be4], rdi
mov qword [rbx + 0x4bec], rdi
mov dword [rbx + 0x4bd4], 1
mov byte [rbx + 0x4c10], 1
or dword [rbx + 0x4bd0], 3
mov dword [rbx + 0x4bf4], 0x44800000
mov dword [rbx + 0x4bf8], 0x44100000
mov dword [rbx + 0x4bd8], 1
lea rcx, [rbx + 0x4c88]
movss xmm0, dword [rbx + 0x3a2c]
mov dword [rsp + 0x30], 4
movss dword [rsp + 0x34], xmm0
lea rdx, [rsp + 0x30]
call fcn.14003a0c0
mov dword [rbx + 0x3a2c], edi
xor edx, edx
mov r8d, 0x21bf
lea rcx, str.main_content
call fcn.14001e360
call fcn.140075ba0
call fcn.14000eaa0
call fcn.1400214e0
mov ecx, 1
call fcn.140012c20
nop
call fcn.14001a320
mov rax, qword [0x1400e94e0]
mov rax, qword [rax + 0x4d10]
mov rcx, qword [rax]
add rcx, 0xa8
mov rax, rdi
cmp byte [rcx], dil
cmovne rax, rcx
mov rcx, rax
call fcn.14004f590
mov rcx, qword [0x1400e94d0]
call fcn.140076920
call fcn.14007ba00
nop
mov rcx, qword [0x1400e94d0]
call fcn.140079c90
test eax, eax
je 0x140071b30
mov eax, edi
xchg byte [0x1400e9902], al
cmp dword [rsp + 0x68], 0
je 0x140071fdd
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rsp + 0x68], eax
je 0x140071fd1
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x30], xmm0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x140071fc5
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov eax, edi
xchg byte [0x1400e9851], al
cmp dword [rsp + 0x58], 0
je 0x140071fdd
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rsp + 0x58], eax
je 0x140071fd1
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x30], xmm0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x140071fc5
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov eax, edi
xchg byte [0x1400e9850], al
cmp dword [rbp - 0x78], 0
je 0x140071fdd
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp - 0x78], eax
je 0x140071fd1
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rsp + 0x30], xmm0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x140071fc5
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
call fcn.14004f100
call fcn.14004d490
mov rbx, qword [0x1400e94e0]
mov qword [0x1400e94e0], rbx
call fcn.140015230
mov qword [0x1400e94e0], rdi
test rbx, rbx
je 0x140071f2d
mov rcx, rbx
call fcn.14003b020
mov r8, qword [0x1400e94e0]
test r8, r8
je 0x140071f23
mov r9d, dword [r8 + 0x4100]
movsx rdx, word [r8 + 0x6468]
lea rcx, [r8 + 0x646c]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140071f18
lea ecx, [rdx + 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 + 0x6468], cx
movsx rax, cx
lea rcx, [r8 + 0x646c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], edi
inc word [rcx + 6]
inc dword [r8 + 0x6464]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rdx, [0x1400e94c8]
mov ecx, 1
call qword [0x1400e9490]
mov rcx, qword [0x1400e94d0]
call fcn.140079bb0
call fcn.140077e80
nop
cmp dword [rsp + 0x58], 0
je 0x140071f5f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
cmp dword [rbp - 0x78], 0
je 0x140071f6c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
cmp dword [rsp + 0x68], 0
je 0x140071f7a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
xor eax, eax
mov rcx, qword [rbp - 0x68]
xor rcx, rsp
call fcn.140096ba0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
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]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
mov rsp, r11
pop rbp
ret
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x58], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x78], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x68], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3