Function at 0x140058220
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140103080]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rbx, rcx
mov esi, r9d
mov ecx, 8
call fcn.1400d28e8
lea rcx, [0x140057630]
xor edi, edi
mov r9, rax
lea r8, [0x140059380]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14005887d
cmp dword [rsp + 0x68], edi
je 0x140058871
movaps xmm0, xmmword [rsp + 0x60]
lea rcx, [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140058871
xorps xmm0, xmm0
xor ecx, ecx
movdqa xmmword [rsp + 0x60], xmm0
call qword [sym.imp.USER32.dll_GetSystemMetrics]
lea ecx, [rdi + 1]
mov dword [0x140104afc], eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xorps xmm0, xmm0
mov dword [rbp + 0x38], 0xb000
mov dword [0x140104af8], eax
lea rcx, [rbp - 0x68]
xor eax, eax
mov dword [rbp + 0x3c], 0xa000
mov qword [rbp - 0x58], rax
xorps xmm1, xmm1
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x30], rax
lea rax, [0x140057a30]
mov qword [rbp - 0x60], rax
lea rax, str.Lothus_External
mov qword [rbp - 0x28], rax
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp + 0x68], rdi
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x70], rbx
movaps xmmword [rbp - 0x20], xmm1
movups xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x68], 0x50
movups xmmword [rbp], xmm0
mov qword [rbp - 0x50], rbx
movups xmmword [rbp + 0x10], xmm0
mov dword [rbp - 0x64], 3
movups xmmword [rbp + 0x20], xmm0
movdqa xmmword [rbp + 0x40], xmm0
movdqa xmmword [rbp + 0x50], xmm1
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov rax, qword [rbp - 0x50]
mov r9d, 0x80000000
mov rdx, qword [rbp - 0x28]
mov ecx, 0x800a8
mov qword [rsp + 0x58], rdi
mov r8, rdx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], 0x438
mov dword [rsp + 0x30], 0x780
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.USER32.dll_CreateWindowExW]
lea r9d, [rdi + 2]
mov r8b, 0xff
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
lea rcx, [0x140104ce0]
mov qword [rbp - 0x18], rbx
call fcn.14007b830
lea ecx, [rdi + 8]
call fcn.1400d28e8
lea rcx, [0x140057ab0]
mov r9, rax
lea r8, [0x140059380]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140058861
cmp dword [rsp + 0x68], edi
je 0x140058855
movaps xmm0, xmmword [rsp + 0x60]
lea rcx, [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140058855
xorps xmm0, xmm0
lea ecx, [rdi + 8]
movdqa xmmword [rsp + 0x60], xmm0
call fcn.1400d28e8
lea rcx, [0x140057d40]
mov r9, rax
lea r8, [0x140059380]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140058845
cmp dword [rsp + 0x68], edi
je 0x140058839
movaps xmm0, xmmword [rsp + 0x60]
lea rcx, [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140058839
xorps xmm0, xmm0
lea ecx, [rdi + 8]
movdqa xmmword [rsp + 0x60], xmm0
call fcn.1400d28e8
lea rcx, [0x140058120]
mov r9, rax
lea r8, [0x140059380]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140058829
cmp dword [rsp + 0x68], edi
je 0x14005881d
movaps xmm0, xmmword [rsp + 0x60]
lea rcx, [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14005881d
xorps xmm0, xmm0
lea ecx, [rdi + 8]
movdqa xmmword [rsp + 0x60], xmm0
call fcn.1400d28e8
lea rcx, [0x1400581e0]
mov r9, rax
lea r8, [0x140059380]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14005880d
cmp dword [rsp + 0x68], edi
je 0x140058801
movaps xmm0, xmmword [rsp + 0x60]
lea rcx, [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140058801
mov rcx, qword [rbp - 0x18]
lea rdx, [rsp + 0x70]
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [rbp - 0x18]
lea rdx, [rbp + 0x70]
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rcx, qword [rbp - 0x18]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rdi
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rsp + 0x60]
lea rdx, [rbp - 0x80]
mov rcx, qword [rbp - 0x18]
mov dword [rbp - 0x80], eax
mov eax, dword [rsp + 0x64]
mov dword [rbp - 0x7c], eax
mov eax, dword [rsp + 0x78]
mov dword [rbp - 0x78], eax
mov eax, dword [rsp + 0x7c]
mov dword [rbp - 0x74], eax
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov rax, qword [rbp - 0x18]
lea edx, [rdi + 1]
mov qword [rbp + 0x20], rax
xor r9d, r9d
lea rax, [rbp + 0x48]
mov dword [rbp - 8], reloc.WLDAP32.dll_Ordinal_60
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rax, [rbp + 0x60]
mov dword [rbp - 4], 1
mov qword [rsp + 0x50], rax
xor ecx, ecx
lea rax, [rbp + 0x40]
mov dword [rbp], Ordinal_32
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x38]
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], rax
mov dword [rbp + 0xc], 1
mov dword [rbp + 0x14], reloc.WLDAP32.dll_Ordinal_32
mov dword [rbp + 0x18], 2
mov qword [rbp + 0x28], 1
mov dword [rbp + 0x30], 2
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
mov rcx, qword [rbp + 0x50]
lea r9, [rbp + 0x68]
lea r8, [0x1400ee888]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rdx, qword [rbp + 0x68]
test rdx, rdx
je 0x1400586df
mov rcx, qword [rbp + 0x40]
lea r9, [rbp + 0x58]
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rbp + 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x18]
mov edx, esi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [0x140104a60]
mov ecx, 0x6258
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x140104a60]
mov r9, rax
test r8, r8
je 0x140058775
movsx rax, word [r8 + 0x60c8]
lea rdx, [r8 + 0x60cc]
mov r10d, dword [r8 + 0x3f58]
lea rdx, [rdx + rax*8]
cmp dword [rdx], r10d
je 0x14005876a
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
lea rdx, [r8 + 0x60cc]
sub ecx, eax
mov word [r8 + 0x60c8], cx
movsx rax, cx
lea rdx, [rdx + rax*8]
mov dword [rdx], r10d
mov dword [rdx + 4], edi
inc word [rdx + 4]
inc dword [r8 + 0x60c0]
test r9, r9
je 0x140058787
xor edx, edx
mov rcx, r9
call fcn.140001e90
mov rdi, rax
mov qword [0x140104a60], rdi
call fcn.1400067c0
test rbx, rbx
je 0x1400587a1
mov qword [0x140104a60], rbx
jmp 0x1400587a8
mov rbx, qword [0x140104a60]
mov rcx, qword [rbx + 0x38]
call fcn.14002b700
xor ecx, ecx
call fcn.140026520
mov rcx, qword [rbp - 0x18]
call fcn.1400319d0
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x40]
call fcn.140031810
lea rcx, [rbp - 0x70]
call fcn.140070460
xor eax, eax
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400d2300
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 6
mov dword [rsp + 0x68], edi
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_]
int3
mov ecx, 6
mov dword [rsp + 0x68], edi
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_]
int3
mov ecx, 6
mov dword [rsp + 0x68], edi
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_]
int3
mov ecx, 6
mov dword [rsp + 0x68], edi
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_]
int3
mov ecx, 6
mov dword [rsp + 0x68], edi
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3