Function at 0x140297650
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.140473cc0
sub rsp, rax
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x14029769b
cmp dword [rsp + 0x3c], 2
je 0x14029769b
cmp dword [rsp + 0x3c], 0x17
je 0x14029769b
jmp 0x14029769d
jmp 0x1402976d3
call fcn.1402506f0
lea r8, str.BIO_lookup_ex
mov edx, 0x2b1
lea rcx, [0x1404acf40]
call fcn.140250740
xor r8d, r8d
mov edx, 0x83
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1402507b0
xor eax, eax
jmp 0x140297dc8
call fcn.140296da0
cmp eax, 1
je 0x1402976e4
xor eax, eax
jmp 0x140297dc8
xor eax, eax
cmp eax, 1
je 0x1402978ba
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x34], 0
mov r8d, Ordinal_50
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 0x140297765
cmp dword [rsp + 0x118], 0
jne 0x140297765
mov eax, dword [rsp + 0xb8]
bts eax, 0xa
mov dword [rsp + 0xb8], eax
cmp dword [rsp + 0x110], 1
jne 0x140297780
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.140298210
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x140297817
cmp dword [rsp + 0x58], 8
je 0x1402977c1
jmp 0x140297824
cmp dword [rsp + 0x34], 0
je 0x1402977d2
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x5c], eax
jmp 0x1402977da
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x5c], eax
call fcn.1402506f0
lea r8, str.BIO_lookup_ex
mov edx, 0x2e6
lea rcx, [0x1404acf40]
call fcn.140250740
mov ecx, dword [rsp + 0x5c]
call fcn.1402999f0
mov r8, rax
mov edx, 0x80002
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1402507b0
jmp 0x1402978b5
mov dword [rsp + 0x30], 1
jmp 0x1402978b5
mov eax, dword [rsp + 0xb8]
and eax, 0x400
test eax, eax
je 0x140297864
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 0x140297780
cmp dword [rsp + 0x34], 0
je 0x140297875
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x60], eax
jmp 0x14029787d
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x60], eax
call fcn.1402506f0
lea r8, str.BIO_lookup_ex
mov edx, 0x2f6
lea rcx, [0x1404acf40]
call fcn.140250740
mov ecx, dword [rsp + 0x60]
call fcn.1402999f0
mov r8, rax
mov edx, 0x80002
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1402507b0
jmp 0x140297dc4
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, [0x1402999d0]
lea rcx, [0x1405f7c3c]
call fcn.140268ef0
test eax, eax
je 0x14029790b
mov eax, dword [0x1405f7c40]
mov dword [rsp + 0x64], eax
jmp 0x140297913
mov dword [rsp + 0x64], 0
cmp dword [rsp + 0x64], 0
jne 0x140297956
call fcn.1402506f0
lea r8, str.BIO_lookup_ex
mov edx, 0x321
lea rcx, [0x1404acf40]
call fcn.140250740
xor r8d, r8d
mov edx, 0x8000f
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1402507b0
mov dword [rsp + 0x30], 0
jmp 0x140297db8
mov rcx, qword [0x1405fa5e8]
call fcn.140268ec0
test eax, eax
jne 0x140297973
mov dword [rsp + 0x30], 0
jmp 0x140297db8
mov dword [0x1405f7c38], 0
cmp qword [rsp + 0x100], 0
jne 0x140297a31
lea rax, [0x1404acec8]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x1402979b3
cmp dword [rsp + 0x68], 1
je 0x1402979bf
jmp 0x1402979cb
mov dword [0x1405f7c38], 0x7f000001
jmp 0x140297a2f
mov dword [0x1405f7c38], 0
jmp 0x140297a2f
lea rax, str.We_forgot_to_handle_a_lookup_type_
test rax, rax
je 0x1402979f3
mov r8d, 0x336
lea rdx, str.crypto_bio_bio_addr.c
lea rcx, str._We_forgot_to_handle_a_lookup_type____NULL
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor eax, eax
call fcn.1402506f0
lea r8, str.BIO_lookup_ex
mov edx, 0x337
lea rcx, [0x1404acf40]
call fcn.140250740
xor r8d, r8d
mov edx, 0xc0103
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1402507b0
mov dword [rsp + 0x30], 0
jmp 0x140297db8
jmp 0x140297a8f
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140297a8f
call fcn.1402506f0
lea r8, str.BIO_lookup_ex
mov edx, 0x354
lea rcx, [0x1404acf40]
call fcn.140250740
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_gethostbyname__
mov edx, eax
mov ecx, 2
call fcn.1402507b0
mov dword [rsp + 0x30], 0
jmp 0x140297db8
cmp qword [rsp + 0x108], 0
jne 0x140297ac5
xor eax, eax
mov word [rsp + 0xb0], ax
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x80], rax
jmp 0x140297c30
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 + 0x6c], eax
cmp dword [rsp + 0x6c], 1
je 0x140297b0f
cmp dword [rsp + 0x6c], 2
je 0x140297b1d
jmp 0x140297b29
lea rax, [0x1404aceec]
mov qword [rsp + 0x78], rax
jmp 0x140297b29
lea rax, [0x1404acee8]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x108]
cmp qword [rsp + 0x70], rax
je 0x140297b8a
mov rax, qword [rsp + 0x70]
movsx eax, byte [rax]
test eax, eax
jne 0x140297b8a
cmp dword [rsp + 0x40], 0
jle 0x140297b8a
cmp dword [rsp + 0x40], 0x10000
jge 0x140297b8a
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 0x140297c30
mov rax, qword [rsp + 0x108]
cmp qword [rsp + 0x70], rax
jne 0x140297bfc
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 0x140297bfa
call fcn.1402506f0
lea r8, str.BIO_lookup_ex
mov edx, 0x383
lea rcx, [0x1404acf40]
call fcn.140250740
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_getservbyname__
mov edx, eax
mov ecx, 2
call fcn.1402507b0
jmp 0x140297db8
jmp 0x140297c30
call fcn.1402506f0
lea r8, str.BIO_lookup_ex
mov edx, 0x388
lea rcx, [0x1404acf40]
call fcn.140250740
xor r8d, r8d
mov edx, 0x82
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1402507b0
jmp 0x140297db8
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 0x140297c69
mov rax, qword [rsp + 0x48]
add rax, 8
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax], 0
je 0x140297c76
jmp 0x140297c5b
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 0x140297db0
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.140299860
test eax, eax
jne 0x140297d24
jmp 0x140297d53
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 0x140297c96
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax]
call fcn.140297190
mov rax, qword [rsp + 0x130]
mov qword [rax], 0
call fcn.1402506f0
lea r8, str.BIO_lookup_ex
mov edx, 0x3b2
lea rcx, [0x1404acf40]
call fcn.140250740
xor r8d, r8d
mov edx, 0x80020
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1402507b0
mov dword [rsp + 0x30], 0
jmp 0x140297db8
mov dword [rsp + 0x30], 1
mov rcx, qword [0x1405fa5e8]
call fcn.140268fd0
mov eax, dword [rsp + 0x30]
add rsp, 0xf8
ret