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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14031a320]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
mov rbx, rcx
mov edi, esi
cmp qword [rcx + 0x120], rsi
jne 0x140013b33
cmp byte [rcx + 0x14], sil
jne 0x140013b33
mov ebp, 1
mov dword [rsp + 0x38], ebp
movzx eax, byte [rbx + 0x15]
mov edi, esi
cmp al, bpl
jb 0x1400137a1
cmp al, 5
jne 0x1400137d9
cmp byte [rbx + 0x11], sil
jne 0x1400137b9
mov rcx, qword [rbx + 0x48]
mov edx, ebp
mov rax, qword [rcx]
call qword [rax + gethostname]
mov edi, eax
test eax, eax
jne 0x1400137c3
cmp byte [rbx + 0x15], 5
je 0x1400137d9
mov byte [rbx + 0x15], bpl
cmp edi, 5
jne 0x1400137d9
mov rcx, qword [rbx + 0xe8]
call qword [rbx + 0xe0]
test eax, eax
jne 0x140013792
test edi, edi
jne 0x140013c48
cmp byte [rbx + 0x15], bpl
ja 0x140013802
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.140013500
mov edi, eax
test eax, eax
jne 0x140013c48
mov ebp, dword [rsp + 0x38]
test ebp, ebp
je 0x1400139bc
cmp byte [rbx + 0x12], sil
je 0x140013822
mov rcx, rbx
mov edi, 0x308
call fcn.140010880
jmp 0x140013c5a
movzx eax, byte [rbx + 0x15]
mov edi, esi
cmp al, 4
jb 0x140013830
cmp al, 5
jne 0x140013851
cmp byte [rbx + 0x11], sil
jne 0x14001384b
mov rcx, qword [rbx + 0x48]
mov edx, 4
mov rax, qword [rcx]
call qword [rax + gethostname]
mov edi, eax
test eax, eax
jne 0x140013851
mov byte [rbx + 0x15], 4
jmp 0x140013859
test edi, edi
jne 0x140013c48
mov rax, qword [rbx + 0x50]
cmp qword [rax], rsi
jne 0x14001390f
mov rbp, qword [rbx]
lea r9, [rsp + 0x30]
mov rdx, qword [rbx + 0xd8]
xor r8d, r8d
mov rcx, rbp
call qword [rbp + gethostname]
mov edi, eax
test eax, eax
jne 0x14001390f
cmp dword [rsp + 0x30], esi
je 0x14001390f
mov r8, qword [rbx + 0x50]
lea rax, [rsp + 0x38]
mov rdx, qword [rbx + 0xd8]
mov r9d, 0x802
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], esi
call qword [rbp + Ordinal_41]
mov edi, eax
test eax, eax
jne 0x14001390f
test byte [rsp + 0x38], 1
je 0x14001390f
lea rax, [0x1402e5e14]
mov qword [rsp + 0x78], r14
mov edi, reloc.WLDAP32.dll_Ordinal_14
mov qword [rsp + 0x20], rax
mov ecx, edi
lea r8, str.cannot_open_file
mov r9d, 0xe048
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140007170
mov r14, qword [rbx + 0x50]
mov rax, qword [r14]
test rax, rax
je 0x14001390a
mov rcx, r14
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [r14], rsi
mov r14, qword [rsp + 0x78]
mov rcx, qword [rbx + 0x50]
mov rax, qword [rcx]
test rax, rax
je 0x14001395b
cmp byte [rbx + 0xb], sil
jne 0x14001392f
mov edx, 2
call qword [rax + Ordinal_41]
mov edi, eax
test eax, eax
jne 0x14001393f
mov rcx, qword [rbx + 0x50]
lea rdx, [rbx + 0x68]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov edi, eax
test edi, edi
jne 0x140013990
mov edx, esi
mov rcx, rbx
cmp byte [rbx + 0x10], dl
sete dl
call fcn.1400115c0
mov edi, eax
mov byte [rbx + 0x14], sil
jmp 0x14001398c
cmp byte [rbx + 8], sil
jne 0x14001398c
mov rcx, qword [rbx + 0x48]
mov rax, qword [rcx]
test rax, rax
je 0x140013985
cmp byte [rbx + 0x11], sil
jne 0x14001397b
mov edx, 1
call qword [rax + 0x40]
cmp byte [rbx + 0x15], 5
je 0x140013985
mov byte [rbx + 0x15], 1
movzx eax, byte [rbx + 0x10]
mov byte [rbx + 0x16], al
test edi, edi
je 0x1400139bc
movzx eax, dil
cmp eax, 0xd
je 0x1400139a2
cmp eax, 0xa
jne 0x140013c44
lea rax, [0x1400141d0]
mov dword [rbx + 0x2c], edi
mov qword [rbx + 0x108], rax
mov byte [rbx + 0x14], 6
jmp 0x140013c44
cmp byte [rbx + 0x10], sil
jne 0x140013a66
cmp byte [rbx + 0x1b], sil
je 0x140013a66
mov rcx, qword [rbx + 0x48]
lea rdx, [rsp + 0x38]
mov r9d, Ordinal_26
mov rax, qword [rcx]
lea r8d, [r9 - 8]
call qword [rax + reloc.WS2_32.dll_recv]
mov edi, eax
test eax, eax
je 0x140013a02
cmp eax, 0x20a
jne 0x140013c48
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov rax, qword [rbx + 0x88]
cmp rax, qword [rsp + 0x38]
jne 0x140013a1e
mov rax, qword [rbx + 0x90]
cmp rax, qword [rsp + 0x40]
je 0x140013a66
inc dword [rbx + 0x84]
mov rax, qword [rbx + 0x70]
test rax, rax
je 0x140013a40
nop dword [rax]
mov dword [rax + 0x18], 1
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x140013a30
mov rcx, qword [rbx + 0x118]
xor edx, edx
call fcn.14000e4c0
cmp byte [rbx + 0x1a], sil
je 0x140013a66
mov rcx, qword [rbx + 0x48]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + Ordinal_147]
mov edi, esi
cmp byte [rbx + 0x10], sil
jne 0x140013b33
mov rax, qword [rbx]
lea r9, [rsp + 0x30]
mov rdx, qword [rbx + 0x128]
xor r8d, r8d
mov rcx, rax
call qword [rax + gethostname]
mov edi, eax
test eax, eax
jne 0x140013b33
cmp dword [rsp + 0x30], esi
je 0x140013b29
mov rax, qword [rbx + 0x120]
test rax, rax
je 0x140013ab9
cmp word [rax + 0x3c], si
jl 0x140013ab9
mov eax, dword [rax + 0x5c]
test eax, eax
jne 0x140013af2
jmp 0x140013abb
mov eax, esi
mov rcx, qword [rbx + 0x48]
mov r8, qword [rcx]
test r8, r8
je 0x140013af2
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], rsi
call qword [r8 + 0x30]
mov edi, eax
test eax, eax
jne 0x140013b33
movsxd rcx, dword [rbx + 0xbc]
mov rax, qword [rsp + 0x38]
dec rax
add rax, rcx
cqo
idiv rcx
cmp eax, dword [rbx + 0xc0]
jbe 0x140013b00
mov dword [rbx + 0xc0], eax
test eax, eax
jne 0x140013b1b
mov rax, qword [rbx]
xor r8d, r8d
mov rdx, qword [rbx + 0x128]
mov rcx, rax
call qword [rax + 0x30]
mov edi, eax
jmp 0x140013b33
xor edx, edx
mov rcx, rbx
call fcn.140015ba0
mov edi, eax
jmp 0x140013b33
cmp byte [rbx + 9], 5
jne 0x140013b33
mov byte [rbx + 9], sil
mov rbp, qword [rbx + 0x120]
test rbp, rbp
je 0x140013c26
mov dword [rsp + 0x38], esi
cmp byte [rbp + 0x40], sil
je 0x140013b72
cmp byte [rbp + 0x3f], sil
jne 0x140013b67
mov rcx, qword [rbp + 8]
xor edx, edx
mov rax, qword [rcx]
lea r9d, [rdx + 9]
lea r8d, [rdx + 1]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
mov byte [rbp + 0x40], sil
mov dword [rbp + 0x7c], esi
mov byte [rbp + 0x43], sil
movsx edx, word [rbp + 0x3c]
test dx, dx
js 0x140013ba1
cmp byte [rbp + 0x3f], sil
jne 0x140013b98
mov rcx, qword [rbp + 8]
mov r9d, 5
add edx, 3
mov rax, qword [rcx]
lea r8d, [r9 - 4]
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
mov eax, 0xffffffff
mov word [rbp + 0x3c], ax
mov rbp, qword [rbx + 0x120]
nop dword [rax + rax]
inc esi
lea rdx, [rsp + 0x38]
mov r9d, esi
xor r8d, r8d
mov rcx, rbp
call fcn.140017f20
mov edi, eax
cmp eax, 0xffffffff
je 0x140013bb0
test eax, eax
jne 0x140013bd6
cmp dword [rsp + 0x38], eax
je 0x140013c26
inc dword [rbx + 0x84]
mov rax, qword [rbx + 0x70]
test rax, rax
je 0x140013c00
nop word [rax + rax]
mov dword [rax + 0x18], 1
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x140013bf0
mov rcx, qword [rbx + 0x118]
xor edx, edx
call fcn.14000e4c0
cmp byte [rbx + 0x1a], 0
je 0x140013c26
mov rcx, qword [rbx + 0x48]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + Ordinal_147]
cmp byte [rbx + 0x10], 0
jne 0x140013c44
cmp byte [rbx + 0x14], 0
jne 0x140013c44
test edi, edi
jne 0x140013c48
lea rdx, [rbx + 0x1c]
mov rcx, rbx
call fcn.140011d40
mov edi, eax
test edi, edi
je 0x140013c52
mov rcx, rbx
call fcn.140010880
jmp 0x140013c5a
mov byte [rbx + 0x14], 1
mov byte [rbx + 0x1b], 1
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140252d20
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret