Function at 0x14008cdd0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x1403c3d98]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, rcx
xor r13d, r13d
mov rbx, qword [rcx + 0x10]
mov r15, rcx
mov r12, qword [rcx + 0x18]
cmp r12, 0x10
jb 0x14008ce1c
mov r15, qword [rcx]
mov rsi, 0xffffffffffffffff
test rbx, rbx
je 0x14008ce43
mov r8, rbx
lea edx, [rsi + 0x3b]
mov rcx, r15
call fcn.1402985f0
mov rdi, rax
test rax, rax
je 0x14008ce43
sub rdi, r15
jmp 0x14008ce46
mov rdi, rsi
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x21], r13
cmp rbx, 1
jb 0x14008d383
lea rcx, [rbx - 1]
lea rax, [rdi - 1]
cmp rcx, rax
cmovb rdi, rbx
dec rdi
mov rax, r14
cmp r12, 0x10
jb 0x14008ce7d
mov rax, qword [r14]
lea r12, [rax + 1]
movabs r15, 0x7fffffffffffffff
cmp rdi, r15
ja 0x14008d389
mov eax, reloc.WS2_32.dll_shutdown
mov qword [rbp - 0x21], reloc.WS2_32.dll_ntohs
cmp rdi, 0x10
jae 0x14008cebc
mov qword [rbp - 0x29], rdi
mov r8, rdi
mov rdx, r12
lea rcx, [rbp - 0x39]
call fcn.140296c90
jmp 0x14008cf05
mov r13, rdi
or r13, 0xf
cmp r13, r15
jbe 0x14008cecd
mov r13, r15
jmp 0x14008ced4
cmp r13, rax
cmovb r13, rax
lea rdx, [r13 + 1]
lea rcx, [rbp - 0x39]
call fcn.14007b800
mov rbx, rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x21], r13
mov r8, rdi
mov rdx, r12
mov rcx, rax
call fcn.140296c90
mov byte [rbx + rdi], 0
xor r13d, r13d
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.14008d6c0
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x14008cf4e
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008cf49
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008d38f
call fcn.14029591c
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x21], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x39], 0
lea rdi, [rbp + 7]
mov r12, qword [rbp + 7]
mov r13, qword [rbp + 0x1f]
cmp r13, 0x10
cmovae rdi, r12
mov rbx, qword [rbp + 0x17]
test rbx, rbx
je 0x14008d298
mov r8, rbx
mov edx, 0x2e
mov rcx, rdi
call fcn.1402985f0
test rax, rax
je 0x14008d298
sub rax, rdi
cmp rax, 0xffffffffffffffff
je 0x14008d298
call fcn.1400bb090
mov r8d, reloc.WS2_32.dll_inet_ntoa
lea rdx, str.UlLoading...
lea rcx, [0x1403bc098]
call fcn.1400817c0
mov byte [0x1403c66d2], 0
mov byte [0x1403c66d1], 0
mov rdi, qword [0x1403c66d8]
mov rbx, qword [rdi]
mov r8, qword [rbx + 8]
mov rdx, rdi
mov rcx, rdi
call fcn.14008a040
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
xor r13d, r13d
mov qword [rdi + 8], r13
mov dword [0x1403bc070], esi
mov rbx, qword [r14 + 0x10]
mov rdi, r14
mov r12, qword [r14 + 0x18]
cmp r12, 0x10
jb 0x14008d016
mov rdi, qword [r14]
test rbx, rbx
je 0x14008d035
mov r8, rbx
mov edx, 0x3a
mov rcx, rdi
call fcn.1402985f0
test rax, rax
je 0x14008d035
sub rax, rdi
jmp 0x14008d038
mov rax, rsi
inc rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], r13
mov qword [rbp - 1], r13
cmp rbx, rax
jb 0x14008d395
sub rbx, rax
cmp rbx, 0xffffffffffffffff
cmovb rsi, rbx
cmp r12, 0x10
jb 0x14008d067
mov r14, qword [r14]
lea rdi, [r14 + rax]
cmp rsi, r15
ja 0x14008d39b
mov qword [rbp - 1], reloc.WS2_32.dll_ntohs
cmp rsi, 0x10
jae 0x14008d097
mov qword [rbp - 9], rsi
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp - 0x19]
call fcn.140296c90
jmp 0x14008d0e1
mov rax, rsi
or rax, 0xf
cmp rax, r15
ja 0x14008d0b3
mov r15, rax
cmp rax, 0x16
mov eax, reloc.WS2_32.dll_shutdown
cmovb r15, rax
lea rdx, [r15 + 1]
lea rcx, [rbp - 0x19]
call fcn.14007b800
mov rbx, rax
mov qword [rbp - 0x19], rax
mov qword [rbp - 9], rsi
mov qword [rbp - 1], r15
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.140296c90
mov byte [rbx + rsi], r13b
call fcn.14029cb50
mov rdi, rax
lea rbx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rbx, qword [rbp - 0x19]
mov dword [rax], r13d
mov r8d, 0xa
lea rdx, [rbp - 0x39]
mov rcx, rbx
call fcn.1402a5934
mov esi, eax
cmp rbx, qword [rbp - 0x39]
je 0x14008d3a1
cmp dword [rdi], 0x22
je 0x14008d3ae
mov ecx, gethostbyaddr
call fcn.1402958e0
mov rbx, rax
mov qword [rbp - 0x39], rax
test rax, rax
je 0x14008d153
mov dword [rax], esi
lea rcx, [rax + 8]
lea rdx, [rbp + 7]
call fcn.14007e350
lea rax, [0x14008f990]
mov qword [rbx + 0x28], rax
jmp 0x14008d156
mov rbx, r13
mov qword [rbp - 0x39], rbx
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov r9, rbx
lea r8, [0x14008a1d0]
xor edx, edx
xor ecx, ecx
call fcn.14029ec88
mov qword [rbp - 0x49], rax
test rax, rax
je 0x14008d3da
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x14008d1c3
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008d1be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008d3bb
call fcn.14029591c
mov qword [rbp - 9], r13
mov qword [rbp - 1], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x19], 0
cmp dword [rbp - 0x41], 0
je 0x14008d3c1
movaps xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x39], xmm0
lea rcx, [rbp - 0x39]
call fcn.140293ae8
test eax, eax
jne 0x14008d3cc
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x49], xmm0
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x21], reloc.WS2_32.dll_ntohs
lea edx, [rax + 0x20]
lea rcx, [rbp - 0x39]
call fcn.14007b800
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x29], reloc.WS2_32.dll_sendto
mov qword [rbp - 0x21], 0x1f
movups xmm0, xmmword [str.Connecting_to_server]
movups xmmword [rax], xmm0
mov ecx, dword [0x1402d0f68]
mov dword [rax + 0x10], ecx
mov byte [rax + 0x14], 0
lea rcx, [rbp - 0x39]
call fcn.1400890f0
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x14008d28c
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008d286
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008d3d4
call fcn.14029591c
nop
cmp dword [rbp - 0x41], 0
jne 0x14008d37d
jmp 0x14008d313
lea rcx, [rbp + 7]
cmp r13, 0x10
cmovae rcx, r12
cmp rbx, 3
jne 0x14008d2c1
mov r8, rbx
lea rdx, [0x1402d0ee4]
call fcn.140298510
test eax, eax
jne 0x14008d2c1
mov al, 1
jmp 0x14008d2c3
xor al, al
movzx r8d, al
xor r8, 1
lea r8, [r8*2 + 0x28]
lea rcx, str.UlConnection_Failed___WSA_failed_to_start_
lea rdx, str.UlConnection_Failed___DNS_Lookup_Failed_
test al, al
cmove rdx, rcx
lea rcx, [0x1403bc098]
call fcn.1400817c0
mov r8d, 1
lea rdx, [0x1402d0f44]
lea rcx, [0x1403bc280]
call fcn.1400817c0
mov byte [0x1403c66d1], 1
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x14008d34a
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008d345
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008d377
call fcn.14029591c
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1402959c0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14029ca04
nop
call fcn.14029eb24
nop
call fcn.140086890
int3
call fcn.14007b7e0
nop
call fcn.14029ca04
int3
call fcn.140086890
int3
call fcn.14007b7e0
nop
lea rcx, str.invalid_stoi_argument
call fcn.140291f44
int3
lea rcx, str.stoi_argument_out_of_range
call fcn.140291f8c
nop
call fcn.14029ca04
int3
mov ecx, 1
call fcn.140293eec
int3
mov ecx, eax
call fcn.140293eb0
int3
call fcn.14029ca04
nop
mov dword [rbp - 0x41], r13d
mov ecx, 6
call fcn.140293eec
int3