Function at 0x140133940
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.1402b4ee0
sub rsp, rax
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x14013398b
cmp dword [rsp + 0x38], 2
je 0x14013398b
cmp dword [rsp + 0x38], 0x17
je 0x14013398b
jmp 0x14013398d
jmp 0x1401339c3
call fcn.1400a1d90
lea r8, str.BIO_lookup_ex
mov edx, 0x29e
lea rcx, str.crypto_bio_bio_addr.c
call fcn.1400a1de0
xor r8d, r8d
mov edx, 0x83
mov ecx, 0x20
call fcn.1400a1e50
xor eax, eax
jmp 0x14013406a
call fcn.140133130
cmp eax, 1
je 0x1401339d4
xor eax, eax
jmp 0x14013406a
xor eax, eax
cmp eax, 1
je 0x140133b88
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x3c], 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 0x140133a55
cmp dword [rsp + 0x118], 0
jne 0x140133a55
mov eax, dword [rsp + 0xb8]
bts eax, 0xa
mov dword [rsp + 0xb8], eax
cmp dword [rsp + 0x110], 1
jne 0x140133a70
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.1401344f0
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x140133ae5
cmp dword [rsp + 0x58], 8
je 0x140133ab1
jmp 0x140133af2
call fcn.1400a1d90
lea r8, str.BIO_lookup_ex
mov edx, 0x2d3
lea rcx, str.crypto_bio_bio_addr.c
call fcn.1400a1de0
xor r8d, r8d
mov edx, 0xc0100
mov ecx, 0x20
call fcn.1400a1e50
jmp 0x140133b83
mov dword [rsp + 0x30], 1
jmp 0x140133b83
mov eax, dword [rsp + 0xb8]
and eax, 0x400
test eax, eax
je 0x140133b32
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 + 0x34]
mov dword [rsp + 0x3c], eax
jmp 0x140133a70
cmp dword [rsp + 0x3c], 0
je 0x140133b43
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x5c], eax
jmp 0x140133b4b
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x5c], eax
call fcn.1400a1d90
lea r8, str.BIO_lookup_ex
mov edx, 0x2e2
lea rcx, str.crypto_bio_bio_addr.c
call fcn.1400a1de0
mov ecx, dword [rsp + 0x5c]
call fcn.140135d40
mov r8, rax
mov edx, 0x80002
mov ecx, 0x20
call fcn.1400a1e50
jmp 0x140134066
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, [0x140135d20]
lea rcx, [0x14036bbec]
call fcn.140095750
test eax, eax
je 0x140133bd9
mov eax, dword [0x14036bbf0]
mov dword [rsp + 0x60], eax
jmp 0x140133be1
mov dword [rsp + 0x60], 0
cmp dword [rsp + 0x60], 0
jne 0x140133c24
call fcn.1400a1d90
lea r8, str.BIO_lookup_ex
mov edx, 0x30c
lea rcx, str.crypto_bio_bio_addr.c
call fcn.1400a1de0
xor r8d, r8d
mov edx, 0xc0100
mov ecx, 0x20
call fcn.1400a1e50
mov dword [rsp + 0x30], 0
jmp 0x14013405a
mov rcx, qword [0x14036db88]
call fcn.140095890
test eax, eax
jne 0x140133c41
mov dword [rsp + 0x30], 0
jmp 0x14013405a
mov dword [0x14036bbe8], 0
cmp qword [rsp + 0x100], 0
jne 0x140133cd3
lea rax, [0x1402ee788]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x140133c7d
cmp dword [rsp + 0x64], 1
je 0x140133c89
jmp 0x140133c95
mov dword [0x14036bbe8], 0x7f000001
jmp 0x140133cd1
mov dword [0x14036bbe8], 0
jmp 0x140133cd1
call fcn.1400a1d90
lea r8, str.BIO_lookup_ex
mov edx, 0x322
lea rcx, str.crypto_bio_bio_addr.c
call fcn.1400a1de0
xor r8d, r8d
mov edx, 0xc0103
mov ecx, 0x20
call fcn.1400a1e50
mov dword [rsp + 0x30], 0
jmp 0x14013405a
jmp 0x140133d31
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140133d31
call fcn.1400a1d90
lea r8, str.BIO_lookup_ex
mov edx, 0x33f
lea rcx, str.crypto_bio_bio_addr.c
call fcn.1400a1de0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_gethostbyname__
mov edx, eax
mov ecx, 2
call fcn.1400a1e50
mov dword [rsp + 0x30], 0
jmp 0x14013405a
cmp qword [rsp + 0x108], 0
jne 0x140133d67
xor eax, eax
mov word [rsp + 0xb0], ax
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x80], rax
jmp 0x140133ed2
mov qword [rsp + 0x70], 0
mov r8d, 0xa
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.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 + 0x68], eax
cmp dword [rsp + 0x68], 1
je 0x140133db1
cmp dword [rsp + 0x68], 2
je 0x140133dbf
jmp 0x140133dcb
lea rax, [0x1402ee7ac]
mov qword [rsp + 0x78], rax
jmp 0x140133dcb
lea rax, [0x1402ee7a8]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x108]
cmp qword [rsp + 0x70], rax
je 0x140133e2c
mov rax, qword [rsp + 0x70]
movsx eax, byte [rax]
test eax, eax
jne 0x140133e2c
cmp dword [rsp + 0x40], 0
jle 0x140133e2c
cmp dword [rsp + 0x40], 0x10000
jge 0x140133e2c
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 0x140133ed2
mov rax, qword [rsp + 0x108]
cmp qword [rsp + 0x70], rax
jne 0x140133e9e
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 0x140133e9c
call fcn.1400a1d90
lea r8, str.BIO_lookup_ex
mov edx, 0x36e
lea rcx, str.crypto_bio_bio_addr.c
call fcn.1400a1de0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_getservbyname__
mov edx, eax
mov ecx, 2
call fcn.1400a1e50
jmp 0x14013405a
jmp 0x140133ed2
call fcn.1400a1d90
lea r8, str.BIO_lookup_ex
mov edx, 0x373
lea rcx, str.crypto_bio_bio_addr.c
call fcn.1400a1de0
xor r8d, r8d
mov edx, 0x82
mov ecx, 0x20
call fcn.1400a1e50
jmp 0x14013405a
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 0x140133f0b
mov rax, qword [rsp + 0x48]
add rax, 8
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax], 0
je 0x140133f18
jmp 0x140133efd
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 0x140134052
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.140135b80
test eax, eax
jne 0x140133fc6
jmp 0x140133ff5
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 0x140133f38
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax]
call fcn.140133520
mov rax, qword [rsp + 0x130]
mov qword [rax], 0
call fcn.1400a1d90
lea r8, str.BIO_lookup_ex
mov edx, 0x39d
lea rcx, str.crypto_bio_bio_addr.c
call fcn.1400a1de0
xor r8d, r8d
mov edx, 0xc0100
mov ecx, 0x20
call fcn.1400a1e50
mov dword [rsp + 0x30], 0
jmp 0x14013405a
mov dword [rsp + 0x30], 1
mov rcx, qword [0x14036db88]
call fcn.140095830
mov eax, dword [rsp + 0x30]
add rsp, 0xf8
ret