Function at 0x18004d020
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm6
mov rax, qword [0x180064040]
xor rax, rsp
mov qword [rbp - 1], rax
mov rbx, r9
mov rsi, r8
mov r14, rdx
mov r15, rcx
mov qword [rbp - 9], rbx
xor r12d, r12d
mov qword [rbp - 0x39], r12
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
movdqa xmm6, xmmword [0x18005b270]
movdqu xmmword [rbp - 0x21], xmm6
mov byte [rbp - 0x31], r12b
mov word [rbp - 0x11], r12w
mov dword [rbp - 0xd], r12d
mov rax, qword [rcx]
mov qword [rbp - 0x41], rax
lea rax, [rbp - 0x31]
cmp rax, r9
je 0x18004d0af
mov rdx, rbx
cmp qword [r9 + 0x18], 0xf
jbe 0x18004d0a2
mov rdx, qword [r9]
mov r8, qword [r9 + 0x10]
lea rcx, [rbp - 0x31]
call fcn.18000a6e0
movzx eax, word [rbp + 0x77]
mov word [rbp - 0x11], ax
mov dword [rbp - 0xd], 3
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
lea r9, [rbp - 0x41]
lea r8, [0x18004d350]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x18004d188
mov r8d, 0x24
lea rdx, str.Could_not_create_thread_for_timeout.
lea rcx, [rsi + 0xc0]
call fcn.18000a6e0
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 0xf
jbe 0x18004d13e
mov rcx, qword [rbp - 0x31]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004d139
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004d2b9
call fcn.18004f660
mov byte [rbp - 0x31], 0
mov edx, dword [0x180064f10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x18004d219
lea rdx, str.Can_not_connect_to_server_in
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18004e5d0
mov rcx, rax
mov edx, dword [0x180064f10]
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, str._milliseconds
call fcn.18004e5d0
mov rcx, rax
lea rdx, [0x18004e7b0]
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]
mov rcx, qword [r15]
test rcx, rcx
je 0x18004d1ed
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [0x180064da0]
call fcn.180045b50
mov r8d, 0x22
lea rdx, str.InternetConnect_Thread_has_exited
jmp 0x18004d0f6
mov dword [rbp - 0x49], r12d
lea rdx, [rbp - 0x49]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x18004d25f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rax, str.Error_on_GetExitCodeThread:
add rdx, rax
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x18004d250
jmp 0x18004d0f6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp - 0x49], 0
je 0x18004d280
mov r8d, 0x16
lea rdx, str.Worker_function_failed
jmp 0x18004d0f6
mov rax, qword [rbp - 0x39]
mov qword [r14], rax
mov rdx, qword [rbp - 0x19]
cmp rdx, 0xf
jbe 0x18004d2c5
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004d2c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004d2c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004f660
movdqu xmmword [rbp - 0x21], xmm6
mov byte [rbp - 0x31], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x18004d304
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18004d2ff
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18004d33b
mov rcx, r8
call fcn.18004f660
mov al, 1