Function at 0x1400a57d0
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.14028b850
sub rsp, rax
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xd0], 0
je 0x1400a5827
cmp dword [rsp + 0xd0], 2
je 0x1400a5827
cmp dword [rsp + 0xd0], 0x17
je 0x1400a5827
jmp 0x1400a5829
jmp 0x1400a585f
call fcn.140088000
lea r8, str.BIO_lookup_ex
mov edx, 0x29e
lea rcx, str.....Srcopenssl_3.0.12crypto_bio_bio_addr.c
call fcn.1400881c0
xor r8d, r8d
mov edx, 0x83
mov ecx, 0x20
call fcn.140088360
xor eax, eax
jmp 0x1400a5f48
call fcn.1400a61f0
cmp eax, 1
je 0x1400a5870
xor eax, eax
jmp 0x1400a5f48
xor eax, eax
cmp eax, 1
je 0x1400a5a10
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 0
mov r8d, gethostbyaddr
xor edx, edx
lea rcx, [rsp + 0x40]
call sub.MSVCR90.dll_memset
mov r11d, dword [rsp + 0x118]
mov dword [rsp + 0x44], r11d
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x128]
mov dword [rsp + 0x4c], eax
cmp qword [rsp + 0x100], 0
je 0x1400a58e2
cmp dword [rsp + 0x118], 0
jne 0x1400a58e2
mov eax, dword [rsp + 0x40]
or eax, 0x400
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x110], 1
jne 0x1400a58f7
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
mov r9, qword [rsp + 0x130]
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
call fcn.1400a5f50
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0xd4], eax
cmp dword [rsp + 0xd4], 0
je 0x1400a5972
cmp dword [rsp + 0xd4], 8
je 0x1400a593e
jmp 0x1400a597f
call fcn.140088000
lea r8, str.BIO_lookup_ex
mov edx, 0x2d3
lea rcx, str.....Srcopenssl_3.0.12crypto_bio_bio_addr.c
call fcn.1400881c0
xor r8d, r8d
mov edx, 0xc0100
mov ecx, 0x20
call fcn.140088360
jmp 0x1400a5a0b
mov dword [rsp + 0x30], 1
jmp 0x1400a5a0b
mov eax, dword [rsp + 0x40]
and eax, 0x400
test eax, eax
je 0x1400a59b1
mov eax, dword [rsp + 0x40]
and eax, 0xfffffbff
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
or eax, 4
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
jmp 0x1400a58f7
cmp dword [rsp + 0x38], 0
je 0x1400a59c5
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0xd8], eax
jmp 0x1400a59d0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0xd8], eax
call fcn.140088000
lea r8, str.BIO_lookup_ex
mov edx, 0x2e2
lea rcx, str.....Srcopenssl_3.0.12crypto_bio_bio_addr.c
call fcn.1400881c0
mov ecx, dword [rsp + 0xd8]
call fcn.1400a3e70
mov r8, rax
mov edx, 0x80002
mov ecx, 0x20
call fcn.140088360
jmp 0x1400a5f44
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
xor eax, eax
mov word [rsp + 0x88], ax
lea rdx, [0x1400a6120]
lea rcx, [0x1403762e4]
call fcn.140095870
test eax, eax
je 0x1400a5a5e
mov eax, dword [0x1403762e8]
mov dword [rsp + 0xdc], eax
jmp 0x1400a5a69
mov dword [rsp + 0xdc], 0
cmp dword [rsp + 0xdc], 0
jne 0x1400a5aaf
call fcn.140088000
lea r8, str.BIO_lookup_ex
mov edx, 0x30c
lea rcx, str.....Srcopenssl_3.0.12crypto_bio_bio_addr.c
call fcn.1400881c0
xor r8d, r8d
mov edx, 0xc0100
mov ecx, 0x20
call fcn.140088360
mov dword [rsp + 0x30], 0
jmp 0x1400a5f38
mov rcx, qword [0x1403789c8]
call fcn.1400957c0
test eax, eax
jne 0x1400a5acc
mov dword [rsp + 0x30], 0
jmp 0x1400a5f38
mov dword [0x1403762e0], 0
cmp qword [rsp + 0x100], 0
jne 0x1400a5b6e
lea rax, [0x1402baff8]
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0xe0], eax
cmp dword [rsp + 0xe0], 0
je 0x1400a5b18
cmp dword [rsp + 0xe0], 1
je 0x1400a5b24
jmp 0x1400a5b30
mov dword [0x1403762e0], 0x7f000001
jmp 0x1400a5b6c
mov dword [0x1403762e0], 0
jmp 0x1400a5b6c
call fcn.140088000
lea r8, str.BIO_lookup_ex
mov edx, 0x322
lea rcx, str.....Srcopenssl_3.0.12crypto_bio_bio_addr.c
call fcn.1400881c0
xor r8d, r8d
mov edx, 0xc0103
mov ecx, 0x20
call fcn.140088360
mov dword [rsp + 0x30], 0
jmp 0x1400a5f38
jmp 0x1400a5bd2
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jne 0x1400a5bd2
call fcn.140088000
lea r8, str.BIO_lookup_ex
mov edx, 0x33f
lea rcx, str.....Srcopenssl_3.0.12crypto_bio_bio_addr.c
call fcn.1400881c0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_gethostbyname__
mov edx, eax
mov ecx, 2
call fcn.140088360
mov dword [rsp + 0x30], 0
jmp 0x1400a5f38
cmp qword [rsp + 0x108], 0
jne 0x1400a5c05
xor eax, eax
mov word [rsp + 0x88], ax
mov qword [rsp + 0x80], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x90], rax
jmp 0x1400a5d9f
mov qword [rsp + 0xb0], 0
mov r8d, 0xa
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x108]
call sub.MSVCR90.dll_strtol
mov dword [rsp + 0xa8], eax
mov qword [rsp + 0xa0], 0
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0xe4], eax
cmp dword [rsp + 0xe4], 1
je 0x1400a5c63
cmp dword [rsp + 0xe4], 2
je 0x1400a5c74
jmp 0x1400a5c83
lea rax, [0x1402bb0b4]
mov qword [rsp + 0xa0], rax
jmp 0x1400a5c83
lea rax, [0x1402bb0b8]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x108]
cmp qword [rsp + 0xb0], rax
je 0x1400a5cf3
mov rax, qword [rsp + 0xb0]
movsx eax, byte [rax]
test eax, eax
jne 0x1400a5cf3
cmp dword [rsp + 0xa8], 0
jle 0x1400a5cf3
cmp dword [rsp + 0xa8], 0x10000
jge 0x1400a5cf3
movzx ecx, word [rsp + 0xa8]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x88], ax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x90], rax
jmp 0x1400a5d9f
mov rax, qword [rsp + 0x108]
cmp qword [rsp + 0xb0], rax
jne 0x1400a5d6b
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.WS2_32.dll_getservbyname]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
jne 0x1400a5d69
call fcn.140088000
lea r8, str.BIO_lookup_ex
mov edx, 0x36e
lea rcx, str.....Srcopenssl_3.0.12crypto_bio_bio_addr.c
call fcn.1400881c0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_getservbyname__
mov edx, eax
mov ecx, 2
call fcn.140088360
jmp 0x1400a5f38
jmp 0x1400a5d9f
call fcn.140088000
lea r8, str.BIO_lookup_ex
mov edx, 0x373
lea rcx, str.....Srcopenssl_3.0.12crypto_bio_bio_addr.c
call fcn.1400881c0
xor r8d, r8d
mov edx, 0x82
mov ecx, 0x20
call fcn.140088360
jmp 0x1400a5f38
mov rax, qword [rsp + 0x130]
mov qword [rax], 0
mov qword [rsp + 0xc8], 0
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xb8], rax
jmp 0x1400a5de4
mov rax, qword [rsp + 0xb8]
add rax, 8
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
cmp qword [rax], 0
je 0x1400a5df4
jmp 0x1400a5dd0
mov rcx, qword [rsp + 0x98]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rsp + 0xb8]
sub rax, rcx
sar rax, 3
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xb8]
sub rax, 8
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0xc0]
sub rax, 1
mov qword [rsp + 0xc0], rax
test rcx, rcx
jbe 0x1400a5f30
mov rax, qword [rsp + 0x98]
movsx r9, word [rax + 0x12]
mov rax, qword [rsp + 0x98]
movsx ecx, word [rax + 0x10]
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x90]
movzx eax, word [rax + 0x18]
mov word [rsp + 0x20], ax
mov r8, qword [rsp + 0xb8]
mov r8, qword [r8]
mov edx, dword [rsp + 0x120]
call fcn.1400a5fc0
test eax, eax
jne 0x1400a5ea4
jmp 0x1400a5ed3
mov rcx, qword [rsp + 0xc8]
mov rax, qword [rsp + 0x130]
mov rax, qword [rax]
mov qword [rcx + 0x28], rax
mov rcx, qword [rsp + 0x130]
mov rax, qword [rsp + 0xc8]
mov qword [rcx], rax
jmp 0x1400a5e17
mov rcx, qword [rsp + 0x130]
mov rcx, qword [rcx]
call fcn.1400a5340
mov r11, qword [rsp + 0x130]
mov qword [r11], 0
call fcn.140088000
lea r8, str.BIO_lookup_ex
mov edx, 0x39d
lea rcx, str.....Srcopenssl_3.0.12crypto_bio_bio_addr.c
call fcn.1400881c0
xor r8d, r8d
mov edx, 0xc0100
mov ecx, 0x20
call fcn.140088360
mov dword [rsp + 0x30], 0
jmp 0x1400a5f38
mov dword [rsp + 0x30], 1
mov rcx, qword [0x1403789c8]
call fcn.1400957f0
mov eax, dword [rsp + 0x30]
add rsp, 0xf8
ret