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

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [rcx]
mov rsi, rcx
mov r14, qword [rcx + 8]
xor r12d, r12d
mov rbp, qword [rcx + 0x10]
mov edi, r8d
mov r15d, edx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x34], r12d
movzx ecx, byte [r14 + 0x20]
mov byte [rsp + 0x98], cl
mov rcx, rax
call fcn.14020ade0
mov dword [rsp + 0x90], eax
mov r13d, eax
mov dword [rsp + 0x30], r12d
cmp edx, 2
jne 0x140223a00
cmp byte [r14 + 0x21], 0x5a
jne 0x140223a00
xor eax, eax
jmp 0x140223d0b
mov r10d, reloc.WS2_32.dll_gethostname
test edi, edi
jle 0x140223a86
cmp byte [r14 + 0x20], 0x59
mov rcx, rbp
jne 0x140223a71
call fcn.140203bf0
mov dword [rsp + 0x30], eax
cmp r15d, 2
jne 0x140223a4f
cmp byte [r14 + 0x21], 0x56
jne 0x140223a30
mov r8d, dword [rsi + 0x30]
jmp 0x140223a34
mov r8d, dword [rsi + 0x28]
mov ecx, gethostbyname
mov eax, 0x28
cmovne eax, ecx
mov edx, gethostname
cmovne edx, r10d
mov ecx, dword [rax + rsi]
jmp 0x140223a5b
mov r8d, dword [rsi + 0x38]
mov edx, gethostname
mov ecx, dword [rsi + 0x30]
mov dword [rsp + 0x28], r13d
mov r9d, edi
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.140223d30
jmp 0x140223a86
mov r9d, r13d
mov dword [rsp + 0x20], 1
mov edx, gethostbyname
call fcn.140203490
cmp r15d, 1
jne 0x140223a9f
cmp dword [r14 + 0x84], r12d
jne 0x140223a9f
xor edx, edx
mov rcx, rsi
call fcn.140223270
mov rcx, rbp
call fcn.140203bf0
mov dword [rsp + 0x38], eax
movzx eax, byte [r14 + 0x22]
cmp byte [r14 + 0x21], al
jne 0x140223b60
test edi, edi
je 0x140223b60
cmp byte [r14 + 0x20], 0x59
jne 0x140223b60
cmp r15d, 2
jne 0x140223b60
mov rcx, qword [rsp + 0x40]
call fcn.1401f0080
mov ebx, eax
call fcn.1401f0080
mov r8d, dword [rsi + 0x28]
lea edx, [r15 + 0x7d]
mov r9d, ebx
mov rcx, rbp
mov edi, eax
call fcn.140203470
mov r8d, dword [rsi + 0x38]
lea edx, [r15 + 0x7d]
mov r9d, edi
mov rcx, rbp
call fcn.140203470
mov r9d, r13d
mov dword [rsp + 0x20], ebx
mov r8d, edi
lea edx, [r15 + 0x37]
mov rcx, rbp
call fcn.140203490
mov rcx, qword [rsp + 0x40]
mov edx, ebx
call fcn.1401fb500
mov edx, edi
call fcn.1401fb500
mov r8d, dword [r14 + 0x84]
mov r9d, 1
mov ebx, dword [rsi + 0x28]
mov r13d, dword [rsi + 0x2c]
test r8d, r8d
je 0x140223bb2
lea edx, [r9 + 0x51]
mov rcx, rbp
call fcn.140203470
jmp 0x140223bd8
mov ecx, r15d
sub ecx, 1
je 0x140223bc9
cmp ecx, 1
je 0x140223b39
mov ebx, dword [rsi + 0x38]
mov r13d, dword [rsi + 0x3c]
cmp dword [r14 + 0x84], r12d
je 0x140223b98
mov r8d, dword [r14 + 0x88]
mov r9d, 1
mov rcx, rbp
lea edx, [r9 + 0x51]
call fcn.140203470
jmp 0x140223bd8
mov eax, dword [rsi + 0x20]
xor r9d, r9d
mov r8d, ebx
mov dword [rsp + 0x20], eax
mov rdx, r14
mov rcx, rsi
call fcn.1402233c0
jmp 0x140223bd8
mov eax, dword [rsi + 0x20]
mov r8d, ebx
mov rdx, r14
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.1402233c0
jmp 0x140223bd8
mov ebx, dword [rsi + 0x30]
mov rcx, rsi
mov r13d, dword [rsi + 0x34]
call fcn.140224640
cmp r15d, dword [rsi + 0x24]
jne 0x140223bfb
mov r8d, ebx
mov edx, 0x7a
mov rcx, rbp
call fcn.140203450
mov edx, 2
mov rcx, rbp
call fcn.140203950
mov rcx, rbp
call fcn.140203bf0
mov r8d, ebx
mov edx, 5
cmp dword [rsp + 0xa8], r12d
je 0x140223c47
lea r9d, [rax + 2]
call fcn.140203470
mov edx, reloc.WS2_32.dll_inet_addr
mov rcx, rbp
call fcn.140203430
cmp byte [rsp + 0x98], 0x4c
mov r15d, dword [rsp + 0x90]
mov dword [rsp + 0x34], eax
je 0x140223ce2
jmp 0x140223c86
cmp byte [rsp + 0x98], 0x4c
mov r9d, eax
mov eax, r12d
setne al
inc eax
add r9d, eax
call fcn.140203470
cmp byte [rsp + 0x98], 0x4c
mov r15d, dword [rsp + 0x90]
je 0x140223ce2
xor r8d, r8d
mov r9d, r15d
mov rcx, rbp
lea edx, [r8 + 0xb]
call fcn.140203470
mov rax, qword [r14 + 0x18]
test rax, rax
je 0x140223ca6
mov edi, dword [rax]
test edi, edi
je 0x140223ca9
mov rcx, qword [rsp + 0x40]
mov edx, edi
call fcn.1401f0040
mov r12d, eax
jmp 0x140223ca9
mov edi, r12d
mov r8d, r12d
mov edx, ebx
mov rcx, rsi
call fcn.140224570
mov eax, dword [rsp + 0x38]
mov r9d, r13d
mov rdx, qword [r14 + 0x18]
mov r8d, r12d
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x20], eax
call fcn.140224350
mov rcx, qword [rsp + 0x40]
mov r8d, edi
mov edx, r12d
call fcn.1401fb4e0
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140223cfc
xor r8d, r8d
mov r9d, eax
mov rcx, rbp
lea edx, [r8 + 0xb]
call fcn.140203470
mov edx, r15d
mov rcx, rbp
call fcn.14020cd40
mov eax, dword [rsp + 0x34]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret