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

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [rcx]
mov qword [r11 + 8], rbx
mov rbx, qword [rcx + 0x10]
mov qword [r11 - 0x18], r14
mov r14, qword [rcx + 0x1b8]
mov qword [r11 - 0x20], r15
test r14, r14
mov r15, rcx
mov qword [rsp + 0x30], rax
je 0x490c25
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rdi
mov qword [r11 - 8], r12
xor esi, esi
mov qword [r11 - 0x10], r13
nop
nop
movsxd r8, dword [r14 + 0x10]
mov rax, qword [rax + 0x20]
mov r12d, dword [r14 + 0x14]
mov r9, r8
xor edx, edx
mov rcx, r15
shl r9, 5
mov dword [rsp + 0x20], getservbyname
mov r9, qword [r9 + rax + 0x18]
mov r9, qword [r9 + 0x68]
call fcn.00490560
mov rax, qword [rbx + 0x30]
movsxd rdi, dword [rbx + 0x3c]
cmp dword [rax + 0x60], edi
jg 0x49081c
mov edx, 1
mov rcx, rbx
call fcn.00441a80
test eax, eax
jne 0x49084c
mov rcx, qword [rbx + 8]
inc dword [rbx + 0x3c]
lea rdx, [rdi + rdi*2]
lea eax, [r12 + 1]
mov byte [rcx + rdx*8], Ordinal_30
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 4], esi
mov dword [rcx + rdx*8 + 8], r12d
mov qword [rcx + rdx*8 + 0x10], rsi
mov dword [rcx + rdx*8 + 0xc], eax
mov byte [rcx + rdx*8 + 1], 0
mov rax, qword [r14 + 8]
movsxd r13, dword [rbx + 0x3c]
mov rbp, qword [rax]
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x60], r13d
jg 0x490879
mov edx, 1
mov rcx, rbx
call fcn.00441a80
test eax, eax
je 0x490879
mov eax, 1
jmp 0x4908ac
mov rcx, qword [rbx + 8]
inc dword [rbx + 0x3c]
lea rdx, [r13 + r13*2]
lea eax, [r12 - 1]
mov byte [rcx + rdx*8], 0x61
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 8], eax
mov dword [rcx + rdx*8 + 4], esi
mov dword [rcx + rdx*8 + 0xc], esi
mov eax, r13d
mov qword [rcx + rdx*8 + 0x10], rsi
mov byte [rcx + rdx*8 + 1], 0
mov rdi, qword [rbx + 8]
mov rcx, qword [rbx]
test rdi, rdi
je 0x49092b
cmp byte [rcx + 0x50], 0
jne 0x49092b
test eax, eax
jns 0x4908c7
mov eax, dword [rbx + 0x3c]
dec eax
cdqe
lea rsi, [rax + rax*2]
movsx edx, byte [rdi + rsi*8 + 1]
mov r8, qword [rdi + rsi*8 + 0x10]
call fcn.00441fd0
xor r11d, r11d
test rbp, rbp
mov qword [rdi + rsi*8 + 0x10], r11
jne 0x4908f7
mov qword [rdi + rsi*8 + 0x10], r11
mov byte [rdi + rsi*8 + 1], r11b
xor esi, esi
jmp 0x490935
cmp byte [rbp], r11b
mov rax, rbp
je 0x490908
inc rax
cmp byte [rax], r11b
jne 0x490900
mov rcx, qword [rbx]
sub eax, ebp
mov rdx, rbp
and eax, 0x3fffffff
movsxd r8, eax
call fcn.0043b390
mov byte [rdi + rsi*8 + 1], 0xff
mov qword [rdi + rsi*8 + 0x10], rax
xor esi, esi
jmp 0x490935
mov r8, rbp
xor edx, edx
call fcn.00441fd0
mov rax, qword [rbx + 0x30]
movsxd rdi, dword [rbx + 0x3c]
cmp dword [rax + 0x60], edi
jg 0x490953
mov edx, 1
mov rcx, rbx
call fcn.00441a80
test eax, eax
jne 0x490981
mov rcx, qword [rbx + 8]
inc dword [rbx + 0x3c]
lea rdx, [rdi + rdi*2]
lea eax, [r13 + 9]
mov byte [rcx + rdx*8], WSAGetLastError
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 4], esi
mov dword [rcx + rdx*8 + 0xc], esi
mov qword [rcx + rdx*8 + 0x10], rsi
mov dword [rcx + rdx*8 + 8], eax
mov byte [rcx + rdx*8 + 1], 0
mov rax, qword [rbx + 0x30]
movsxd rdi, dword [rbx + 0x3c]
cmp dword [rax + 0x60], edi
jg 0x49099f
mov edx, 1
mov rcx, rbx
call fcn.00441a80
test eax, eax
jne 0x4909ca
mov rax, qword [rbx + 8]
inc dword [rbx + 0x3c]
lea rcx, [rdi + rdi*2]
mov byte [rax + rcx*8], Ordinal_50
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], rsi
mov byte [rax + rcx*8 + 1], 0
mov rax, qword [rbx + 0x30]
movsxd rdi, dword [rbx + 0x3c]
cmp dword [rax + 0x60], edi
jg 0x4909e8
mov edx, 1
mov rcx, rbx
call fcn.00441a80
test eax, eax
jne 0x490a1c
mov rcx, qword [rbx + 8]
inc dword [rbx + 0x3c]
lea rdx, [rdi + rdi*2]
lea eax, [r12 - 1]
mov byte [rcx + rdx*8], Ordinal_79
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 4], eax
lea eax, [r13 + 7]
mov dword [rcx + rdx*8 + 0xc], r12d
mov qword [rcx + rdx*8 + 0x10], rsi
mov byte [rcx + rdx*8 + 1], 0
mov dword [rcx + rdx*8 + 8], eax
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x490a32
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 0x10
mov rax, qword [rbx + 0x30]
movsxd rdi, dword [rbx + 0x3c]
cmp dword [rax + 0x60], edi
jg 0x490a50
mov edx, 1
mov rcx, rbx
call fcn.00441a80
test eax, eax
jne 0x490a7f
mov rcx, qword [rbx + 8]
inc dword [rbx + 0x3c]
lea rdx, [rdi + rdi*2]
lea eax, [r12 + 1]
mov byte [rcx + rdx*8], 0x67
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 4], esi
mov dword [rcx + rdx*8 + 0xc], esi
mov qword [rcx + rdx*8 + 0x10], rsi
mov dword [rcx + rdx*8 + 8], eax
mov byte [rcx + rdx*8 + 1], 0
mov rax, qword [rbx + 0x30]
movsxd rdi, dword [rbx + 0x3c]
cmp dword [rax + 0x60], edi
jg 0x490a9d
mov edx, 1
mov rcx, rbx
call fcn.00441a80
test eax, eax
jne 0x490acc
mov rax, qword [rbx + 8]
inc dword [rbx + 0x3c]
lea rcx, [rdi + rdi*2]
mov byte [rax + rcx*8], Ordinal_50
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], 1
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], rsi
mov byte [rax + rcx*8 + 1], 0
mov rax, qword [rbx + 0x30]
movsxd rdi, dword [rbx + 0x3c]
cmp dword [rax + 0x60], edi
jg 0x490aea
mov edx, 1
mov rcx, rbx
call fcn.00441a80
test eax, eax
jne 0x490b18
mov rcx, qword [rbx + 8]
inc dword [rbx + 0x3c]
lea rdx, [rdi + rdi*2]
lea eax, [r13 + 9]
mov byte [rcx + rdx*8], reloc.WS2_32.dll_recv
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 4], esi
mov dword [rcx + rdx*8 + 0xc], esi
mov qword [rcx + rdx*8 + 0x10], rsi
mov dword [rcx + rdx*8 + 8], eax
mov byte [rcx + rdx*8 + 1], 0
mov rax, qword [rbx + 0x30]
movsxd rdi, dword [rbx + 0x3c]
cmp dword [rax + 0x60], edi
jg 0x490b36
mov edx, 1
mov rcx, rbx
call fcn.00441a80
test eax, eax
jne 0x490b64
mov rcx, qword [rbx + 8]
inc dword [rbx + 0x3c]
lea rdx, [rdi + rdi*2]
lea eax, [r13 + 2]
mov byte [rcx + rdx*8], 9
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 4], esi
mov dword [rcx + rdx*8 + 0xc], esi
mov qword [rcx + rdx*8 + 0x10], rsi
mov dword [rcx + rdx*8 + 8], eax
mov byte [rcx + rdx*8 + 1], 0
mov rax, qword [rbx + 0x30]
movsxd rdi, dword [rbx + 0x3c]
cmp dword [rax + 0x60], edi
jg 0x490b82
mov edx, 1
mov rcx, rbx
call fcn.00441a80
test eax, eax
jne 0x490bad
mov rax, qword [rbx + 8]
inc dword [rbx + 0x3c]
lea rcx, [rdi + rdi*2]
mov byte [rax + rcx*8], Ordinal_27
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], rsi
mov byte [rax + rcx*8 + 1], 0
mov rax, qword [rbx + 0x30]
movsxd rdi, dword [rbx + 0x3c]
cmp dword [rax + 0x60], edi
jg 0x490bcb
mov edx, 1
mov rcx, rbx
call fcn.00441a80
test eax, eax
jne 0x490bf5
mov rax, qword [rbx + 8]
inc dword [rbx + 0x3c]
lea rcx, [rdi + rdi*2]
mov byte [rax + rcx*8], 0x3d
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], rsi
mov byte [rax + rcx*8 + 1], 0
mov r14, qword [r14]
mov rax, qword [rsp + 0x30]
test r14, r14
jne 0x4907d0
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov r15, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret