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

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov rdi, qword [rcx]
mov rsi, rcx
mov rbp, qword [rcx + 8]
mov r14d, r8d
xor ecx, ecx
mov r12d, edx
mov dword [rsp + 0x80], ecx
mov r13d, dword [rdi + 0x44]
movzx eax, byte [rbp + 0x20]
dec r13d
mov rbx, qword [rsi + 0x10]
mov byte [rsp + 0x88], al
mov dword [rdi + 0x44], r13d
mov dword [rsp + 0x34], ecx
cmp edx, 2
jne 0x1402e8cd6
cmp byte [rbp + 0x21], 0x5a
jne 0x1402e8cd6
xor eax, eax
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov r9d, 0x39
test r14d, r14d
jle 0x1402e8d5e
cmp byte [rbp + 0x20], 0x59
jne 0x1402e8d46
mov eax, dword [rbx + 0x90]
mov dword [rsp + 0x34], eax
cmp r12d, 2
jne 0x1402e8d24
cmp byte [rbp + 0x21], 0x56
jne 0x1402e8d03
mov r8d, dword [rsi + 0x34]
jmp 0x1402e8d07
mov r8d, dword [rsi + 0x2c]
mov edx, reloc.WS2_32.dll_getservbyname
mov eax, 0x2c
cmovne edx, r9d
mov r9d, reloc.WS2_32.dll_gethostbyname
cmovne eax, r9d
mov ecx, dword [rax + rsi]
jmp 0x1402e8d30
mov r8d, dword [rsi + 0x3c]
mov edx, getservbyport
mov ecx, dword [rsi + 0x34]
mov dword [rsp + 0x28], r13d
mov r9d, r14d
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.1402e91c0
jmp 0x1402e8d5e
mov r9d, r13d
mov dword [rsp + 0x20], 1
mov edx, gethostbyname
mov rcx, rbx
call fcn.1402b73f0
cmp r12d, 1
jne 0x1402e8d77
cmp dword [rbp + 0x84], 0
jne 0x1402e8d77
xor edx, edx
mov rcx, rsi
call fcn.1402e7a60
mov eax, dword [rbx + 0x90]
mov dword [rsp + 0x38], eax
movzx eax, byte [rbp + 0x22]
mov qword [rsp + 0x90], r15
cmp byte [rbp + 0x21], al
jne 0x1402e8e84
test r14d, r14d
je 0x1402e8e84
cmp byte [rbp + 0x20], 0x59
jne 0x1402e8e84
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x1402e8dc1
inc dword [rdi + 0x38]
mov r14d, dword [rdi + 0x38]
inc dword [rdi + 0x38]
mov r15d, dword [rdi + 0x38]
jmp 0x1402e8dee
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r14d, dword [rdi + rax*4 + 0xd8]
test al, al
jne 0x1402e8dde
inc dword [rdi + 0x38]
mov r15d, dword [rdi + 0x38]
jmp 0x1402e8dee
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r15d, dword [rdi + rax*4 + 0xd8]
cmp r12d, 2
jne 0x1402e8e21
mov r8d, dword [rsi + 0x2c]
mov r9d, r14d
mov edx, 0x87
mov rcx, rbx
call fcn.1402b7380
mov r8d, dword [rsi + 0x3c]
mov r9d, r15d
mov edx, 0x87
mov rcx, rbx
call fcn.1402b7380
mov r8d, r15d
jmp 0x1402e8e3f
cmp dword [rsi + 0x28], 0
je 0x1402e8e54
mov r8d, dword [rsi + 0x3c]
mov r9d, r14d
mov edx, 0x87
mov rcx, rbx
call fcn.1402b7380
mov r8d, dword [rsi + 0x28]
mov r9d, r13d
mov dword [rsp + 0x20], r14d
mov edx, 0x39
mov rcx, rbx
call fcn.1402b73f0
test r14d, r14d
je 0x1402e8e6c
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1402e8e6c
mov dword [rdi + rax*4 + 0xd8], r14d
inc byte [rdi + 0x1f]
test r15d, r15d
je 0x1402e8e84
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1402e8e84
mov dword [rdi + rax*4 + 0xd8], r15d
inc byte [rdi + 0x1f]
mov ecx, r12d
sub ecx, 1
je 0x1402e8f24
cmp ecx, 1
je 0x1402e8ee0
cmp dword [rbp + 0x84], 0
mov r14d, dword [rsi + 0x40]
mov r15d, dword [rsi + 0x3c]
mov dword [rsp + 0x30], r14d
je 0x1402e8ec6
mov r8d, dword [rbp + 0x88]
mov r9d, 1
mov rcx, rbx
lea edx, [r9 + 0x55]
call fcn.1402b7380
jmp 0x1402e8f37
mov eax, dword [rsi + 0x20]
xor r9d, r9d
mov r8d, r15d
mov dword [rsp + 0x20], eax
mov rdx, rbp
mov rcx, rsi
call fcn.1402e7e50
jmp 0x1402e8f37
mov r8d, dword [rbp + 0x84]
mov r9d, 1
mov r14d, dword [rsi + 0x30]
mov r15d, dword [rsi + 0x2c]
mov dword [rsp + 0x30], r14d
test r8d, r8d
je 0x1402e8f0d
lea edx, [r9 + 0x55]
mov rcx, rbx
call fcn.1402b7380
jmp 0x1402e8f37
mov eax, dword [rsi + 0x20]
mov r8d, r15d
mov rdx, rbp
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.1402e7e50
jmp 0x1402e8f37
mov eax, dword [rsi + 0x38]
mov rcx, rsi
mov r15d, dword [rsi + 0x34]
mov dword [rsp + 0x30], eax
call fcn.1402ea7f0
cmp r12d, dword [rsi + 0x24]
jne 0x1402e8f6d
mov r8d, r15d
mov edx, 0x82
mov rcx, rbx
call fcn.1402b7310
movsxd rax, dword [rbx + 0x90]
test eax, eax
jle 0x1402e8f6d
lea rcx, [rax + rax*2]
mov edx, 2
mov rax, qword [rbx + 0x88]
mov word [rax + rcx*8 - 0x16], dx
cmp dword [rsp + 0x98], 0
movsxd rcx, dword [rbx + 0x90]
mov eax, dword [rbx + 0x94]
je 0x1402e900a
lea edx, [rcx + 2]
cmp eax, ecx
jg 0x1402e8fac
mov r9d, edx
mov dword [rsp + 0x20], 0
mov edx, 0x26
mov r8d, r15d
mov rcx, rbx
call fcn.1402471f0
jmp 0x1402e8fdd
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x26
mov dword [rax + rcx*8 + 4], r15d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov edx, 8
mov rcx, rbx
call fcn.1402b72a0
cmp byte [rsp + 0x88], 0x4c
mov r12d, eax
mov dword [rsp + 0x80], eax
je 0x1402e9110
xor r12d, r12d
jmp 0x1402e908c
movzx r14d, byte [rsp + 0x88]
xor r12d, r12d
cmp r14b, 0x4c
mov edx, r12d
setne dl
inc edx
add edx, ecx
cmp eax, ecx
jg 0x1402e9042
mov r9d, edx
mov dword [rsp + 0x20], r12d
lea edx, [r12 + 0x26]
mov r8d, r15d
mov rcx, rbx
call fcn.1402471f0
jmp 0x1402e9070
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x26
mov dword [rax + rcx*8 + 4], r15d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
cmp r14b, 0x4c
je 0x1402e9110
xor r8d, r8d
mov r9d, r13d
mov rcx, rbx
lea edx, [r8 + 8]
call fcn.1402b7380
mov rax, qword [rbp + 0x18]
test rax, rax
je 0x1402e90ad
mov r14d, dword [rax]
test r14d, r14d
je 0x1402e90b0
mov edx, r14d
mov rcx, rdi
call fcn.140297e70
mov r12d, eax
jmp 0x1402e90b0
mov r14d, r12d
mov r8d, r12d
mov edx, r15d
mov rcx, rsi
call fcn.1402ea6e0
mov eax, dword [rsp + 0x38]
mov r8d, r12d
mov r9d, dword [rsp + 0x30]
mov rcx, rdi
mov rdx, qword [rbp + 0x18]
mov dword [rsp + 0x20], eax
call fcn.1402ea1f0
cmp r14d, 1
jne 0x1402e90fa
test r12d, r12d
je 0x1402e9108
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1402e9108
mov dword [rdi + rax*4 + 0xd8], r12d
inc byte [rdi + 0x1f]
jmp 0x1402e9108
cmp r14d, dword [rdi + 0x28]
jle 0x1402e9108
mov dword [rdi + 0x28], r14d
mov dword [rdi + 0x2c], r12d
mov r12d, dword [rsp + 0x80]
mov edx, dword [rsp + 0x34]
mov r15, qword [rsp + 0x90]
test edx, edx
je 0x1402e9175
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1402e9148
xor eax, eax
mov r9d, edx
xor r8d, r8d
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea edx, [rax + 8]
call fcn.1402471f0
jmp 0x1402e9175
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], 8
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 0x1402e9191
mov r8d, r13d
mov rdx, rbx
call fcn.14025e8a0
jmp 0x1402e91a2
mov rdx, qword [rcx + 0x50]
mov ecx, dword [rbx + 0x90]
movsxd r8, r13d
mov dword [rdx + r8*4], ecx
mov eax, r12d
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret