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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x18016f298]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x120], rdi
jne 0x18001ec5f
cmp byte [rcx + 0x14], dil
jne 0x18001ec5f
mov esi, 1
mov dword [rsp + 0x30], esi
movzx eax, byte [rbx + 0x15]
xor edi, edi
cmp al, sil
jb 0x18001ea32
cmp al, 5
jne 0x18001ea6a
cmp byte [rbx + 0x11], dil
jne 0x18001ea4a
mov rcx, qword [rbx + 0x48]
mov edx, esi
mov rax, qword [rcx]
call qword [rax + gethostname]
mov edi, eax
test eax, eax
jne 0x18001ea54
cmp byte [rbx + 0x15], 5
je 0x18001ea54
mov byte [rbx + 0x15], sil
cmp edi, 5
jne 0x18001ea6a
mov rcx, qword [rbx + 0xe8]
call qword [rbx + 0xe0]
test eax, eax
jne 0x18001ea23
test edi, edi
jne 0x18001ebca
cmp byte [rbx + 0x15], sil
ja 0x18001ea8b
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.18001e7c0
mov esi, dword [rsp + 0x30]
mov edi, eax
test edi, edi
jne 0x18001ebca
test esi, esi
je 0x18001ebd7
cmp byte [rbx + 0x12], dil
je 0x18001eab3
mov rcx, rbx
mov edi, 0x308
call fcn.18001bcd0
jmp 0x18001ed06
movzx eax, byte [rbx + 0x15]
xor edi, edi
cmp al, 4
jb 0x18001eac1
cmp al, 5
jne 0x18001eae0
cmp byte [rbx + 0x11], dil
jne 0x18001eadc
mov rcx, qword [rbx + 0x48]
mov edx, 4
mov rax, qword [rcx]
call qword [rax + gethostname]
mov edi, eax
test eax, eax
jne 0x18001eae0
mov byte [rbx + 0x15], 4
test edi, edi
jne 0x18001ebca
mov rax, qword [rbx + 0x50]
cmp qword [rax], 0
jne 0x18001eb71
mov rsi, qword [rbx]
lea r9, [rsp + 0x38]
mov rdx, qword [rbx + 0xd8]
xor r8d, r8d
mov rcx, rsi
call qword [rsi + gethostname]
mov edi, eax
test eax, eax
jne 0x18001eb71
cmp dword [rsp + 0x38], eax
je 0x18001eb71
mov r8, qword [rbx + 0x50]
mov r9d, 0x802
mov rdx, qword [rbx + 0xd8]
mov rcx, rsi
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [rsi + Ordinal_41]
mov edi, eax
test eax, eax
jne 0x18001eb71
test byte [rsp + 0x30], 1
je 0x18001eb71
mov ecx, 0xd938
call fcn.1800a7b20
mov rsi, qword [rbx + 0x50]
mov edi, eax
mov rax, qword [rsi]
test rax, rax
je 0x18001eb71
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [rsi], 0
mov rax, qword [rbx + 0x50]
cmp qword [rax], 0
je 0x18001eba1
mov rcx, rbx
call fcn.18001d710
mov edi, eax
test eax, eax
jne 0x18001ebb8
xor edx, edx
mov rcx, rbx
cmp byte [rbx + 0x10], dl
sete dl
call fcn.18001c910
mov edi, eax
mov byte [rbx + 0x14], 0
jmp 0x18001ebb4
cmp byte [rbx + 8], 0
jne 0x18001ebb4
mov edx, 1
mov rcx, rbx
call fcn.18001b370
test edi, edi
je 0x18001ebd7
mov edx, edi
mov rcx, rbx
call fcn.18001be20
test edi, edi
je 0x18001ecfe
mov rcx, rbx
call fcn.18001bcd0
jmp 0x18001ed06
cmp byte [rbx + 0x10], 0
jne 0x18001ec55
cmp byte [rbx + 0x1b], 0
je 0x18001ec55
mov rcx, qword [rbx + 0x48]
lea rdx, [rsp + 0x38]
mov r9d, Ordinal_27
mov rax, qword [rcx]
lea r8d, [r9 - 8]
call qword [rax + reloc.WS2_32.dll_recv]
mov edi, eax
test eax, eax
je 0x18001ec19
cmp eax, 0x20a
jne 0x18001ebc2
xor eax, eax
mov qword [rsp + 0x38], rax
mov ecx, eax
mov qword [rsp + 0x40], rax
jmp 0x18001ec23
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
cmp qword [rbx + 0x88], rax
jne 0x18001ec35
cmp qword [rbx + 0x90], rcx
je 0x18001ec55
mov rcx, rbx
call fcn.18001bb20
cmp byte [rbx + 0x1a], 0
je 0x18001ec55
mov rcx, qword [rbx + 0x48]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x90]
mov rcx, rbx
call fcn.18001d190
mov edi, eax
cmp qword [rbx + 0x120], 0
je 0x18001ec73
mov rcx, rbx
call fcn.18001d0d0
mov edi, eax
cmp byte [rbx + 0x10], 0
jne 0x18001ebc2
cmp byte [rbx + 0x14], 0
jne 0x18001ebc2
test edi, edi
jne 0x18001ebca
mov rax, qword [rbx + 0x120]
test rax, rax
je 0x18001ecaa
cmp word [rax + 0x3c], di
jl 0x18001ecaa
mov eax, dword [rax + 0x5c]
test eax, eax
jne 0x18001eceb
jmp 0x18001ecac
xor eax, eax
mov rcx, qword [rbx + 0x48]
cmp qword [rcx], 0
je 0x18001eceb
mov qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + Ordinal_50]
mov edi, eax
test eax, eax
jne 0x18001ebc2
movsxd rcx, dword [rbx + 0xbc]
mov rax, qword [rsp + 0x38]
dec rax
add rax, rcx
cqo
idiv rcx
cmp eax, dword [rbx + 0xc0]
jbe 0x18001ecf9
mov dword [rbx + 0xc0], eax
mov dword [rbx + 0x1c], eax
xor edi, edi
mov byte [rbx + 0x14], 1
mov byte [rbx + 0x1b], 1
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180107470
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret