Function at 0x180104620
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x1801d11f0]
xor rax, rsp
mov qword [rbp + 0x220], rax
movsxd rsi, r8d
xor r13d, r13d
cmp dword [rdx + 0x13c], 2
mov rdi, rcx
mov ecx, 0x2b8
mov qword [rbp - 0x18], 0xffffffffffffffff
mov rbx, rdx
mov qword [rbp + 0x48], rsi
lea rax, [rsi + 0x1a]
mov qword [rsp + 0x78], r13
lea rax, [rax + rax*2]
mov qword [rbp - 0x38], r13
lea r15, [rdx + rax*8]
mov r12, rsi
mov qword [rbp - 0x28], r15
lea r14d, [rcx - 0x18]
jne 0x1801046b3
cmp qword [rdx + 0x1f0], 0xffffffffffffffff
mov eax, r14d
cmovne eax, ecx
cmp dword [rax + rdx], 2
je 0x1801046b3
mov rax, qword [rdx + 0x128]
jmp 0x1801046ba
mov rax, qword [rdx + 0xa0]
mov edx, 1
mov qword [rbp - 0x20], rax
mov r9d, edx
lea ecx, [rdx + 4]
lea r8d, [rdx + 1]
call fcn.18011d490
test al, al
je 0x1801046e5
lea rdx, str.schannel:_Windows_version_is_old_and_may_not_be_able_to_connect_to_some_servers_due_to_lack_of_SNI__algorithms__etc._n
mov rcx, rdi
call fcn.1800ed220
cmp byte [rbx + 0x3c8], r13b
je 0x18010472c
lea rcx, [0x18018d63c]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.wine_get_version
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x18010472c
mov edx, 3
lea ecx, [rax + 6]
mov r9d, edx
lea r8d, [rax + 2]
call fcn.18011d490
test al, al
je 0x18010472c
mov cl, 1
jmp 0x18010472e
xor cl, cl
mov rax, qword [r15 + 8]
mov edx, 0x2b8
mov byte [rax + 0x6a], cl
mov ecx, dword [rbx + 0x13c]
cmp ecx, 2
jne 0x180104762
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, rdx
cmp dword [rax + rbx], ecx
je 0x180104762
mov rax, qword [rbx + 0x350]
jmp 0x180104769
mov rax, qword [rbx + 0x2e8]
test rax, rax
jne 0x1801047a6
cmp ecx, 2
jne 0x180104790
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, rdx
cmp dword [rax + rbx], ecx
je 0x180104790
mov rax, qword [rbx + 0x390]
jmp 0x180104797
mov rax, qword [rbx + 0x328]
test rax, rax
jne 0x1801047a6
mov rax, qword [r15 + 8]
mov byte [rax + 0x6b], r13b
jmp 0x1801047cb
mov edx, 1
lea ecx, [rdx + 5]
lea r9d, [rdx + 2]
lea r8d, [rdx + 1]
call fcn.18011d490
test al, al
je 0x1801056c0
mov rax, qword [r15 + 8]
mov byte [rax + 0x6b], 1
mov rax, qword [r15 + 8]
mov qword [rax], r13
cmp dword [rbx + 0x13c], 2
jne 0x1801047fe
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
mov ecx, 0x2b8
cmovne rax, rcx
cmp dword [rax + rbx], 2
je 0x1801047fe
movzx eax, byte [rdi + 0x6b3]
jmp 0x180104805
movzx eax, byte [rdi + 0x5eb]
test al, al
je 0x180104875
mov rcx, rdi
call fcn.1800e7a70
cmp dword [rbx + 0x13c], 2
jne 0x180104839
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
mov ecx, 0x2b8
cmovne rax, rcx
cmp dword [rax + rbx], 2
je 0x180104839
mov r8b, 1
jmp 0x18010483c
xor r8b, r8b
mov dword [rsp + 0x28], esi
lea r9, [rbp - 0x38]
mov rdx, rbx
mov qword [rsp + 0x20], r13
mov rcx, rdi
call fcn.1800e75a0
test al, al
jne 0x18010486d
mov rcx, qword [r15 + 8]
mov rax, qword [rbp - 0x38]
mov qword [rcx], rax
mov rax, qword [r15 + 8]
mov rcx, qword [rax]
inc dword [rcx + 0x18]
mov rcx, rdi
call fcn.1800e7aa0
mov rax, qword [r15 + 8]
cmp qword [rax], r13
jne 0x180105396
xorps xmm0, xmm0
mov edx, 8
movups xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x10], 4
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
cmp byte [rbx + 0x338], r13b
je 0x18010493a
cmp byte [rax + 0x6b], r13b
mov ecx, reloc.WLDAP32.dll_Ordinal_32
mov r8d, 0x2b8
cmovne ecx, edx
mov edx, dword [rbx + 0x13c]
cmp edx, 2
jne 0x1801048ec
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, r8
cmp dword [rax + rbx], edx
je 0x1801048ec
movzx eax, byte [rdi + 0x713]
jmp 0x1801048f3
movzx eax, byte [rdi + 0x64b]
test al, al
je 0x1801048ff
or ecx, 0x1800
jmp 0x18010493f
cmp edx, 2
jne 0x180104921
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, r8
cmp dword [rax + rbx], edx
je 0x180104921
movzx eax, byte [rdi + 0x715]
jmp 0x180104928
movzx eax, byte [rdi + 0x64d]
test al, al
je 0x180104934
or ecx, 0x1a00
jmp 0x18010493f
bts ecx, 9
jmp 0x18010493f
mov ecx, 0x1808
mov dword [rbp + 0x38], ecx
cmp byte [rbx + 0x339], r13b
jne 0x180104951
or ecx, 4
mov dword [rbp + 0x38], ecx
cmp dword [rbx + 0x13c], 2
mov esi, 0x2b8
jne 0x18010497d
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, rsi
cmp dword [rax + rbx], 2
je 0x18010497d
movzx eax, byte [rdi + 0x717]
jmp 0x180104984
movzx eax, byte [rdi + 0x64f]
test al, al
jne 0x18010499a
and ecx, 0xffffffbf
lea rdx, str.schannel:_disabled_automatic_use_of_client_certificate_n
or ecx, 0x10
mov dword [rbp + 0x38], ecx
jmp 0x1801049a1
lea rdx, str.schannel:_enabled_automatic_use_of_client_certificate_n
mov rcx, rdi
call fcn.1800ed220
movsxd r8, dword [rbx + 0x2d8]
cmp r8d, 7
ja case.default.0x1801049cc
lea rdx, [0x180000000]
mov ecx, dword [rdx + r8*4 + 0x105700]
add rcx, rdx
jmp rcx
mov r10d, dword [rbx + 0x13c]
cmp r10d, 2
jne 0x180104a24
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, rsi
cmp dword [rax + rbx], r10d
je 0x180104a00
mov r8d, dword [rbx + 0x340]
mov r9d, dword [rbx + 0x344]
jmp 0x180104a2b
cmp r10d, 2
jne 0x180104a24
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, rsi
cmp dword [rax + rbx], r10d
je 0x180104a24
mov r9d, dword [rbx + 0x344]
jmp 0x180104a2b
mov r9d, dword [rbx + 0x2dc]
test r9d, 0xfffeffff
mov eax, 0x60000
cmove r9d, eax
sar r9d, 0x10
cmp r8d, r9d
jg 0x180104a92
mov edx, dword [rbp + 0x28]
mov ecx, r8d
sub ecx, 4
je 0x180104a83
sub ecx, 1
je 0x180104a7d
sub ecx, 1
je 0x180104a77
cmp ecx, 1
jne 0x180104a8a
lea rdx, str.schannel:_TLS_1.3_is_not_yet_supported
mov rcx, rdi
call fcn.1800ed0c0
mov eax, reloc.WLDAP32.dll_Ordinal_35
jmp 0x1801056d4
bts edx, 0xb
jmp 0x180104a87
bts edx, 9
jmp 0x180104a87
bts edx, 7
mov dword [rbp + 0x28], edx
inc r8d
cmp r8d, r9d
jle 0x180104a47
cmp r10d, 2
jne 0x180104ab6
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, rsi
cmp dword [rax + rbx], r10d
je 0x180104ab6
mov rax, qword [rbx + 0x370]
jmp 0x180104abd
mov rax, qword [rbx + 0x308]
test rax, rax
je 0x180104bb2
cmp r10d, 2
jne 0x180104aea
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, rsi
cmp dword [rax + rbx], r10d
je 0x180104aea
mov rsi, qword [rbx + 0x370]
jmp 0x180104af1
mov rsi, qword [rbx + 0x308]
mov r12, qword [r15 + 8]
mov r15d, r13d
add r12, 0x6c
test rsi, rsi
je 0x180104ba6
mov r14, r13
nop dword [rax + rax]
cmp byte [rsi], r13b
je 0x180104ba6
cmp r14, 0x2d
jge 0x180104ba6
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.180156690
test eax, eax
jne 0x180104b7d
mov rcx, rsi
call fcn.180103de0
test eax, eax
jne 0x180104b7d
lea r8d, [rax + 0x11]
mov rcx, rsi
lea rdx, str.USE_STRONG_CRYPTO
call fcn.180164660
test eax, eax
je 0x180104b74
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.SCH_USE_STRONG_CRYPTO
mov rcx, rsi
call fcn.180164660
test eax, eax
jne 0x180104bfe
or dword [rbp + 0x38], 0x400000
jmp 0x180104b87
inc r15d
mov dword [r12 + r14*4], eax
inc r14
mov edx, Ordinal_60
mov rcx, rsi
call fcn.180147e64
mov rsi, rax
test rax, rax
je 0x180104ba6
add rsi, 1
jne 0x180104b10
mov dword [rbp + 0x18], r15d
mov r15, qword [rbp - 0x28]
mov qword [rbp + 0x20], r12
mov rcx, qword [rdi + 0x5a0]
test rcx, rcx
jne 0x180104c17
cmp qword [rdi + 0x5d0], r13
je 0x180104fb4
mov rax, qword [rdi + 0x5d0]
mov r15d, r13d
mov qword [rbp - 0x58], r13
mov r14, r13
mov qword [rbp - 0x30], r13
mov r12, r13
mov rsi, r13
mov qword [rbp - 0x80], rax
mov rcx, qword [rax]
xor r8d, r8d
mov r13, qword [rax + 8]
mov qword [rsp + 0x70], rcx
jmp 0x180104e1f
lea rdx, str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
mov rcx, rdi
call fcn.1800ed0c0
mov eax, Ordinal_60
jmp 0x1801056d4
mov rax, qword [rdi + 0x5d0]
xor r8d, r8d
mov qword [rbp - 0x58], r13
mov r15d, r13d
mov qword [rbp - 0x30], r8
mov r14d, r8d
mov qword [rsp + 0x70], r8
mov r12d, r8d
mov qword [rbp - 0x80], rax
mov esi, r8d
test rax, rax
je 0x180104c54
mov rcx, qword [rax]
mov r13, qword [rax + 8]
mov qword [rsp + 0x70], rcx
jmp 0x180104e1f
call case.0x1800e1fa9.0
mov rsi, rax
test rax, rax
je 0x18010550c
mov edx, 0x5c
mov rcx, rax
call fcn.180147e64
mov r12, rax
test rax, rax
je 0x180104dda
mov r14, rax
lea rdx, str.CurrentUser
sub r14, rsi
mov rcx, rsi
mov r8, r14
call fcn.180164660
test eax, eax
jne 0x180104ca5
mov r15d, 0x10000
jmp 0x180104d7b
mov r8, r14
lea rdx, str.LocalMachine
mov rcx, rsi
call fcn.180164660
test eax, eax
jne 0x180104cc6
mov r15d, 0x20000
jmp 0x180104d7b
mov r8, r14
lea rdx, str.CurrentService
mov rcx, rsi
call fcn.180164660
test eax, eax
jne 0x180104ce7
mov r15d, 0x40000
jmp 0x180104d7b
mov r8, r14
lea rdx, str.Services
mov rcx, rsi
call fcn.180164660
test eax, eax
jne 0x180104d05
mov r15d, 0x50000
jmp 0x180104d7b
mov r8, r14
lea rdx, str.Users
mov rcx, rsi
call fcn.180164660
test eax, eax
jne 0x180104d23
mov r15d, 0x60000
jmp 0x180104d7b
mov r8, r14
lea rdx, str.CurrentUserGroupPolicy
mov rcx, rsi
call fcn.180164660
test eax, eax
jne 0x180104d41
mov r15d, 0x70000
jmp 0x180104d7b
mov r8, r14
lea rdx, str.LocalMachineGroupPolicy
mov rcx, rsi
call fcn.180164660
test eax, eax
jne 0x180104d5f
mov r15d, 0x80000
jmp 0x180104d7b
mov r8, r14
lea rdx, str.LocalMachineEnterprise
mov rcx, rsi
call fcn.180164660
test eax, eax
jne 0x180104dda
mov r15d, 0x90000
mov edx, 0x5c
lea rcx, [r12 + 1]
call fcn.180147e64
mov r14, rax
test rax, rax
je 0x180104dda
lea rcx, [rax + 1]
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x68], rcx
inc rax
cmp byte [rcx + rax], r13b
jne 0x180104da2
cmp rax, 0x28
jne 0x180104ddd
lea rcx, [r12 + 1]
mov byte [r14], r13b
call qword [case.0x1800e1fa9.0]
mov byte [r14], 0x5c
mov r13, rax
test rax, rax
jne 0x180104e83
mov rcx, qword [rsp + 0x68]
lea r14d, [rax + 0x1b]
jmp 0x180104de3
mov rcx, r13
mov r14d, Ordinal_60
mov qword [rsp + 0x68], rcx
mov rcx, qword [rdi + 0x5a0]
mov qword [rbp - 0x58], r13
cmp byte [rcx], 0
je 0x180105334
lea rdx, [0x1801a84ac]
call fcn.180101ef0
mov r12, rax
test rax, rax
je 0x180105334
mov r14, qword [rsp + 0x68]
xor r8d, r8d
mov r13d, r8d
mov rcx, qword [rdi + 0x620]
test rcx, rcx
je 0x180104e67
lea rdx, [0x18018d7f4]
call fcn.1800f1d70
test eax, eax
jne 0x180104e64
cmp qword [rbp - 0x80], 0
lea r15, str._memory_blob_
jne 0x180104e50
mov r15, qword [rdi + 0x5a0]
mov r8, r15
lea rdx, str.schannel:_certificate_format_compatibility_error__for__s
mov rcx, rdi
call fcn.1800ed0c0
jmp 0x180104ed3
xor r8d, r8d
mov rax, qword [rbp - 0x80]
test r12, r12
jne 0x180105006
test rax, rax
jne 0x180105006
mov r13, qword [rbp - 0x58]
jmp 0x180104e88
mov r14, qword [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x20], r13
mov r9d, r15d
xor r8d, r8d
bts r9d, 0xe
lea ecx, [rdx + 9]
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
mov r12, rax
test rax, rax
jne 0x180104eee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, r13
lea rdx, str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
mov r8d, r15d
mov dword [rsp + 0x20], eax
mov rcx, rdi
call fcn.1800ed0c0
mov rcx, r13
call qword [fcn.180164304]
test rsi, rsi
je 0x180105218
mov rcx, rsi
call fcn.180164304
mov eax, Ordinal_60
jmp 0x1801056d4
mov rcx, r13
call qword [fcn.180164304]
xor r13d, r13d
mov dword [rbp + 0x50], reloc.WS2_32.dll_sendto
lea rax, [rbp + 0x80]
mov qword [rsp + 0x30], r13
mov qword [rbp + 0x58], rax
lea r9, [rbp + 0x80]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], r13
lea edx, [r13 + 0x28]
mov qword [rsp + 0x20], rax
lea r8d, [r13 + 4]
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x180104f51
test rsi, rsi
je 0x18010526c
mov rcx, rsi
call fcn.180164304
jmp 0x18010526c
mov r9d, 0x10000
mov qword [rsp + 0x28], r13
lea rax, [rbp + 0x50]
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x78], rax
test rsi, rsi
je 0x180104f8c
mov rcx, rsi
call fcn.180164304
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x18010526c
lea rax, [rsp + 0x78]
mov dword [rbp - 0xc], 1
xor edx, edx
mov qword [rbp - 8], rax
mov rcx, r12
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov r15, qword [rbp - 0x28]
mov edx, reloc.WLDAP32.dll_Ordinal_32
lea ecx, [rdx - 0x1f]
call qword [case.0x1800e1fa9.1]
mov rcx, qword [r15 + 8]
mov qword [rcx], rax
mov rax, qword [r15 + 8]
mov rcx, qword [rax]
test rcx, rcx
jne 0x180105281
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, rdi
call fcn.1800ed0c0
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x18010550c
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1801056d4
mov dword [rsp + 0x68], r8d
mov r14, r8
lea r15, str._memory_blob_
test rax, rax
jne 0x180105021
mov r15, qword [rdi + 0x5a0]
test rsi, rsi
je 0x180105031
mov rcx, rsi
call fcn.180164304
xor r8d, r8d
test r12, r12
je 0x1801050e6
xor edx, edx
mov esi, r8d
mov rcx, r12
lea r8d, [rdx + 2]
call fcn.18015d4f0
test eax, eax
sete cl
mov byte [rsp + 0x60], cl
test eax, eax
jne 0x180105070
mov rcx, r12
call fcn.18015caac
mov esi, eax
test eax, eax
jns 0x18010506b
xor sil, sil
jmp 0x1801050aa
movzx ecx, byte [rsp + 0x60]
test esi, esi
movsxd rax, esi
cmovns r13, rax
test cl, cl
je 0x1801050a5
xor r8d, r8d
xor edx, edx
mov rcx, r12
call fcn.18015d4f0
test eax, eax
sete sil
test eax, eax
jne 0x1801050aa
lea rcx, [r13 + 1]
call qword [section..data]
mov qword [rsp + 0x70], rax
jmp 0x1801050af
movzx esi, byte [rsp + 0x60]
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x180105181
mov r9, r12
mov r8d, 1
mov rdx, r13
mov rcx, rax
call fcn.180164578
cmp eax, 1
jne 0x180105181
mov rcx, r12
call fcn.18015d1f8
test sil, sil
je 0x180105189
mov rax, qword [rsp + 0x70]
mov qword [rbp - 0x50], rax
mov rax, qword [rdi + 0x640]
mov dword [rbp - 0x58], r13d
test rax, rax
je 0x180105110
mov r14, 0xffffffffffffffff
inc r14
cmp byte [rax + r14], 0
jne 0x180105106
lea rcx, [r14*2 + 2]
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x1801051c7
test r14, r14
je 0x1801051b4
mov r8, qword [rdi + 0x640]
lea ecx, [r14 + 1]
mov dword [rsp + 0x28], ecx
mov r9d, r14d
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x1801051b8
xor ecx, ecx
mov word [rsi], cx
xor r8d, r8d
lea rcx, [rbp - 0x58]
mov rdx, rsi
call qword [sym.imp.CRYPT32.dll_PFXImportCertStore]
mov rcx, rsi
mov r12, rax
call qword [fcn.180164304]
jmp 0x1801051cb
mov rcx, r12
call fcn.18015d1f8
mov r8, qword [rdi + 0x5a0]
lea rdx, str.schannel:_Failed_to_read_cert_file__s
mov rcx, rdi
call fcn.1800ed0c0
mov rcx, qword [rsp + 0x70]
call qword [fcn.180164304]
mov eax, Ordinal_60
jmp 0x1801056d4
mov eax, dword [rsp + 0x68]
cmp eax, r14d
jg 0x18010515e
mov eax, eax
xor ecx, ecx
mov word [rsi + rax*2], cx
jmp 0x180105163
mov r12, qword [rbp - 0x30]
cmp qword [rbp - 0x80], 0
jne 0x1801051dd
mov rcx, qword [rsp + 0x70]
call qword [fcn.180164304]
test r12, r12
jne 0x180105222
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r15
mov rcx, rdi
cmp eax, 0x56
jne 0x180105209
lea rdx, str.schannel:_Failed_to_import_cert_file__s__password_is_bad
call fcn.1800ed0c0
lea eax, [r12 + 0x3a]
jmp 0x1801056d4
mov r9d, eax
lea rdx, str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
call fcn.1800ed0c0
mov eax, Ordinal_60
jmp 0x1801056d4
xor r13d, r13d
xor r9d, r9d
mov qword [rsp + 0x28], r13
xor r8d, r8d
mov edx, 0x10001
mov qword [rsp + 0x20], r13
mov rcx, r12
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x180104f95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r15
lea rdx, str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_x
mov r9d, eax
mov rcx, rdi
call fcn.1800ed0c0
xor edx, edx
mov rcx, r12
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, Ordinal_60
jmp 0x1801056d4
mov dword [rcx + 0x18], 1
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
mov rax, qword [r15 + 8]
xor r9d, r9d
mov rcx, qword [rax]
lea r8d, [r9 + 2]
lea rax, [rcx + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x38], rcx
xor ecx, ecx
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
mov rax, qword [0x1801e8d58]
call qword [rax + Ordinal_26]
mov rcx, qword [rsp + 0x78]
mov esi, eax
test rcx, rcx
je 0x1801052dc
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x18010538c
mov r8d, 0x100
lea rdx, [rbp + 0x120]
mov ecx, esi
call fcn.180100b10
mov r8, rax
lea rdx, str.schannel:_AcquireCredentialsHandle_failed:__s
mov rcx, rdi
call fcn.1800ed0c0
mov rcx, qword [r15 + 8]
mov rcx, qword [rcx]
call qword [fcn.180164304]
mov rax, qword [r15 + 8]
mov qword [rax], r13
cmp esi, 0x80090300
je 0x18010550c
mov eax, reloc.WLDAP32.dll_Ordinal_35
jmp 0x1801056d4
mov r8, qword [rdi + 0x5a0]
lea rdx, str.schannel:_Failed_to_get_certificate_location_or_file_for__s
mov rcx, rdi
call fcn.1800ed0c0
mov rcx, rsi
call fcn.180164304
mov eax, r14d
jmp 0x1801056d4
lea rdx, str.SSL_versions_not_supported
mov rcx, rdi
call fcn.1800ed0c0
mov eax, 4
jmp 0x1801056d4
lea rdx, str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
mov rcx, rdi
call fcn.1800ed0c0
mov eax, reloc.WLDAP32.dll_Ordinal_35
jmp 0x1801056d4
mov r12, qword [rbp + 0x48]
mov r14d, 0x2a0
mov rsi, qword [rbp - 0x20]
lea r8, [rbp + 0x40]
mov rdx, rsi
mov ecx, 2
call fcn.180102150
test eax, eax
jne 0x1801053c2
lea r8, [rbp + 0x70]
mov rdx, rsi
lea ecx, [rax + 0x17]
call fcn.180102150
test eax, eax
je 0x1801053d1
lea rdx, str.schannel:_using_IP_address__SNI_is_not_supported_by_OS._n
mov rcx, rdi
call fcn.1800ed220
mov rax, qword [r15 + 8]
cmp byte [rax + 0x6a], 0
je 0x180105457
movabs rax, 0x312e312f70747468
mov dword [rbp + 0xa4], 2
lea r8, str.http_1.1
mov qword [rbp + 0xab], rax
lea rdx, str.schannel:_ALPN__offering__s_n
mov byte [rbp + 0xaa], 8
mov rcx, rdi
call fcn.1800ed220
mov ecx, 9
call fcn.1800efbd0
movzx ecx, ax
mov word [rbp + 0xa8], ax
add ecx, 6
lea rax, [rbp + 0xa0]
mov dword [rbp + 0xa0], ecx
mov qword [rbp - 0x70], rax
lea rax, [rbp - 0x78]
mov qword [rbp - 0x40], rax
mov rax, qword [r15 + 8]
mov dword [rbp - 0x78], reloc.WS2_32.dll_send
mov dword [rbp - 0x74], reloc.WS2_32.dll_select
jmp 0x18010546b
lea rcx, [rbp - 0x78]
mov qword [rbp - 0x78], 0
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x70], r13
lea rcx, [rbp - 0x68]
mov dword [rbp - 0x44], 1
mov qword [rbp + 0x68], rcx
mov dword [rbp - 0x48], r13d
mov qword [rbp - 0x68], 0
mov qword [rbp - 0x60], r13
mov dword [rbp + 0x60], r13d
mov dword [rbp + 0x64], 1
mov dword [rax + 0x5c], 0x811c
cmp dword [rbx + 0x13c], 2
jne 0x1801054c6
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov eax, 0x2b8
cmovne r14, rax
cmp dword [r14 + rbx], 2
je 0x1801054c6
movzx eax, byte [rdi + 0x717]
jmp 0x1801054cd
movzx eax, byte [rdi + 0x64f]
test al, al
jne 0x1801054dc
mov rax, qword [r15 + 8]
or dword [rax + 0x5c], 0x80
mov edx, Ordinal_27
lea ecx, [rdx - 0x17]
call qword [case.0x1800e1fa9.1]
mov rcx, qword [r15 + 8]
mov qword [rcx + 8], rax
mov rcx, qword [r15 + 8]
cmp qword [rcx + 8], 0
jne 0x180105516
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, rdi
call fcn.1800ed0c0
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1801056d4
mov rcx, rsi
call case.0x1800e1fa9.0
mov r14, rax
test rax, rax
je 0x18010550c
mov rcx, qword [r15 + 8]
lea r8, [rbp - 0x48]
mov r9, qword [rcx + 8]
lea rdx, [rcx + 0x60]
cmp byte [rcx + 0x6a], 0
cmove r8, r13
lea rax, [r9 + 0x10]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x50], rdx
xor edx, edx
mov qword [rsp + 0x48], rax
mov rax, qword [0x1801e8d58]
mov qword [rsp + 0x40], r9
mov r9d, dword [rcx + 0x5c]
mov rcx, qword [rcx]
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r8
mov r8, r14
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
call qword [rax + Ordinal_50]
mov rcx, r14
mov esi, eax
call fcn.180164304
cmp esi, 0x90312
je 0x18010563c
mov rcx, qword [r15 + 8]
mov rcx, qword [rcx + 8]
call qword [fcn.180164304]
mov rcx, qword [r15 + 8]
mov r8d, 0x100
lea rdx, [rbp + 0x120]
mov qword [rcx + 8], r13
cmp esi, 0x80090300
je 0x180105616
cmp esi, 0x80090322
je 0x1801055f0
mov ecx, esi
call fcn.180100b10
mov r8, rax
lea rdx, str.schannel:_initial_InitializeSecurityContext_failed:__s
mov rcx, rdi
call fcn.1800ed0c0
mov eax, reloc.WLDAP32.dll_Ordinal_35
jmp 0x1801056d4
mov ecx, 0x80090322
call fcn.180100b10
mov r8, rax
lea rdx, str.schannel:_SNI_or_certificate_check_failed:__s
mov rcx, rdi
call fcn.1800ed0c0
mov eax, reloc.WLDAP32.dll_Ordinal_60
jmp 0x1801056d4
mov ecx, 0x80090300
call fcn.180100b10
mov r8, rax
lea rdx, str.schannel:_initial_InitializeSecurityContext_failed:__s
mov rcx, rdi
call fcn.1800ed0c0
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1801056d4
mov r9d, dword [rbp - 0x68]
lea rax, [rbp - 0x18]
mov r8, qword [rbp - 0x60]
mov rcx, rdi
mov rdx, qword [rbx + r12*8 + 0x1e8]
mov qword [rsp + 0x20], rax
call fcn.1800ed810
mov rdx, qword [0x1801e8d58]
mov ebx, eax
mov rcx, qword [rbp - 0x60]
call qword [rdx + 0x80]
mov r8, qword [rbp - 0x18]
mov r9d, dword [rbp - 0x68]
test ebx, ebx
jne 0x1801056aa
cmp r9, r8
jne 0x1801056aa
mov rax, qword [r15 + 8]
mov dword [rax + 0x64], r13d
mov rax, qword [r15 + 8]
mov byte [rax + 0x68], bl
mov rax, qword [r15 + 8]
mov byte [rax + 0x69], bl
mov rax, qword [r15 + 8]
mov byte [rax + 0x58], bl
xor eax, eax
mov dword [r15 + 4], 1
jmp 0x1801056d4
lea rdx, str.schannel:_failed_to_send_initial_handshake_data:_sent__zd_of__lu_bytes
mov rcx, rdi
call fcn.1800ed0c0
mov eax, reloc.WLDAP32.dll_Ordinal_35
jmp 0x1801056d4
lea rdx, str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
mov rcx, rdi
call fcn.1800ed0c0
mov eax, Ordinal_79
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.180146940
mov rbx, qword [rsp + 0x388]
add rsp, 0x330
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret