Function at 0x1400598e0
Capabilities:
Create thread
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x90
movaps xmmword [rax - 0x28], xmm6
xor ebx, ebx
lea rcx, str.USERNAME
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rbx
mov qword [rbp + 0x2f], rbx
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], bl
jne 0x140059923
mov rdx, rax
lea rcx, [rbp + 0x17]
call fcn.1400320b0
nop
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 9]
call fcn.140063b50
nop
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.140133988
movups xmm0, xmmword [rbp - 9]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbp + 7]
movups xmmword [rax + 0x10], xmm1
mov qword [rbp + 7], rbx
mov qword [rbp + reloc.WS2_32.dll_ntohs], 0xf
mov byte [rbp - 9], 0
mov qword [rbp + 0x67], rax
lea rcx, [rbp - 0x11]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x1400686b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x19], rax
test rax, rax
je 0x140059b36
cmp dword [rbp - 0x11], 0
jne 0x1400599b4
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp - 0x11], eax
jne 0x1400599cb
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 9], xmm0
xor edx, edx
lea rcx, [rbp - 9]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
je 0x1400599f0
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x19], xmm0
lea rcx, [rbp + 0x67]
call fcn.1400464a0
movabs rax, 0x7fffffffb87973ff
mov rdi, qword [rbp + 0x67]
cmp rdi, rax
jge 0x140059a1d
add rdi, 0x47868c00
jmp 0x140059a27
movabs rdi, 0x7fffffffffffffff
lea rcx, [rbp + 0x67]
call fcn.1400464a0
mov rax, qword [rbp + 0x67]
cmp rax, rdi
jge 0x140059ace
movabs rsi, 0x311cdad160000
movabs r14, 0x112e0be826d694b3
movsd xmm6, qword [0x1401772e8]
nop dword [rax]
mov rbx, rdi
sub rbx, rax
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
imul rdx, rax, 0x64
xorps xmm0, xmm0
cvtsi2sd xmm0, rbx
comisd xmm0, xmm6
seta r8b
mov rcx, rsi
test r8b, r8b
cmove rcx, rbx
add rcx, rdx
mov rax, r14
imul rcx
sar rdx, 0x1a
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rbp - 9], rdx
imul rax, rdx, 0x3b9aca00
sub rcx, rax
mov dword [rbp - 1], ecx
lea rcx, [rbp - 9]
call qword [sym.imp.MSVCP140.dll__Thrd_sleep]
lea rcx, [rbp + 0x67]
call fcn.1400464a0
mov rax, qword [rbp + 0x67]
cmp rax, rdi
jl 0x140059a60
cmp dword [rbp - 0x11], 0
je 0x140059adb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x140059b19
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059b14
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059b14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140133c04
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov dword [rbp - 0x11], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3