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

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x40
mov rbp, qword [rcx + 8]
mov rdi, qword [rcx]
mov rsi, rcx
mov rbx, qword [rsi + 0x10]
xor ecx, ecx
cmp byte [rbp + 0x20], 0x4c
mov eax, ecx
setne al
dec dword [rdi + 0x44]
mov r13d, dword [rdi + 0x44]
mov r14d, r8d
mov r15d, edx
mov dword [rsp + 0x80], eax
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x30], ecx
cmp edx, 2
jne 0x1401ecbf4
cmp byte [rbp + 0x21], 0x5a
jne 0x1401ecbf4
xor eax, eax
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
test r8d, r8d
jle 0x1401ecc80
cmp byte [rbp + 0x20], 0x59
jne 0x1401ecc68
mov eax, dword [rbx + 0x98]
mov dword [rsp + 0x28], r13d
mov r9d, r8d
mov rcx, rsi
mov dword [rsp + 0x30], eax
cmp edx, 2
jne 0x1401ecc51
cmp byte [rbp + 0x21], 0x56
jne 0x1401ecc3a
mov eax, dword [rsi + 0x2c]
mov r8d, dword [rsi + 0x34]
mov edx, gethostname
mov dword [rsp + 0x20], eax
call fcn.1401ed120
jmp 0x1401ecc99
mov eax, dword [rsi + 0x34]
mov r8d, dword [rsi + 0x2c]
mov edx, reloc.WS2_32.dll_gethostname
mov dword [rsp + 0x20], eax
call fcn.1401ed120
jmp 0x1401ecc99
mov eax, dword [rsi + 0x34]
mov r8d, dword [rsi + 0x3c]
mov edx, gethostname
mov dword [rsp + 0x20], eax
call fcn.1401ed120
jmp 0x1401ecc80
mov r9d, r13d
mov edx, gethostbyaddr
mov rcx, rbx
mov dword [rsp + 0x20], 1
call fcn.1401bbec0
cmp r15d, 1
jne 0x1401ecc99
cmp dword [rbp + 0x84], 0
jne 0x1401ecc99
xor edx, edx
mov rcx, rsi
call fcn.1401eb960
mov eax, dword [rbx + 0x98]
mov qword [rsp + 0x90], r12
mov dword [rsp + 0x38], eax
movzx eax, byte [rbp + 0x22]
cmp byte [rbp + 0x21], al
jne 0x1401ecda9
test r14d, r14d
je 0x1401ecda9
cmp byte [rbp + 0x20], 0x59
jne 0x1401ecda9
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x1401eccdc
inc dword [rdi + 0x38]
mov r14d, dword [rdi + 0x38]
jmp 0x1401eccec
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r14d, dword [rdi + rax*4 + 0xd8]
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x1401eccfd
inc dword [rdi + 0x38]
mov r12d, dword [rdi + 0x38]
jmp 0x1401ecd0d
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r12d, dword [rdi + rax*4 + 0xd8]
cmp r15d, 2
jne 0x1401ecd40
mov r8d, dword [rsi + 0x2c]
mov r9d, r14d
mov edx, 0x86
mov rcx, rbx
call fcn.1401bbe50
mov r8d, dword [rsi + 0x3c]
mov r9d, r12d
mov edx, 0x86
mov rcx, rbx
call fcn.1401bbe50
mov r8d, r12d
jmp 0x1401ecd5e
cmp dword [rsi + 0x28], 0
je 0x1401ecd73
mov r8d, dword [rsi + 0x3c]
mov r9d, r14d
mov edx, 0x86
mov rcx, rbx
call fcn.1401bbe50
mov r8d, dword [rsi + 0x28]
mov r9d, r13d
mov edx, reloc.WS2_32.dll_gethostname
mov rcx, rbx
mov dword [rsp + 0x20], r14d
call fcn.1401bbec0
test r14d, r14d
je 0x1401ecd8e
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1401ecd8e
movzx eax, al
mov dword [rdi + rax*4 + 0xd8], r14d
inc byte [rdi + 0x1f]
test r12d, r12d
je 0x1401ecda9
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1401ecda9
movzx eax, al
mov dword [rdi + rax*4 + 0xd8], r12d
inc byte [rdi + 0x1f]
mov ecx, r15d
dec ecx
je 0x1401ece4d
dec ecx
je 0x1401ece06
cmp dword [rbp + 0x84], 0
mov r12d, dword [rsi + 0x40]
mov r14d, dword [rsi + 0x3c]
mov dword [rsp + 0x88], r12d
je 0x1401ecdec
mov r8d, dword [rbp + 0x88]
mov r9d, 1
mov rcx, rbx
lea edx, [r9 + 0x54]
call fcn.1401bbe50
jmp 0x1401ece63
mov eax, dword [rsi + 0x20]
xor r9d, r9d
mov r8d, r14d
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.1401ebd50
jmp 0x1401ece63
mov r8d, dword [rbp + 0x84]
mov r12d, dword [rsi + 0x30]
mov r14d, dword [rsi + 0x2c]
mov dword [rsp + 0x88], r12d
mov r9d, 1
test r8d, r8d
je 0x1401ece36
lea edx, [r9 + 0x54]
mov rcx, rbx
call fcn.1401bbe50
jmp 0x1401ece63
mov eax, dword [rsi + 0x20]
mov r8d, r14d
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.1401ebd50
jmp 0x1401ece63
mov eax, dword [rsi + 0x38]
mov r14d, dword [rsi + 0x34]
mov rcx, rsi
mov dword [rsp + 0x88], eax
call fcn.1401ee560
cmp r15d, dword [rsi + 0x24]
jne 0x1401ecee6
movsxd rcx, dword [rbx + 0x98]
cmp dword [rbx + 0x9c], ecx
jg 0x1401ece95
xor r12d, r12d
xor r9d, r9d
mov r8d, r14d
mov edx, 0x81
mov rcx, rbx
mov dword [rsp + 0x20], r12d
call fcn.14015c470
jmp 0x1401ecec4
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
xor edx, edx
mov dword [rbx + 0x98], eax
mov rax, qword [rbx + 0x90]
xor r12d, r12d
mov dword [rax + rcx*8], 0x81
mov dword [rax + rcx*8 + 4], r14d
mov qword [rax + rcx*8 + 8], rdx
mov qword [rax + rcx*8 + 0x10], rdx
movsxd rax, dword [rbx + 0x98]
test eax, eax
jle 0x1401ecee9
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x90]
mov edx, 2
mov word [rax + rcx*8 - 0x16], dx
jmp 0x1401ecee9
xor r12d, r12d
cmp dword [rsp + 0x98], 0
movsxd rcx, dword [rbx + 0x98]
je 0x1401ecf6e
lea edx, [rcx + 2]
cmp dword [rbx + 0x9c], ecx
jg 0x1401ecf1f
mov r9d, edx
mov r8d, r14d
mov rcx, rbx
mov edx, 5
mov dword [rsp + 0x20], r12d
call fcn.14015c470
jmp 0x1401ecf53
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
xor r8d, r8d
mov dword [rbx + 0x98], eax
mov rax, qword [rbx + 0x90]
xor r12d, r12d
mov dword [rax + rcx*8], 5
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov edx, reloc.WS2_32.dll_inet_addr
mov rcx, rbx
call fcn.1401bbd70
mov r15d, dword [rsp + 0x80]
mov dword [rsp + 0x34], eax
jmp 0x1401ecfed
mov r15d, dword [rsp + 0x80]
lea edx, [r15 + 1]
add edx, ecx
cmp dword [rbx + 0x9c], ecx
jg 0x1401ecf9e
mov r9d, edx
mov r8d, r14d
mov rcx, rbx
mov edx, 5
mov dword [rsp + 0x20], r12d
call fcn.14015c470
jmp 0x1401ecfd2
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
xor r8d, r8d
mov dword [rbx + 0x98], eax
mov rax, qword [rbx + 0x90]
xor r12d, r12d
mov dword [rax + rcx*8], 5
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
test r15d, r15d
je 0x1401ed078
xor r8d, r8d
mov r9d, r13d
mov rcx, rbx
lea edx, [r8 + 0xb]
call fcn.1401bbe50
test r15d, r15d
je 0x1401ed078
mov rax, qword [rbp + 0x18]
test rax, rax
je 0x1401ed017
mov r15d, dword [rax]
test r15d, r15d
je 0x1401ed01a
mov edx, r15d
mov rcx, rdi
call fcn.14019e4d0
mov r12d, eax
jmp 0x1401ed01a
mov r15d, r12d
mov r8d, r12d
mov edx, r14d
mov rcx, rsi
call fcn.1401ee3f0
mov eax, dword [rsp + 0x38]
mov r9d, dword [rsp + 0x88]
mov rdx, qword [rbp + 0x18]
mov r8d, r12d
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.1401edfd0
cmp r15d, 1
jne 0x1401ed06a
test r12d, r12d
je 0x1401ed078
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1401ed078
movzx eax, al
mov dword [rdi + rax*4 + 0xd8], r12d
inc byte [rdi + 0x1f]
jmp 0x1401ed078
cmp r15d, dword [rdi + 0x28]
jle 0x1401ed078
mov dword [rdi + 0x28], r15d
mov dword [rdi + 0x2c], r12d
mov edx, dword [rsp + 0x30]
mov r12, qword [rsp + 0x90]
test edx, edx
je 0x1401ed0dd
movsxd rcx, dword [rbx + 0x98]
cmp dword [rbx + 0x9c], ecx
jg 0x1401ed0b0
xor eax, eax
mov r9d, edx
xor r8d, r8d
lea edx, [rax + 0xb]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.14015c470
jmp 0x1401ed0dd
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
xor r8d, r8d
mov dword [rbx + 0x98], eax
mov rax, qword [rbx + 0x90]
mov qword [rax + rcx*8], reloc.WS2_32.dll_inet_addr
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov rcx, qword [rbx + 0x18]
not r13d
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x1401ed0f9
mov r8d, r13d
mov rdx, rbx
call fcn.140172d20
jmp 0x1401ed109
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x98]
movsxd rdx, r13d
mov dword [rcx + rdx*4], eax
mov eax, dword [rsp + 0x34]
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret