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

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rbx, qword [rcx + 0x10]
mov r15d, dword [r8 + 0x1c]
mov r14d, r9d
mov rsi, qword [rbx + 0x30]
mov r13, rdx
mov rdi, rcx
movsxd rbp, dword [rsi + 0x80]
mov dword [rsp + 0x3c], r15d
lea eax, [rbp + 1]
mov dword [rsi + 0x80], eax
lea eax, [rbp - 1]
test ebp, eax
jne 0x18007aef8
mov rdx, qword [rsi + 0x88]
mov rcx, qword [rsi]
lea eax, [rbp + rbp + 1]
movsxd r8, eax
shl r8, 2
call fcn.180012710
mov r8, qword [rsp + 0xa0]
mov qword [rsi + 0x88], rax
mov rcx, qword [rsi + 0x88]
or edx, 0xffffffff
test rcx, rcx
je 0x18007af0a
mov dword [rcx + rbp*4], edx
mov rax, qword [rsp + 0xb0]
mov r12, qword [r8]
sub edx, ebp
movzx ebp, byte [rax]
mov ecx, dword [rax + 4]
xor r9d, r9d
mov dword [rsp + 0x40], edx
mov edx, dword [r8 + 0x14]
mov esi, r9d
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x30], ecx
test edx, edx
je 0x18007b024
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov r8d, dword [r8 + 0x10]
cmp dword [rax + 0x64], ecx
jg 0x18007af66
mov dword [rsp + 0x20], r9d
mov r9d, edx
mov rcx, rbx
mov edx, ntohs
call fcn.180035690
xor r9d, r9d
jmp 0x18007af92
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], sil
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], r9
mov word [rax + rcx*8], ntohs
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18007afbb
xor r8d, r8d
mov dword [rsp + 0x20], r9d
mov rcx, rbx
lea edx, [r8 + 0xd]
mov r9d, r15d
call fcn.180035690
xor r9d, r9d
jmp 0x18007afe8
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], sil
mov dword [rax + rcx*8 + 4], r9d
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov word [rax + rcx*8], ntohs
mov rdx, qword [rbx + 0x30]
mov r8, qword [rsp + 0xa0]
mov rcx, qword [rdx + 0x88]
test rcx, rcx
je 0x18007b014
movsxd rax, dword [r8 + 0x14]
lea rax, [rax*4 + 4]
sub rcx, rax
mov eax, dword [rbx + 0x3c]
mov dword [rcx], eax
mov eax, dword [rbx + 0x3c]
dec eax
mov dword [rdx + 0x6c], eax
mov rax, qword [rsp + 0xb0]
mov r15d, dword [r8 + 0xc]
mov dword [rsp + 0x34], r15d
cmp ebp, 9
je 0x18007b084
cmp ebp, 0xd
je 0x18007b084
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x18007b047
inc dword [rdi + 0x58]
mov ecx, dword [rdi + 0x58]
jmp 0x18007b053
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov ecx, dword [rdi + rax*4 + 0x28]
movzx eax, byte [rdi + 0x1f]
mov dword [rsp + 0x90], ecx
test al, al
jne 0x18007b070
inc dword [rdi + 0x58]
mov ebp, dword [rdi + 0x58]
mov r14d, 1
jmp 0x18007b08f
dec al
mov r14d, 1
movzx eax, al
mov byte [rdi + 0x1f], al
mov ebp, dword [rdi + rax*4 + 0x28]
jmp 0x18007b08f
mov ebp, dword [rax + 8]
mov dword [rsp + 0x90], r9d
mov r12d, dword [r12]
sub r12d, dword [r8 + 8]
test byte [r8 + 0x20], 1
mov dword [rsp + 0x44], r12d
je 0x18007b1dc
mov r15d, dword [rdi + 0x54]
inc dword [rdi + 0x58]
mov r12d, dword [rdi + 0x58]
lea eax, [r15 + 1]
mov dword [rdi + 0x54], eax
cmp dword [r8 + 0x14], esi
je 0x18007b0c9
mov rcx, rdi
call fcn.18004e470
mov esi, eax
mov eax, dword [rsp + 0x44]
mov r9d, r12d
mov r8d, r15d
lea ecx, [rax + r14 + 1]
mov edx, 0x3c
mov dword [rsp + 0x20], ecx
mov rcx, rbx
call fcn.1800356f0
test esi, esi
je 0x18007b127
mov ecx, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
dec ecx
mov dword [rax + 0x6c], ecx
mov edx, dword [rbx + 0x3c]
test esi, esi
jns 0x18007b103
lea esi, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
je 0x18007b115
lea rax, [0x1802423a0]
jmp 0x18007b124
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov rax, qword [rbx + 0x30]
movsxd rdx, dword [rbx + 0x3c]
mov r8d, dword [rsp + 0x34]
xor r11d, r11d
cmp dword [rax + 0x64], edx
jg 0x18007b156
mov r9d, dword [rsp + 0x3c]
lea edx, [r11 + 0x6a]
mov rcx, rbx
mov dword [rsp + 0x20], r11d
call fcn.180035690
mov edx, eax
jmp 0x18007b188
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov dword [rax + rcx*8 + 4], r8d
mov r8d, dword [rsp + 0x3c]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 0xc], r11d
mov qword [rax + rcx*8 + 0x10], r11
mov word [rax + rcx*8], WSAGetLastError
mov dword [rax + rcx*8 + 8], r8d
mov r8d, dword [r13 + 0x14]
lea esi, [rdx + 1]
mov dword [rsp + 0x38], esi
test r8d, r8d
jle 0x18007b1b2
mov r9d, dword [rsp + 0x40]
mov edx, 0x8a
mov rcx, rbx
mov dword [rsp + 0x20], 1
call fcn.1800356f0
mov r8d, dword [rsp + 0x34]
mov r9d, r12d
mov edx, 0x64
mov rcx, rbx
mov dword [rsp + 0x20], r15d
call fcn.1800356f0
mov r12d, dword [rsp + 0x44]
xor r8d, r8d
mov r11d, r8d
jmp 0x18007b26c
mov rax, qword [rbx + 0x30]
movsxd rdx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], edx
jg 0x18007b207
mov dword [rsp + 0x20], r9d
mov r9d, dword [rsp + 0x3c]
mov r8d, r15d
mov edx, WSAGetLastError
mov rcx, rbx
call fcn.180035690
mov edx, eax
jmp 0x18007b239
mov r8d, dword [rsp + 0x3c]
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], sil
mov dword [rax + rcx*8 + 4], r15d
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov word [rax + rcx*8], WSAGetLastError
mov r8d, dword [r13 + 0x14]
lea eax, [rdx + 1]
mov dword [rsp + 0x38], eax
test r8d, r8d
jle 0x18007b263
mov r9d, dword [rsp + 0x40]
mov edx, 0x8a
mov rcx, rbx
mov dword [rsp + 0x20], 1
call fcn.1800356f0
mov r11d, 1
xor r8d, r8d
test r14d, r14d
jle 0x18007b2e6
mov r13d, ebp
lea esi, [r11 + r12]
sub r13d, r11d
sub r13d, r12d
mov r12d, r14d
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18007b2af
lea eax, [r13 + rsi]
mov r9d, esi
mov r8d, r15d
mov edx, 0x2f
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.180035690
xor r8d, r8d
jmp 0x18007b2df
lea rdx, [rcx + rcx*2]
lea eax, [rcx + 1]
mov rcx, qword [rbx + 8]
mov dword [rbx + 0x3c], eax
lea eax, [r13 + rsi]
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 4], r15d
mov dword [rcx + rdx*8 + 8], esi
mov qword [rcx + rdx*8 + 0x10], r8
mov dword [rcx + rdx*8 + 0xc], eax
mov word [rcx + rdx*8], gethostbyname
inc esi
dec r12
jne 0x18007b281
mov edx, dword [rsp + 0x48]
mov ecx, edx
sub ecx, 0xa
je 0x18007b644
dec ecx
mov rax, qword [rbx + 0x30]
je 0x18007b4f5
dec ecx
movsxd rcx, dword [rbx + 0x3c]
je 0x18007b421
mov rsi, qword [rsp + 0xb0]
cmp edx, 9
jne 0x18007b3ce
mov edx, dword [rsi + 8]
mov r12d, dword [rsp + 0xa8]
cmp dword [rax + 0x64], ecx
jg 0x18007b348
mov dword [rsp + 0x20], r8d
mov r8d, edx
mov r9d, r12d
mov edx, 0x21
mov rcx, rbx
call fcn.180035690
jmp 0x18007b374
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov word [rax + rcx*8], 0x21
mov r9d, dword [rsi + 8]
lea rcx, [rdi + 0x9c]
mov edx, 0xa
lea r10d, [r9 + r12 - 1]
xor r11d, r11d
nop dword [rax]
mov r8d, dword [rcx]
cmp r8d, r9d
jl 0x18007b3bd
cmp r8d, r10d
jg 0x18007b3bd
cmp byte [rcx - 6], r11b
je 0x18007b3ba
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x18007b3b6
movzx eax, al
mov dword [rdi + rax*4 + 0x28], r8d
inc byte [rdi + 0x1f]
mov byte [rcx - 6], r11b
mov dword [rcx], r11d
add rcx, 0x14
dec rdx
jne 0x18007b390
xor r13d, r13d
jmp 0x18007b6f3
mov edx, dword [rsi + 4]
xor r13d, r13d
cmp dword [rax + 0x64], ecx
jg 0x18007b3f5
mov r8d, edx
lea edx, [r13 + 0x12]
xor r9d, r9d
mov rcx, rbx
mov dword [rsp + 0x20], r13d
call fcn.180035690
jmp 0x18007b6f3
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], r13
mov qword [rax + rcx*8 + 0x10], r13
mov word [rax + rcx*8], reloc.WS2_32.dll_select
jmp 0x18007b6f3
mov r12d, dword [rsp + 0x90]
xor r13d, r13d
cmp dword [rax + 0x64], ecx
jg 0x18007b450
mov r8d, dword [rsp + 0x30]
lea edx, [r13 + 0x4a]
mov r9d, r12d
mov rcx, rbx
mov dword [rsp + 0x20], r13d
call fcn.180035690
mov edx, dword [rsp + 0x30]
jmp 0x18007b480
mov edx, dword [rsp + 0x30]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r13d
mov qword [rax + rcx*8 + 0x10], r13
mov word [rax + rcx*8], 0x4a
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18007b4a7
mov r8d, edx
mov r9d, ebp
mov rcx, rbx
mov edx, 0x4b
mov dword [rsp + 0x20], r12d
call fcn.180035690
jmp 0x18007b4d2
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r13
mov word [rax + rcx*8], 0x4b
mov rax, qword [rbx]
cmp byte [rax + 0x55], 0
jne 0x18007b6fb
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 - 0x15], 8
jmp 0x18007b6fb
movsxd rdx, dword [rbx + 0x3c]
mov rsi, qword [rsp + 0xb0]
mov r12d, dword [rsp + 0x90]
cmp dword [rax + 0x64], edx
jg 0x18007b52f
mov r9d, 1
mov r8d, ebp
mov rcx, rbx
lea edx, [r9 + 0x30]
mov dword [rsp + 0x20], r12d
call fcn.180035690
xor r13d, r13d
mov edx, eax
jmp 0x18007b561
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
xor r13d, r13d
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], 1
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r13
mov word [rax + rcx*8], gethostbyname
mov rcx, qword [rbx]
cmp byte [rcx + 0x55], 0
je 0x18007b57a
lea r8, [rsi + 1]
mov edx, 1
call fcn.180036130
jmp 0x18007b5a4
test edx, edx
jns 0x18007b583
mov edx, dword [rbx + 0x3c]
dec edx
movsxd rax, edx
lea r8, [rsi + 1]
mov r9d, 1
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
lea rdx, [rax + rcx*8]
mov rcx, rbx
call fcn.1800363f0
lea rcx, [rdi + 0x9c]
mov edx, 0xa
mov r8d, dword [rcx]
cmp r8d, ebp
jl 0x18007b5da
jg 0x18007b5da
cmp byte [rcx - 6], 0
je 0x18007b5d7
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x18007b5d3
movzx eax, al
mov dword [rdi + rax*4 + 0x28], r8d
inc byte [rdi + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], r13d
add rcx, 0x14
dec rdx
jne 0x18007b5b0
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18007b60f
mov r8d, dword [rsp + 0x30]
mov r9d, r12d
mov edx, WSAGetLastError
mov rcx, rbx
mov dword [rsp + 0x20], r13d
call fcn.180035690
jmp 0x18007b6fb
mov edx, dword [rsp + 0x30]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r13d
mov qword [rax + rcx*8 + 0x10], r13
mov word [rax + rcx*8], WSAGetLastError
jmp 0x18007b6fb
mov r10, qword [rdi + 0x10]
mov rax, qword [r10 + 0x30]
movsxd rcx, dword [r10 + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18007b677
mov r9d, dword [rsp + 0x30]
mov r8d, ebp
mov edx, 0x1d
mov rcx, r10
mov dword [rsp + 0x20], 1
call fcn.180035690
xor r13d, r13d
jmp 0x18007b6ad
mov edx, dword [rsp + 0x30]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [r10 + 0x3c], eax
mov rax, qword [r10 + 8]
xor r13d, r13d
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], 1
mov qword [rax + rcx*8 + 0x10], r13
mov word [rax + rcx*8], 0x1d
lea rcx, [rdi + 0x9c]
mov edx, 0xa
nop dword [rax]
mov r8d, dword [rcx]
cmp r8d, ebp
jl 0x18007b6ea
jg 0x18007b6ea
cmp byte [rcx - 6], 0
je 0x18007b6e7
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x18007b6e3
movzx eax, al
mov dword [rdi + rax*4 + 0x28], r8d
inc byte [rdi + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], r13d
add rcx, 0x14
dec rdx
jne 0x18007b6c0
mov r12d, dword [rsp + 0x90]
test r12d, r12d
je 0x18007b772
test ebp, ebp
je 0x18007b737
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x18007b737
mov ecx, r13d
lea rax, [rdi + 0x90]
cmp dword [rax + 0xc], ebp
je 0x18007b733
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x18007b717
movzx eax, dl
mov dword [rdi + rax*4 + 0x28], ebp
inc byte [rdi + 0x1f]
jmp 0x18007b737
mov byte [rax + 6], 1
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x18007b772
mov ecx, r13d
lea rax, [rdi + 0x90]
nop word [rax + rax]
cmp dword [rax + 0xc], r12d
je 0x18007b76e
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x18007b750
movzx eax, dl
mov dword [rdi + rax*4 + 0x28], r12d
inc byte [rdi + 0x1f]
jmp 0x18007b772
mov byte [rax + 6], 1
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rdx + 0x88]
test rcx, rcx
je 0x18007b797
movsxd rax, dword [rsp + 0x40]
lea rax, [rax*4 + 4]
sub rcx, rax
mov eax, dword [rbx + 0x3c]
mov dword [rcx], eax
mov eax, dword [rbx + 0x3c]
mov rdi, qword [rsp + 0xa0]
mov r8d, dword [rsp + 0x34]
dec eax
test byte [rdi + 0x20], 1
mov dword [rdx + 0x6c], eax
movsxd rcx, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
je 0x18007b7ee
cmp dword [rax + 0x64], ecx
jg 0x18007b7d8
mov r9d, dword [rsp + 0x38]
mov edx, 3
mov rcx, rbx
mov dword [rsp + 0x20], r13d
call fcn.180035690
jmp 0x18007b83c
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov word [rax + rcx*8], 3
jmp 0x18007b820
cmp dword [rax + 0x64], ecx
jg 0x18007b80c
mov r9d, dword [rsp + 0x38]
mov edx, 7
mov rcx, rbx
mov dword [rsp + 0x20], r13d
call fcn.180035690
jmp 0x18007b83c
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov word [rax + rcx*8], 7
mov edx, dword [rsp + 0x38]
mov qword [rax + rcx*8 + 0x10], r13
mov dword [rax + rcx*8 + 0xc], r13d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 4], r8d
mov byte [rax + rcx*8 + 3], 0
mov edx, dword [rdi + 0x10]
test edx, edx
je 0x18007b894
mov rax, qword [rbx + 0x30]
movsxd rcx, dword [rbx + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18007b869
xor r9d, r9d
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0xf]
mov dword [rsp + 0x20], r13d
call fcn.180035690
jmp 0x18007b894
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx + 8]
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r13
mov word [rax + rcx*8], reloc.WS2_32.dll_ntohs
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rdx + 0x88]
test rcx, rcx
je 0x18007b8b9
movsxd rax, dword [rsp + 0x3c]
lea rax, [rax*4 + 4]
sub rcx, rax
mov eax, dword [rbx + 0x3c]
mov dword [rcx], eax
mov eax, dword [rbx + 0x3c]
mov rbx, qword [rsp + 0x98]
dec eax
mov dword [rdx + 0x6c], eax
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret