Function at 0x1401946f0
Capabilities:
Resolve dns

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0xf8
call fcn.14036a3f0
sub rsp, rax
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x14019473b
cmp dword [rsp + 0x3c], 2
je 0x14019473b
cmp dword [rsp + 0x3c], 0x17
je 0x14019473b
jmp 0x14019473d
jmp 0x140194773
call fcn.140141f60
lea r8, str.BIO_lookup_ex
mov edx, 0x2b1
lea rcx, [0x1403937f0]
call fcn.140141fb0
xor r8d, r8d
mov edx, 0x83
mov ecx, 0x20
call fcn.140142020
xor eax, eax
jmp 0x140194e66
call fcn.140193e70
cmp eax, 1
je 0x140194784
xor eax, eax
jmp 0x140194e66
xor eax, eax
cmp eax, 1
je 0x14019495a
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x34], 0
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0xb8]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0xbc], eax
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0xc0], eax
mov eax, dword [rsp + 0x128]
mov dword [rsp + 0xc4], eax
cmp qword [rsp + 0x100], 0
je 0x140194805
cmp dword [rsp + 0x118], 0
jne 0x140194805
mov eax, dword [rsp + 0xb8]
bts eax, 0xa
mov dword [rsp + 0xb8], eax
cmp dword [rsp + 0x110], 1
jne 0x140194820
mov eax, dword [rsp + 0xb8]
or eax, 1
mov dword [rsp + 0xb8], eax
mov r9, qword [rsp + 0x130]
lea r8, [rsp + 0xb8]
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
call fcn.1401952b0
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x1401948b7
cmp dword [rsp + 0x58], 8
je 0x140194861
jmp 0x1401948c4
cmp dword [rsp + 0x34], 0
je 0x140194872
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x5c], eax
jmp 0x14019487a
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x5c], eax
call fcn.140141f60
lea r8, str.BIO_lookup_ex
mov edx, 0x2e6
lea rcx, [0x1403937f0]
call fcn.140141fb0
mov ecx, dword [rsp + 0x5c]
call fcn.140196a90
mov r8, rax
mov edx, 0x80002
mov ecx, 0x20
call fcn.140142020
jmp 0x140194955
mov dword [rsp + 0x30], 1
jmp 0x140194955
mov eax, dword [rsp + 0xb8]
and eax, 0x400
test eax, eax
je 0x140194904
mov eax, dword [rsp + 0xb8]
btr eax, 0xa
mov dword [rsp + 0xb8], eax
mov eax, dword [rsp + 0xb8]
or eax, 4
mov dword [rsp + 0xb8], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x34], eax
jmp 0x140194820
cmp dword [rsp + 0x34], 0
je 0x140194915
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x60], eax
jmp 0x14019491d
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x60], eax
call fcn.140141f60
lea r8, str.BIO_lookup_ex
mov edx, 0x2f6
lea rcx, [0x1403937f0]
call fcn.140141fb0
mov ecx, dword [rsp + 0x60]
call fcn.140196a90
mov r8, rax
mov edx, 0x80002
mov ecx, 0x20
call fcn.140142020
jmp 0x140194e62
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
xor eax, eax
mov word [rsp + 0xb0], ax
lea rdx, [0x140196a70]
lea rcx, [0x14041b9fc]
call fcn.140149eb0
test eax, eax
je 0x1401949ab
mov eax, dword [0x14041ba00]
mov dword [rsp + 0x64], eax
jmp 0x1401949b3
mov dword [rsp + 0x64], 0
cmp dword [rsp + 0x64], 0
jne 0x1401949f6
call fcn.140141f60
lea r8, str.BIO_lookup_ex
mov edx, 0x321
lea rcx, [0x1403937f0]
call fcn.140141fb0
xor r8d, r8d
mov edx, 0x8000f
mov ecx, 0x20
call fcn.140142020
mov dword [rsp + 0x30], 0
jmp 0x140194e56
mov rcx, qword [0x14041d928]
call fcn.140149ff0
test eax, eax
jne 0x140194a13
mov dword [rsp + 0x30], 0
jmp 0x140194e56
mov dword [0x14041b9f8], 0
cmp qword [rsp + 0x100], 0
jne 0x140194ad0
lea rax, [0x140393778]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x140194a53
cmp dword [rsp + 0x68], 1
je 0x140194a5f
jmp 0x140194a6b
mov dword [0x14041b9f8], 0x7f000001
jmp 0x140194ace
mov dword [0x14041b9f8], 0
jmp 0x140194ace
lea rax, str.We_forgot_to_handle_a_lookup_type_
test rax, rax
je 0x140194a92
mov r8d, 0x336
lea rdx, str.crypto_bio_bio_addr.c
lea rcx, str._We_forgot_to_handle_a_lookup_type____NULL
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
xor eax, eax
call fcn.140141f60
lea r8, str.BIO_lookup_ex
mov edx, 0x337
lea rcx, [0x1403937f0]
call fcn.140141fb0
xor r8d, r8d
mov edx, 0xc0103
mov ecx, 0x20
call fcn.140142020
mov dword [rsp + 0x30], 0
jmp 0x140194e56
jmp 0x140194b2e
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140194b2e
call fcn.140141f60
lea r8, str.BIO_lookup_ex
mov edx, 0x354
lea rcx, [0x1403937f0]
call fcn.140141fb0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_gethostbyname__
mov edx, eax
mov ecx, 2
call fcn.140142020
mov dword [rsp + 0x30], 0
jmp 0x140194e56
cmp qword [rsp + 0x108], 0
jne 0x140194b64
xor eax, eax
mov word [rsp + 0xb0], ax
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x80], rax
jmp 0x140194cce
mov qword [rsp + 0x70], 0
mov r8d, 0xa
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x108]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x78], 0
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x6c], 1
je 0x140194bad
cmp dword [rsp + 0x6c], 2
je 0x140194bbb
jmp 0x140194bc7
lea rax, [0x14039379c]
mov qword [rsp + 0x78], rax
jmp 0x140194bc7
lea rax, [0x140393798]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x108]
cmp qword [rsp + 0x70], rax
je 0x140194c28
mov rax, qword [rsp + 0x70]
movsx eax, byte [rax]
test eax, eax
jne 0x140194c28
cmp dword [rsp + 0x40], 0
jle 0x140194c28
cmp dword [rsp + 0x40], 0x10000
jge 0x140194c28
movzx ecx, word [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0xb0], ax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x80], rax
jmp 0x140194cce
mov rax, qword [rsp + 0x108]
cmp qword [rsp + 0x70], rax
jne 0x140194c9a
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.WS2_32.dll_getservbyname]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x140194c98
call fcn.140141f60
lea r8, str.BIO_lookup_ex
mov edx, 0x383
lea rcx, [0x1403937f0]
call fcn.140141fb0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_getservbyname__
mov edx, eax
mov ecx, 2
call fcn.140142020
jmp 0x140194e56
jmp 0x140194cce
call fcn.140141f60
lea r8, str.BIO_lookup_ex
mov edx, 0x388
lea rcx, [0x1403937f0]
call fcn.140141fb0
xor r8d, r8d
mov edx, 0x82
mov ecx, 0x20
call fcn.140142020
jmp 0x140194e56
mov rax, qword [rsp + 0x130]
mov qword [rax], 0
mov qword [rsp + 0x90], 0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
jmp 0x140194d07
mov rax, qword [rsp + 0x48]
add rax, 8
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax], 0
je 0x140194d14
jmp 0x140194cf9
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 3
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x48]
sub rax, 8
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x88]
dec rax
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0xe8], 0
jbe 0x140194e4e
mov rax, qword [rsp + 0x50]
movsx rax, word [rax + 0x12]
mov rcx, qword [rsp + 0x50]
movsx ecx, word [rcx + 0x10]
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rsp + 0x80]
movzx edx, word [rdx + 0x18]
mov word [rsp + 0x20], dx
mov r9, rax
mov rax, qword [rsp + 0x48]
mov r8, qword [rax]
mov edx, dword [rsp + 0x120]
call fcn.140196900
test eax, eax
jne 0x140194dc2
jmp 0x140194df1
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x130]
mov rcx, qword [rcx]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x90]
mov qword [rax], rcx
jmp 0x140194d34
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax]
call fcn.140194230
mov rax, qword [rsp + 0x130]
mov qword [rax], 0
call fcn.140141f60
lea r8, str.BIO_lookup_ex
mov edx, 0x3b2
lea rcx, [0x1403937f0]
call fcn.140141fb0
xor r8d, r8d
mov edx, 0x80020
mov ecx, 0x20
call fcn.140142020
mov dword [rsp + 0x30], 0
jmp 0x140194e56
mov dword [rsp + 0x30], 1
mov rcx, qword [0x14041d928]
call fcn.140149f90
mov eax, dword [rsp + 0x30]
add rsp, 0xf8
ret