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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [rdx]
mov r14, rcx
movzx ebx, byte [rdx + 0x24]
mov rsi, rdx
mov rdi, qword [rcx + 0x10]
not ebx
xor ecx, ecx
and ebx, 1
mov r13d, dword [rax]
mov eax, dword [rdx + 8]
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0xc0]
lea r12d, [rbx + r13]
mov dword [rsp + 0x34], ecx
add r12d, dword [rsp + 0xb8]
mov dword [rsp + 0x30], ecx
test eax, eax
je 0x180107405
mov r15d, r9d
sub r15d, eax
jmp 0x180107414
mov eax, dword [r14 + 0x38]
lea r15d, [rax + 1]
add eax, r12d
mov dword [r14 + 0x38], eax
mov eax, dword [r8 + 0xc]
mov qword [rsp + 0x48], rbp
lea ebp, [rax + 1]
test eax, eax
jne 0x180107428
mov ebp, dword [r8 + 8]
mov eax, dword [r14 + 0x44]
mov ecx, 5
mov r9d, dword [rsp + 0xb0]
dec eax
mov dword [r14 + 0x44], eax
test r9d, r9d
mov dword [rdx + 0x1c], eax
mov r8d, r15d
mov rdx, qword [rdx]
mov eax, 1
cmovne eax, ecx
mov dword [rsp + 0x98], ebp
mov rcx, r14
mov byte [rsp + 0x20], al
call fcn.1800cf8c0
xor r11d, r11d
test ebx, ebx
je 0x1801074cb
movsxd rcx, dword [rdi + 0x90]
lea edx, [r15 + r13]
mov r8d, dword [rsi + 0xc]
cmp dword [rdi + 0x94], ecx
jg 0x18010749d
mov r9d, edx
mov dword [rsp + 0x20], r11d
lea edx, [r11 + 0x7e]
mov rcx, rdi
call fcn.1800aba20
xor r11d, r11d
jmp 0x1801074cb
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x7e
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r11d
mov qword [rax + rcx*8 + 0x10], r11
cmp dword [rsp + 0xc0], 0
jne 0x18010754a
mov r9d, dword [rsp + 0xb8]
test r9d, r9d
jle 0x18010754a
mov r10, qword [r14 + 0x10]
lea edx, [r15 + r13]
mov r8d, dword [rsp + 0xa8]
add edx, ebx
movsxd rcx, dword [r10 + 0x90]
cmp dword [r10 + 0x94], ecx
jg 0x18010751b
mov dword [rsp + 0x20], r9d
mov rcx, r10
mov r9d, edx
mov edx, 0x4f
call fcn.1800aba20
jmp 0x18010754a
lea eax, [rcx + 1]
mov dword [r10 + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r10 + 0x88]
mov dword [rax + rcx*8], 0x4f
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r11
cmp dword [rsp + 0x90], 0
jle 0x1801079b1
mov r8, qword [rsp + 0xa0]
mov r9d, r15d
mov rdx, rsi
mov dword [rsp + 0x20], r12d
mov rcx, r14
call fcn.1801072e0
mov edx, dword [r14 + 0x38]
mov dword [rsp + 0x34], eax
mov eax, r13d
lea r8d, [rdx + 1]
add edx, dword [rsi + 8]
mov dword [r14 + 0x38], edx
sub eax, dword [rsi + 8]
movsxd rbp, dword [rdi + 0x90]
add eax, ebx
mov dword [rsp + 0xc0], r8d
mov dword [rsp + 0xb0], eax
test ebx, ebx
je 0x180107601
lea edx, [r15 + r13]
cmp dword [rdi + 0x94], ebp
jg 0x1801075dd
xor r11d, r11d
mov r8d, edx
xor r9d, r9d
mov dword [rsp + 0x20], r11d
mov rcx, rdi
lea edx, [r11 + 0x11]
call fcn.1800aba20
mov r8d, dword [rsp + 0xc0]
mov ebp, eax
jmp 0x180107665
lea eax, [rbp + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rbp*2]
mov rax, qword [rdi + 0x88]
add rcx, rbp
mov dword [rax + rcx*8], shutdown
jmp 0x180107654
mov edx, dword [rsi + 0xc]
cmp dword [rdi + 0x94], ebp
jg 0x180107632
xor r11d, r11d
mov r8d, edx
xor r9d, r9d
mov dword [rsp + 0x20], r11d
mov rcx, rdi
lea edx, [r11 + 0x78]
call fcn.1800aba20
mov r8d, dword [rsp + 0xc0]
mov ebp, eax
jmp 0x180107665
lea eax, [rbp + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rbp*2]
mov rax, qword [rdi + 0x88]
add rcx, rbp
mov dword [rax + rcx*8], 0x78
xor r9d, r9d
mov qword [rax + rcx*8 + 0x10], r9
mov qword [rax + rcx*8 + 8], r9
mov dword [rax + rcx*8 + 4], edx
movsxd rcx, dword [rdi + 0x90]
mov edx, dword [rsi + 8]
cmp dword [rdi + 0x94], ecx
jg 0x18010768d
mov dword [rsp + 0x20], edx
mov r9d, r15d
mov edx, 0x5a
mov rcx, rdi
call fcn.1800aba20
jmp 0x1801076be
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x5a
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rdi]
cmp byte [rax + 0x67], 0
je 0x1801076d0
lea rcx, [0x180254470]
jmp 0x1801076e3
movsxd rax, dword [rsi + 0x18]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
lea rcx, [rax + rcx*8]
mov rax, qword [r14]
mov qword [rsp + 0x38], rcx
cmp byte [rax + 0x67], 0
jne 0x180107c22
mov rbx, qword [rcx + 0x10]
xor edx, edx
mov eax, dword [rsp + 0xb8]
add eax, dword [rsp + 0xb0]
mov dword [rcx + 8], eax
movzx r8d, word [rbx + 6]
mov rcx, qword [rbx + 0x18]
call fcn.1801db010
mov r9d, 0xfffffff8
mov r8, rbx
mov rcx, rdi
lea edx, [r9 + 7]
call fcn.1800acab0
movzx r9d, word [rbx + 8]
mov rcx, r14
movzx eax, word [rbx + 6]
mov r8d, dword [rsp + 0x90]
sub r9d, eax
mov rdx, qword [rsi]
dec r9d
call fcn.180109300
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 0x10], rax
movsxd rbx, dword [rdi + 0x90]
lea edx, [rbx + 1]
cmp dword [rdi + 0x94], ebx
jg 0x180107787
xor r9d, r9d
mov dword [rsp + 0x20], edx
mov r8d, edx
mov rcx, rdi
lea edx, [r9 + 0xe]
call fcn.1800aba20
xor r9d, r9d
jmp 0x1801077b4
mov rax, qword [rdi + 0x88]
lea rcx, [rbx + rbx*2]
mov dword [rdi + 0x90], edx
xor r9d, r9d
mov dword [rax + rcx*8], reloc.WS2_32.dll_ntohl
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r9
dec dword [r14 + 0x44]
mov eax, dword [r14 + 0x44]
mov dword [rsi + 0x14], eax
inc dword [r14 + 0x38]
mov edx, dword [r14 + 0x38]
mov r8d, dword [rsi + 0x14]
mov dword [rsi + 0x10], edx
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x1801077fa
mov dword [rsp + 0x20], r9d
mov rcx, rdi
mov r9d, r8d
mov r8d, edx
mov edx, 0xa
call fcn.1800aba20
xor r9d, r9d
jmp 0x180107828
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0xa
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
movsxd rcx, dword [rdi + 0x90]
mov edx, dword [rsi + 0xc]
cmp dword [rdi + 0x94], ecx
jg 0x180107857
mov dword [rsp + 0x20], r9d
mov r8d, edx
xor r9d, r9d
mov edx, 0x92
mov rcx, rdi
call fcn.1800aba20
xor r9d, r9d
jmp 0x180107884
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], __WSAFDIsSet
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r9
mov edx, dword [rsp + 0x98]
test edx, edx
je 0x1801078ea
movsxd rcx, dword [rdi + 0x90]
mov r8d, dword [rsi + 0x1c]
cmp dword [rdi + 0x94], ecx
jg 0x1801078bc
mov dword [rsp + 0x20], r9d
mov rcx, rdi
mov r9d, r8d
mov r8d, edx
mov edx, send
call fcn.1800aba20
jmp 0x1801078ea
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], shutdown
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rdi]
mov edx, dword [rdi + 0x90]
cmp byte [rax + 0x67], 0
je 0x180107902
lea rax, [0x180254470]
jmp 0x180107914
movsxd rax, ebp
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
lea rax, [rax + rcx*8]
mov r9d, dword [rsp + 0xc0]
mov dword [rax + 8], edx
mov r10, qword [r14 + 0x10]
mov r8d, dword [rsi + 8]
movsxd rcx, dword [r10 + 0x90]
cmp dword [r10 + 0x94], ecx
jg 0x18010794e
mov dword [rsp + 0x20], r8d
mov edx, 0x4f
mov r8d, r15d
mov rcx, r10
call fcn.1800aba20
jmp 0x180107980
lea eax, [rcx + 1]
xor edx, edx
mov dword [r10 + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r10 + 0x88]
mov dword [rax + rcx*8], 0x4f
mov dword [rax + rcx*8 + 4], r15d
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], rdx
mov rax, qword [rdi]
mov edx, dword [rdi + 0x90]
cmp byte [rax + 0x67], 0
je 0x180107998
lea rax, [0x180254470]
jmp 0x1801079a7
mov rax, qword [rdi + 0x88]
lea rcx, [rbx + rbx*2]
lea rax, [rax + rcx*8]
mov ebp, dword [rsp + 0x98]
mov dword [rax + 8], edx
test ebp, ebp
je 0x180107b42
movsxd rcx, dword [rdi + 0x90]
mov ebx, dword [rsi + 0xc]
lea edx, [rcx + 4]
cmp dword [rdi + 0x94], ecx
jg 0x1801079ed
xor r11d, r11d
mov r9d, edx
mov r8d, ebp
mov dword [rsp + 0x20], r11d
mov rcx, rdi
lea edx, [r11 + 0x3c]
call fcn.1800aba20
xor r9d, r9d
jmp 0x180107a1d
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x3c
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x180107a48
mov dword [rsp + 0x20], r9d
mov r8d, ebx
xor r9d, r9d
mov rcx, rdi
lea edx, [r9 + 0x20]
call fcn.1800aba20
xor r9d, r9d
jmp 0x180107a75
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x20
mov dword [rax + rcx*8 + 4], ebx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r9
mov ebp, dword [rsp + 0x90]
sub r13d, ebp
movsxd r8, dword [rdi + 0x90]
mov dword [rsp + 0x30], r8d
lea edx, [r15 + rbp]
cmp dword [rdi + 0x94], r8d
jg 0x180107abc
xor r9d, r9d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], edx
mov r8d, ebx
mov rcx, rdi
lea edx, [r9 + 0x28]
call fcn.1800aba80
mov dword [rsp + 0x30], eax
xor r9d, r9d
jmp 0x180107aea
lea rcx, [r8 + r8*2]
lea eax, [r8 + 1]
mov dword [rdi + 0x90], eax
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0xfd28
mov dword [rax + rcx*8 + 4], ebx
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], edx
mov dword [rax + rcx*8 + 0x10], r13d
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x180107b13
mov dword [rsp + 0x20], r9d
mov r8d, ebx
xor r9d, r9d
mov edx, 0x82
mov rcx, rdi
call fcn.1800aba20
jmp 0x180107b49
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x82
mov dword [rax + rcx*8 + 4], ebx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r9
jmp 0x180107b49
mov ebp, dword [rsp + 0x90]
mov r10d, dword [rsp + 0x34]
test r10d, r10d
jne 0x180107b71
mov r8, qword [rsp + 0xa0]
mov r9d, r15d
mov rdx, rsi
mov dword [rsp + 0x20], r12d
mov rcx, r14
call fcn.1801072e0
mov r10d, eax
movzx edx, byte [rsi + 0x24]
lea r9d, [r15 + rbp]
movsxd rcx, dword [rdi + 0x90]
and edx, 1
mov r8d, dword [rsi + 0xc]
add edx, 0x8a
sub r12d, ebp
cmp dword [rdi + 0x94], ecx
jg 0x180107baf
mov dword [rsp + 0x28], r12d
mov rcx, rdi
mov dword [rsp + 0x20], r9d
mov r9d, r10d
call fcn.1800aba80
jmp 0x180107be8
lea eax, [rcx + 1]
xor r11d, r11d
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov byte [rax + rcx*8], dl
mov word [rax + rcx*8 + 2], r11w
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r10d
mov dword [rax + rcx*8 + 0xc], r9d
mov dword [rax + rcx*8 + 0x10], r12d
mov byte [rax + rcx*8 + 1], 0xfd
movsxd rcx, dword [rsp + 0x30]
test ecx, ecx
je 0x180107c22
mov edx, dword [rsi + 0x20]
test edx, edx
jne 0x180107bfe
mov edx, dword [rdi + 0x90]
mov rax, qword [rdi]
cmp byte [rax + 0x67], 0
je 0x180107c10
lea rax, [0x180254470]
jmp 0x180107c1f
mov rax, qword [rdi + 0x88]
lea rcx, [rcx + rcx*2]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret