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

Disassembly:
mov rax, rsp
sub rsp, 0x58
mov qword [rax + 8], rbx
mov rbx, qword [rcx + 0x10]
mov qword [rax + 0x20], rdi
mov qword [rax - 0x18], r14
mov r14, qword [rcx + 0x1b8]
mov qword [rax - 0x20], r15
test r14, r14
mov r15, qword [rcx]
mov rdi, rcx
je 0x490ef2
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
xor ebp, ebp
nop
nop
nop
nop
movsxd r9, dword [r14 + 0x10]
movzx eax, byte [rdi + 0x1f]
mov r13d, dword [r14 + 0x14]
shl r9, 5
add r9, qword [r15 + 0x20]
test al, al
jne 0x490cb1
inc dword [rdi + 0x54]
mov r12d, dword [rdi + 0x54]
jmp 0x490cbe
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r12d, dword [rdi + rax*4 + 0x24]
mov r9, qword [r9 + 0x18]
mov r8d, dword [r14 + 0x10]
xor edx, edx
mov r9, qword [r9 + 0x68]
mov rcx, rdi
mov dword [rsp + 0x20], reloc.WS2_32.dll_getservbyname
call fcn.00490560
mov rax, qword [rbx + 0x30]
movsxd rsi, dword [rbx + 0x3c]
cmp dword [rax + 0x60], esi
jg 0x490d01
mov edx, 1
mov rcx, rbx
call fcn.00441a80
test eax, eax
je 0x490d01
mov esi, 1
jmp 0x490d2f
mov rcx, qword [rbx + 8]
inc dword [rbx + 0x3c]
lea rdx, [rsi + rsi*2]
lea eax, [r13 + 1]
mov byte [rcx + rdx*8], Ordinal_79
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 8], ebp
mov dword [rcx + rdx*8 + 0xc], ebp
mov qword [rcx + rdx*8 + 0x10], rbp
mov dword [rcx + rdx*8 + 4], eax
mov byte [rcx + rdx*8 + 1], 0
mov rax, qword [rbx + 0x30]
movsxd rbp, dword [rbx + 0x3c]
cmp dword [rax + 0x60], ebp
jg 0x490d4d
mov edx, 1
mov rcx, rbx
call fcn.00441a80
test eax, eax
jne 0x490d80
inc dword [rbx + 0x3c]
mov rcx, qword [rbx + 8]
lea rdx, [rbp + rbp*2]
xor ebp, ebp
lea eax, [r13 + 1]
mov byte [rcx + rdx*8], 0x4a
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 4], ebp
mov dword [rcx + rdx*8 + 8], eax
mov dword [rcx + rdx*8 + 0xc], ebp
mov qword [rcx + rdx*8 + 0x10], rbp
mov byte [rcx + rdx*8 + 1], bpl
jmp 0x490d82
xor ebp, ebp
mov edx, dword [rbx + 0x3c]
cmp edx, esi
jbe 0x490d97
mov eax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
mov rax, qword [rbx + 0x30]
movsxd rsi, dword [rbx + 0x3c]
cmp dword [rax + 0x60], esi
jg 0x490dc1
mov edx, 1
mov rcx, rbx
call fcn.00441a80
test eax, eax
jne 0x490df4
mov rcx, qword [rbx + 8]
inc dword [rbx + 0x3c]
lea rdx, [rsi + rsi*2]
lea eax, [r13 - 1]
mov byte [rcx + rdx*8], gethostbyaddr
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 8], 2
mov dword [rcx + rdx*8 + 0xc], r12d
mov qword [rcx + rdx*8 + 0x10], rbp
mov dword [rcx + rdx*8 + 4], eax
mov byte [rcx + rdx*8 + 1], 0
mov rax, qword [rbx + 0x30]
movsxd rsi, dword [rbx + 0x3c]
cmp dword [rax + 0x60], esi
jg 0x490e12
mov edx, 1
mov rcx, rbx
call fcn.00441a80
test eax, eax
jne 0x490e41
mov rcx, qword [rbx + 8]
inc dword [rbx + 0x3c]
lea rdx, [rsi + rsi*2]
lea eax, [r13 + 1]
mov byte [rcx + rdx*8], 0x4b
mov byte [rcx + rdx*8 + 3], 0
mov dword [rcx + rdx*8 + 4], ebp
mov dword [rcx + rdx*8 + 8], r12d
mov qword [rcx + rdx*8 + 0x10], rbp
mov dword [rcx + rdx*8 + 0xc], eax
mov byte [rcx + rdx*8 + 1], 0
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x490e57
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 8
mov rax, qword [rbx + 0x30]
movsxd rsi, dword [rbx + 0x3c]
cmp dword [rax + 0x60], esi
jg 0x490e75
mov edx, 1
mov rcx, rbx
call fcn.00441a80
test eax, eax
jne 0x490e9f
mov rax, qword [rbx + 8]
inc dword [rbx + 0x3c]
lea rcx, [rsi + rsi*2]
mov byte [rax + rcx*8], 0x3d
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rbp
mov byte [rax + rcx*8 + 1], 0
test r12d, r12d
je 0x490ed2
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x490ed2
mov ecx, ebp
lea rax, [rdi + 0x88]
cmp dword [rax + 0xc], r12d
je 0x490f0b
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x490eb6
movzx eax, dl
mov dword [rdi + rax*4 + 0x24], r12d
inc byte [rdi + 0x1f]
mov r14, qword [r14]
test r14, r14
jne 0x490c90
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov r15, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret
mov byte [rax + 6], 1
jmp 0x490ed2