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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov dword [rsp + 0x3c], 0xffffffff
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
lea rdx, [0x180158bfc]
mov rcx, qword [rsp + 0xc0]
call fcn.1800ea670
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x18005a539
mov rax, qword [rsp + 0x88]
add rax, 3
mov qword [rsp + 0x48], rax
lea rcx, [0x180159148]
call fcn.1800fb030
mov r8, rax
mov rdx, qword [rsp + 0xc0]
lea rcx, [0x180159150]
call fcn.180064e10
test eax, eax
je 0x18005a3e8
mov dword [rsp + 0xc8], 2
jmp 0x18005a537
lea rcx, [0x180159158]
call fcn.1800fb030
mov r8, rax
mov rdx, qword [rsp + 0xc0]
lea rcx, str.socks5h
call fcn.180064e10
test eax, eax
je 0x18005a41f
mov dword [rsp + 0xc8], 7
jmp 0x18005a537
lea rcx, [0x180159168]
call fcn.1800fb030
mov r8, rax
mov rdx, qword [rsp + 0xc0]
lea rcx, str.socks5
call fcn.180064e10
test eax, eax
je 0x18005a456
mov dword [rsp + 0xc8], 5
jmp 0x18005a537
lea rcx, [0x180159178]
call fcn.1800fb030
mov r8, rax
mov rdx, qword [rsp + 0xc0]
lea rcx, str.socks4a
call fcn.180064e10
test eax, eax
je 0x18005a48d
mov dword [rsp + 0xc8], 6
jmp 0x18005a537
lea rcx, [0x180159188]
call fcn.1800fb030
mov r8, rax
mov rdx, qword [rsp + 0xc0]
lea rcx, str.socks4
call fcn.180064e10
test eax, eax
jne 0x18005a4db
lea rcx, [0x180159198]
call fcn.1800fb030
mov r8, rax
mov rdx, qword [rsp + 0xc0]
lea rcx, str.socks
call fcn.180064e10
test eax, eax
je 0x18005a4e8
mov dword [rsp + 0xc8], 4
jmp 0x18005a537
lea rcx, [0x1801591a8]
call fcn.1800fb030
mov r8, rax
mov rdx, qword [rsp + 0xc0]
lea rcx, str.http:
call fcn.180064e10
test eax, eax
je 0x18005a511
jmp 0x18005a537
mov r8, qword [rsp + 0xc0]
lea rdx, str.Unsupported_proxy_scheme_for__s
mov rcx, qword [rsp + 0xb0]
call fcn.180060120
mov eax, 7
jmp 0x18005ac09
jmp 0x18005a546
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x48], rax
mov rax, qword [0x1801588e8]
mov eax, dword [rax + 0x10]
and eax, 0x10
test eax, eax
jne 0x18005a587
cmp dword [rsp + 0xc8], 2
jne 0x18005a587
mov r8, qword [rsp + 0xc0]
lea rdx, str.Unsupported_proxy__s__libcurl_is_built_without_the_HTTPS_proxy_support.
mov rcx, qword [rsp + 0xb0]
call fcn.180060120
mov eax, 4
jmp 0x18005ac09
cmp dword [rsp + 0xc8], 7
je 0x18005a5b9
cmp dword [rsp + 0xc8], 5
je 0x18005a5b9
cmp dword [rsp + 0xc8], 6
je 0x18005a5b9
cmp dword [rsp + 0xc8], 4
je 0x18005a5b9
mov dword [rsp + 0x70], 0
jmp 0x18005a5c1
mov dword [rsp + 0x70], 1
cmp dword [rsp + 0x70], 0
jne 0x18005a5d2
mov dword [rsp + 0x74], 0
jmp 0x18005a5da
mov dword [rsp + 0x74], 1
movzx eax, byte [rsp + 0x74]
mov byte [rsp + 0x38], al
mov edx, 0x40
mov rcx, qword [rsp + 0x48]
call fcn.1800ea994
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x18005a650
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call fcn.180055e60
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0
je 0x18005a643
mov eax, dword [rsp + 0x78]
jmp 0x18005ac09
mov rax, qword [rsp + 0x68]
inc rax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x48]
movsx eax, byte [rax]
cmp eax, 0x5b
jne 0x18005a7d4
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
test eax, eax
je 0x18005a6cd
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax]
mov ecx, eax
call fcn.1800befa0
test eax, eax
jne 0x18005a6be
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x3a
je 0x18005a6be
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x2e
jne 0x18005a6cd
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
jmp 0x18005a685
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x25
jne 0x18005a78f
mov r8d, 3
mov rdx, qword [rsp + 0x30]
lea rcx, [0x180158c1c]
call fcn.1800fb0f0
test eax, eax
je 0x18005a70d
lea rdx, str.Please_URL_encode____as___25__see_RFC_6874._n
mov rcx, qword [rsp + 0xb0]
call fcn.18005ffc0
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
test eax, eax
je 0x18005a78f
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax]
mov ecx, eax
call fcn.1800bf060
test eax, eax
jne 0x18005a780
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax]
mov ecx, eax
call fcn.1800befa0
test eax, eax
jne 0x18005a780
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x2d
je 0x18005a780
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x2e
je 0x18005a780
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x5f
je 0x18005a780
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x7e
jne 0x18005a78f
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
jmp 0x18005a71a
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x5d
jne 0x18005a7b3
mov rax, qword [rsp + 0x30]
mov byte [rax], 0
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
jmp 0x18005a7c7
lea rdx, str.Invalid_IPv6_address_format_n
mov rcx, qword [rsp + 0xb0]
call fcn.18005ffc0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x90], rax
mov edx, Ordinal_60
mov rcx, qword [rsp + 0x90]
call fcn.1800ea994
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x18005a8b1
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x60]
mov byte [rax], 0
mov rax, qword [rsp + 0x60]
inc rax
mov qword [rsp + 0x60], rax
mov r8d, 0xa
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call fcn.180102984
mov dword [rsp + 0x3c], eax
cmp qword [rsp + 0x80], 0
je 0x18005a86e
mov rax, qword [rsp + 0x80]
movsx eax, byte [rax]
test eax, eax
je 0x18005a86e
mov rax, qword [rsp + 0x80]
movsx eax, byte [rax]
cmp eax, 0x2f
je 0x18005a86e
mov rax, qword [rsp + 0x80]
movsx eax, byte [rax]
cmp eax, 0x20
jne 0x18005a87f
cmp dword [rsp + 0x3c], 0
jl 0x18005a87f
cmp dword [rsp + 0x3c], 0xffff
jle 0x18005a89a
mov r8, qword [rsp + 0x60]
lea rdx, str.No_valid_port_number_in_proxy_string___s__n
mov rcx, qword [rsp + 0xb0]
call fcn.18005ffc0
jmp 0x18005a8ac
mov rax, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0x3c]
mov dword [rax + 0x180], ecx
jmp 0x18005a96b
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
movsx eax, byte [rcx + rax]
cmp eax, 0x2f
jne 0x18005a906
mov rcx, qword [rsp + 0x58]
call qword [fcn.1800fb1f8]
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x18005a8c8
mov rcx, qword [rsp + 0x50]
call qword [fcn.1800fb1f8]
mov qword [rsp + 0x50], 0
xor eax, eax
test eax, eax
jne 0x18005a8e2
mov eax, 5
jmp 0x18005ac09
mov edx, Ordinal_50
mov rcx, qword [rsp + 0x48]
call fcn.1800ea994
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x18005a92a
mov rax, qword [rsp + 0x68]
mov byte [rax], 0
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x690], 0
je 0x18005a94f
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x690]
mov dword [rsp + 0x3c], eax
jmp 0x18005a96b
cmp dword [rsp + 0xc8], 2
jne 0x18005a963
mov dword [rsp + 0x3c], 0x1bb
jmp 0x18005a96b
mov dword [rsp + 0x3c], 0x438
mov rax, qword [rsp + 0x48]
movsx eax, byte [rax]
test eax, eax
je 0x18005abd3
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x18005a99c
mov rax, qword [rsp + 0xb8]
add rax, 0x110
mov qword [rsp + 0x98], rax
jmp 0x18005a9b2
mov rax, qword [rsp + 0xb8]
add rax, 0x148
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0xc8]
mov dword [rax + 0x24], ecx
cmp qword [rsp + 0x58], 0
je 0x18005ab2c
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x28]
call qword [fcn.1800fb1f8]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x28], 0
xor eax, eax
test eax, eax
jne 0x18005a9da
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb0]
call fcn.18009bfb0
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x28], rax
mov rcx, qword [rsp + 0x58]
call qword [fcn.1800fb1f8]
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x18005aa1d
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x28], 0
jne 0x18005aa67
mov rcx, qword [rsp + 0x50]
call qword [fcn.1800fb1f8]
mov qword [rsp + 0x50], 0
xor eax, eax
test eax, eax
jne 0x18005aa43
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x18005ac09
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x30]
call qword [fcn.1800fb1f8]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x30], 0
xor eax, eax
test eax, eax
jne 0x18005aa67
cmp qword [rsp + 0x50], 0
je 0x18005aac6
mov rcx, qword [rsp + 0x50]
call fcn.1800fb030
cmp rax, 0x100
jae 0x18005aac6
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xb0]
call fcn.18009bfb0
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x30], rax
jmp 0x18005aadc
lea rcx, [0x1801759d6]
call qword [0x180150278]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x30], rax
mov rcx, qword [rsp + 0x50]
call qword [fcn.1800fb1f8]
mov qword [rsp + 0x50], 0
xor eax, eax
test eax, eax
jne 0x18005aadc
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x30], 0
jne 0x18005ab0c
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x18005ac09
mov rax, qword [rsp + 0xb8]
mov eax, dword [rax + 0x3c4]
bts eax, 8
mov rcx, qword [rsp + 0xb8]
mov dword [rcx + 0x3c4], eax
cmp dword [rsp + 0x3c], 0
jl 0x18005ab7d
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x3c]
mov dword [rax + 0x20], ecx
mov rax, qword [rsp + 0xb8]
cmp dword [rax + 0x180], 0
jl 0x18005ab6b
movzx eax, byte [rsp + 0x38]
test eax, eax
jne 0x18005ab6b
mov rax, qword [rsp + 0xb8]
cmp qword [rax + 0x110], 0
jne 0x18005ab7d
mov rax, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0x3c]
mov dword [rax + 0x180], ecx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [fcn.1800fb1f8]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
xor eax, eax
test eax, eax
jne 0x18005ab7d
mov rcx, qword [rsp + 0x48]
call qword [0x180150278]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
jne 0x18005abd3
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x18005ac09
mov rcx, qword [rsp + 0x58]
call qword [fcn.1800fb1f8]
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x18005abd3
mov rcx, qword [rsp + 0x50]
call qword [fcn.1800fb1f8]
mov qword [rsp + 0x50], 0
xor eax, eax
test eax, eax
jne 0x18005abed
xor eax, eax
add rsp, 0xa8
ret