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

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov rdi, qword [rcx + 0x10]
mov qword [rsp + 0x30], r14
xor esi, esi
test rdi, rdi
mov qword [rsp + 0x28], r15
mov r14d, r8d
mov rbx, rcx
movsxd r15, edx
jne 0x45aacd
call fcn.0044f4c0
test rax, rax
mov rdi, rax
mov qword [rbx + 0x10], rax
je 0x45aaae
movsxd rbp, dword [rax + 0x3c]
mov rax, qword [rax + 0x30]
cmp dword [rax + 0x60], ebp
jg 0x45aa83
lea edx, [rsi + 1]
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x45aaae
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [rbp + rbp*2]
mov byte [rax + rcx*8], 0x99
mov byte [rax + rcx*8 + 3], sil
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], sil
cmp qword [rbx + 0x1c0], rsi
jne 0x45aac4
mov rax, qword [rbx]
test byte [rax + 0x4c], 8
jne 0x45aac4
mov byte [rbx + 0x23], 1
test rdi, rdi
je 0x45ad2f
movzx eax, byte [rbx + 0x1f]
mov qword [rsp + 0x40], r12
test al, al
jne 0x45aae3
inc dword [rbx + 0x54]
mov r12d, dword [rbx + 0x54]
jmp 0x45aaf0
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r12d, dword [rbx + rax*4 + 0x24]
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x45ab00
inc dword [rbx + 0x54]
mov ebp, dword [rbx + 0x54]
jmp 0x45ab0c
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov ebp, dword [rbx + rax*4 + 0x24]
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0x38], r13
movsxd r13, dword [rdi + 0x3c]
cmp dword [rax + 0x60], r13d
jg 0x45ab30
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x45ab61
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [r13 + r13*2]
mov byte [rax + rcx*8], reloc.WS2_32.dll_gethostbyaddr
mov byte [rax + rcx*8 + 3], sil
mov dword [rax + rcx*8 + 4], r15d
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], 2
mov qword [rax + rcx*8 + 0x10], rsi
mov byte [rax + rcx*8 + 1], sil
mov ecx, r15d
mov r8d, 1
shl r8d, cl
or dword [rdi + 0x94], r8d
cmp r15d, 1
je 0x45ab9a
mov rax, qword [rdi]
mov rdx, r15
mov rcx, qword [rax + 0x20]
shl rdx, 5
mov rax, qword [rdx + rcx + 8]
cmp byte [rax + 0x11], sil
je 0x45ab9a
or dword [rdi + 0x98], r8d
mov rax, qword [rdi + 0x30]
movsxd r13, dword [rdi + 0x3c]
cmp dword [rax + 0x60], r13d
jg 0x45abb9
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x45abe5
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [r13 + r13*2]
mov byte [rax + rcx*8], Ordinal_27
mov byte [rax + rcx*8 + 3], sil
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], rsi
mov byte [rax + rcx*8 + 1], sil
mov rax, qword [rdi + 0x30]
movsxd r13, dword [rdi + 0x3c]
cmp dword [rax + 0x60], r13d
jg 0x45ac0c
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
je 0x45ac0c
mov r13d, 1
jmp 0x45ac38
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [r13 + r13*2]
mov byte [rax + rcx*8], 0x53
mov byte [rax + rcx*8 + 3], sil
mov dword [rax + rcx*8 + 4], ebp
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], sil
mov r8, qword [rdi + 8]
test r8, r8
je 0x45ac4f
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [r8 + rcx*8 - 0x15], 0x90
mov rax, qword [rdi + 0x30]
movsxd r14, dword [rdi + 0x3c]
cmp dword [rax + 0x60], r14d
jg 0x45ac6e
mov edx, 1
mov rcx, rdi
call fcn.00441a80
test eax, eax
jne 0x45ac9d
mov rax, qword [rdi + 8]
inc dword [rdi + 0x3c]
lea rcx, [r14 + r14*2]
mov byte [rax + rcx*8], reloc.WS2_32.dll_gethostbyname
mov byte [rax + rcx*8 + 3], sil
mov dword [rax + rcx*8 + 4], r15d
mov dword [rax + rcx*8 + 8], 2
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rsi
mov byte [rax + rcx*8 + 1], sil
mov edx, dword [rdi + 0x3c]
cmp edx, r13d
jbe 0x45acb4
mov eax, r13d
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
mov r13, qword [rsp + 0x38]
dec ecx
test r12d, r12d
mov dword [rax + 0x64], ecx
je 0x45acfc
movzx edx, byte [rbx + 0x1f]
cmp dl, 8
jae 0x45acfc
mov ecx, esi
lea rax, [rbx + 0x88]
nop
cmp dword [rax + 0xc], r12d
je 0x45ad52
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x45ace0
movzx eax, dl
mov dword [rbx + rax*4 + 0x24], r12d
inc byte [rbx + 0x1f]
test ebp, ebp
mov r12, qword [rsp + 0x40]
je 0x45ad2f
movzx ecx, byte [rbx + 0x1f]
cmp cl, 8
jae 0x45ad2f
lea rax, [rbx + 0x88]
cmp dword [rax + 0xc], ebp
je 0x45ad58
inc esi
add rax, 0x14
cmp esi, 0xa
jl 0x45ad15
movzx eax, cl
mov dword [rbx + rax*4 + 0x24], ebp
inc byte [rbx + 0x1f]
mov r15, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
mov byte [rax + 6], 1
jmp 0x45acfc
mov byte [rax + 6], 1
jmp 0x45ad2f