Function at 0x14001b010
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rsi, rcx
mov qword [rsp + 0x30], rbp
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
xor edi, edi
test rcx, rcx
je 0x140019bad
call sub.msvcrt.dll_free
mov qword [rbx], rdi
mov dword [rbx + 8], edi
mov dword [rbx + 0xc], edi
mov rbx, qword [rsi + 0x18]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140019bc7
call sub.msvcrt.dll_free
mov qword [rbx], rdi
mov dword [rbx + 8], edi
mov dword [rbx + 0xc], edi
mov rbx, qword [rsi + 0x20]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140019be1
call sub.msvcrt.dll_free
mov qword [rbx], rdi
mov dword [rbx + 8], edi
mov dword [rbx + 0xc], edi
mov rbx, qword [rsi + 0x28]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140019bfb
call sub.msvcrt.dll_free
mov qword [rbx], rdi
mov dword [rbx + 8], edi
mov dword [rbx + 0xc], edi
mov rax, qword [rsi]
mov rcx, rsi
mov qword [rsp + 0x40], r12
call qword [rax + 0x78]
mov rbx, qword [rsi + 0x10]
mov rbp, qword [rbx]
mov edi, eax
mov eax, dword [rbx + 0x14]
cmp edi, 0xffffffff
jne 0x140019c2a
mov rcx, rbp
call sub.msvcrt.dll_free
jmp 0x140019c67
movsxd r12, dword [rbx + 8]
cmp edi, r12d
jl 0x140019c67
add dword [rbx + 8], eax
cmp edi, dword [rbx + 8]
jge 0x140019c33
movsxd rcx, dword [rbx + 8]
call sub.msvcrt.dll_malloc
test r12d, r12d
mov qword [rbx], rax
jle 0x140019c67
test rax, rax
je 0x140019c5f
mov r8, r12
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rbp
call sub.msvcrt.dll_free
test rbp, rbp
jne 0x140019c77
mov rax, qword [rbx]
test rax, rax
je 0x140019c77
mov byte [rax], bpl
cmp edi, 0xffffffff
mov rbx, qword [rsi + 0x18]
mov rbp, qword [rbx]
mov eax, dword [rbx + 0x14]
jne 0x140019c90
mov rcx, rbp
call sub.msvcrt.dll_free
jmp 0x140019cd4
movsxd r12, dword [rbx + 8]
cmp edi, r12d
jl 0x140019cd4
nop
nop
add dword [rbx + 8], eax
cmp edi, dword [rbx + 8]
jge 0x140019ca0
movsxd rcx, dword [rbx + 8]
call sub.msvcrt.dll_malloc
test r12d, r12d
mov qword [rbx], rax
jle 0x140019cd4
test rax, rax
je 0x140019ccc
mov r8, r12
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rbp
call sub.msvcrt.dll_free
test rbp, rbp
jne 0x140019ce4
mov rax, qword [rbx]
test rax, rax
je 0x140019ce4
mov byte [rax], bpl
cmp edi, 0xffffffff
mov rbx, qword [rsi + 0x20]
mov rbp, qword [rbx]
mov eax, dword [rbx + 0x14]
jne 0x140019cfd
mov rcx, rbp
call sub.msvcrt.dll_free
jmp 0x140019d3a
movsxd r12, dword [rbx + 8]
cmp edi, r12d
jl 0x140019d3a
add dword [rbx + 8], eax
cmp edi, dword [rbx + 8]
jge 0x140019d06
movsxd rcx, dword [rbx + 8]
call sub.msvcrt.dll_malloc
test r12d, r12d
mov qword [rbx], rax
jle 0x140019d3a
test rax, rax
je 0x140019d32
mov r8, r12
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rbp
call sub.msvcrt.dll_free
test rbp, rbp
jne 0x140019d4a
mov rax, qword [rbx]
test rax, rax
je 0x140019d4a
mov byte [rax], bpl
cmp edi, 0xffffffff
mov rbx, qword [rsi + 0x28]
mov rbp, qword [rbx]
mov eax, dword [rbx + 0x14]
jne 0x140019d63
mov rcx, rbp
call sub.msvcrt.dll_free
jmp 0x140019da4
movsxd r12, dword [rbx + 8]
cmp edi, r12d
jl 0x140019da4
nop
add dword [rbx + 8], eax
cmp edi, dword [rbx + 8]
jge 0x140019d70
movsxd rcx, dword [rbx + 8]
call sub.msvcrt.dll_malloc
test r12d, r12d
mov qword [rbx], rax
jle 0x140019da4
test rax, rax
je 0x140019d9c
mov r8, r12
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rbp
call sub.msvcrt.dll_free
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
test rbp, rbp
mov rbp, qword [rsp + 0x30]
jne 0x140019dc3
mov rax, qword [rbx]
test rax, rax
je 0x140019dc3
mov byte [rax], 0
mov rax, qword [rsi + 0x10]
mov rbx, qword [rsp + 0x48]
lea rdx, [0x140027e59]
mov rcx, qword [rax]
mov rax, rdx
test rcx, rcx
cmovne rax, rcx
mov qword [rsi + 0x80], rax
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax]
mov rax, rdx
test rcx, rcx
cmovne rax, rcx
mov qword [rsi + 0x88], rax
mov rax, qword [rsi + 0x20]
mov rcx, qword [rax]
mov rax, rdx
test rcx, rcx
cmovne rax, rcx
mov qword [rsi + 0x90], rax
mov rax, qword [rsi + 0x28]
mov rcx, qword [rax]
test rcx, rcx
cmovne rdx, rcx
mov qword [rsi + 0x98], rdx
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx]
mov r12, rdx
mov rbx, rcx
call qword [rax + 0xc0]
mov rcx, qword [rbx + 0x48]
test rcx, rcx
mov dword [rbx + 8], eax
je 0x14001b04c
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14001b05a
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rbx + 0x240]
test rcx, rcx
je 0x14001b06b
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rdi, qword [rbx + 0x228]
xor r13d, r13d
test rdi, rdi
je 0x14001b092
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001b08a
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rdi], r13
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov r15d, 8
mov eax, 0x18
mov rdi, 0xffffffffffffffff
mov qword [rbx + 0x228], r13
mov qword [rbx + 0x48], r13
mov qword [rbx + 0x60], r13
mul r15
cmovo rax, rdi
mov qword [rbx + 0x240], r13
mov qword [rbx + 0x1f8], r12
mov rcx, rax
mov dword [rbx + 0x54], r13d
mov dword [rbx + 0x23c], r15d
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rbx + 0x240], rax
mov eax, 0x18
mul r15
cmovo rax, rdi
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
lea rdi, [0x14002f010]
lea r14, [0x14002f190]
mov qword [rbx + 0x60], rax
nop
nop
movsxd rax, dword [rdi]
mov rcx, qword [rbx + 0x240]
lea rbp, [rax + rax*2]
mov rax, qword [rdi]
mov qword [rcx + rbp*8], rax
mov rax, qword [rdi + 8]
mov qword [rcx + rbp*8 + 8], rax
mov rax, qword [rdi + 0x10]
mov qword [rcx + rbp*8 + 0x10], rax
mov rax, qword [rdi + 0x18]
mov rcx, qword [rbx + 0x60]
mov qword [rcx + rbp*8], rax
mov rax, qword [rdi + 0x20]
mov qword [rcx + rbp*8 + 8], rax
mov rax, qword [rdi + 0x28]
mov qword [rcx + rbp*8 + 0x10], rax
mov rax, qword [rbx + 0x240]
mov rsi, qword [rax + rbp*8 + 0x10]
mov rax, qword [rbx + 0x60]
test esi, 0xffff0000
mov qword [rax + rbp*8 + 0x10], rsi
jne 0x14001b1a8
lea rcx, [0x14002fed0]
movzx edx, si
call fcn.14001bf40
mov rcx, qword [rbx + 0x240]
bts esi, 0x10
mov qword [rcx + rbp*8 + 0x10], rax
lea rcx, [0x14002fed0]
mov edx, esi
call fcn.14001bf40
mov rcx, qword [rbx + 0x60]
mov qword [rcx + rbp*8 + 0x10], rax
add rdi, 0x30
cmp rdi, r14
jl 0x14001b110
mov eax, dword [rsp + 0x78]
mov rbp, 0xffffffffffffffff
mov dword [rbx + 0x68], r13d
mov dword [rbx + 0x6c], eax
mov eax, 4
mov dword [rbx + 0x40], r15d
mov dword [rbx + 0x3c], 0x20
mul r15
cmovo rax, rbp
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
lea ecx, [rbp + 0x19]
mov qword [rbx + 0x48], rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
test rax, rax
mov rdi, rax
je 0x14001b24e
mov esi, dword [rbx + 0x78]
mov qword [rax + 0x10], r12
mov dword [rax + 8], r15d
test esi, esi
mov ecx, WSAAsyncSelect
mov eax, 4
cmove esi, ecx
mul r15
cmovo rax, rbp
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov ecx, r13d
mov rdx, r13
mov qword [rdi], rax
nop
mov rax, qword [rdi]
add rdx, 4
mov word [rdx + rax - 2], cx
mov rax, qword [rdi]
add ecx, 1
cmp ecx, r15d
mov word [rdx + rax - 4], si
jl 0x14001b230
jmp 0x14001b251
mov rdi, r13
mov rcx, rbx
mov qword [rbx + 0x228], rdi
mov dword [rbx + 0x70], 1
mov dword [rbx + 0x220], 1
mov dword [rbx + 0x224], r13d
mov dword [rbx + 0x230], 1
mov dword [rbx + 0x234], 1
mov dword [rbx + 0x258], gethostbyname
mov dword [rbx + 0x7c], 0xffffff
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp 0x140019b80