Function at 0x1801040e0
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 [0x1801d01d0]
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 0x180104173
cmp qword [rdx + 0x1f0], 0xffffffffffffffff
mov eax, r14d
cmovne eax, ecx
cmp dword [rax + rdx], 2
je 0x180104173
mov rax, qword [rdx + 0x128]
jmp 0x18010417a
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.18011cf50
test al, al
je 0x1801041a5
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.1800ecce0
cmp byte [rbx + 0x3c8], r13b
je 0x1801041ec
lea rcx, [0x18018c65c]
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 0x1801041ec
mov edx, 3
lea ecx, [rax + 6]
mov r9d, edx
lea r8d, [rax + 2]
call fcn.18011cf50
test al, al
je 0x1801041ec
mov cl, 1
jmp 0x1801041ee
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 0x180104222
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, rdx
cmp dword [rax + rbx], ecx
je 0x180104222
mov rax, qword [rbx + 0x350]
jmp 0x180104229
mov rax, qword [rbx + 0x2e8]
test rax, rax
jne 0x180104266
cmp ecx, 2
jne 0x180104250
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, rdx
cmp dword [rax + rbx], ecx
je 0x180104250
mov rax, qword [rbx + 0x390]
jmp 0x180104257
mov rax, qword [rbx + 0x328]
test rax, rax
jne 0x180104266
mov rax, qword [r15 + 8]
mov byte [rax + 0x6b], r13b
jmp 0x18010428b
mov edx, 1
lea ecx, [rdx + 5]
lea r9d, [rdx + 2]
lea r8d, [rdx + 1]
call fcn.18011cf50
test al, al
je 0x180105180
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 0x1801042be
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
mov ecx, 0x2b8
cmovne rax, rcx
cmp dword [rax + rbx], 2
je 0x1801042be
movzx eax, byte [rdi + 0x6b3]
jmp 0x1801042c5
movzx eax, byte [rdi + 0x5eb]
test al, al
je 0x180104335
mov rcx, rdi
call fcn.1800e7530
cmp dword [rbx + 0x13c], 2
jne 0x1801042f9
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
mov ecx, 0x2b8
cmovne rax, rcx
cmp dword [rax + rbx], 2
je 0x1801042f9
mov r8b, 1
jmp 0x1801042fc
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.1800e7060
test al, al
jne 0x18010432d
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.1800e7560
mov rax, qword [r15 + 8]
cmp qword [rax], r13
jne 0x180104e56
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 0x1801043fa
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 0x1801043ac
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, r8
cmp dword [rax + rbx], edx
je 0x1801043ac
movzx eax, byte [rdi + 0x713]
jmp 0x1801043b3
movzx eax, byte [rdi + 0x64b]
test al, al
je 0x1801043bf
or ecx, 0x1800
jmp 0x1801043ff
cmp edx, 2
jne 0x1801043e1
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, r8
cmp dword [rax + rbx], edx
je 0x1801043e1
movzx eax, byte [rdi + 0x715]
jmp 0x1801043e8
movzx eax, byte [rdi + 0x64d]
test al, al
je 0x1801043f4
or ecx, 0x1a00
jmp 0x1801043ff
bts ecx, 9
jmp 0x1801043ff
mov ecx, 0x1808
mov dword [rbp + 0x38], ecx
cmp byte [rbx + 0x339], r13b
jne 0x180104411
or ecx, 4
mov dword [rbp + 0x38], ecx
cmp dword [rbx + 0x13c], 2
mov esi, 0x2b8
jne 0x18010443d
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, rsi
cmp dword [rax + rbx], 2
je 0x18010443d
movzx eax, byte [rdi + 0x717]
jmp 0x180104444
movzx eax, byte [rdi + 0x64f]
test al, al
jne 0x18010445a
and ecx, 0xffffffbf
lea rdx, str.schannel:_disabled_automatic_use_of_client_certificate_n
or ecx, 0x10
mov dword [rbp + 0x38], ecx
jmp 0x180104461
lea rdx, str.schannel:_enabled_automatic_use_of_client_certificate_n
mov rcx, rdi
call fcn.1800ecce0
movsxd r8, dword [rbx + 0x2d8]
cmp r8d, 7
ja case.default.0x18010448c
lea rdx, [0x180000000]
mov ecx, dword [rdx + r8*4 + 0x1051c0]
add rcx, rdx
jmp rcx
mov r10d, dword [rbx + 0x13c]
cmp r10d, 2
jne 0x1801044e4
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, rsi
cmp dword [rax + rbx], r10d
je 0x1801044c0
mov r8d, dword [rbx + 0x340]
mov r9d, dword [rbx + 0x344]
jmp 0x1801044eb
cmp r10d, 2
jne 0x1801044e4
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, rsi
cmp dword [rax + rbx], r10d
je 0x1801044e4
mov r9d, dword [rbx + 0x344]
jmp 0x1801044eb
mov r9d, dword [rbx + 0x2dc]
test r9d, 0xfffeffff
mov eax, 0x60000
cmove r9d, eax
sar r9d, 0x10
cmp r8d, r9d
jg 0x180104552
mov edx, dword [rbp + 0x28]
mov ecx, r8d
sub ecx, 4
je 0x180104543
sub ecx, 1
je 0x18010453d
sub ecx, 1
je 0x180104537
cmp ecx, 1
jne 0x18010454a
lea rdx, str.schannel:_TLS_1.3_is_not_yet_supported
mov rcx, rdi
call fcn.1800ecb80
mov eax, reloc.WLDAP32.dll_Ordinal_35
jmp 0x180105194
bts edx, 0xb
jmp 0x180104547
bts edx, 9
jmp 0x180104547
bts edx, 7
mov dword [rbp + 0x28], edx
inc r8d
cmp r8d, r9d
jle 0x180104507
cmp r10d, 2
jne 0x180104576
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, rsi
cmp dword [rax + rbx], r10d
je 0x180104576
mov rax, qword [rbx + 0x370]
jmp 0x18010457d
mov rax, qword [rbx + 0x308]
test rax, rax
je 0x180104672
cmp r10d, 2
jne 0x1801045aa
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, rsi
cmp dword [rax + rbx], r10d
je 0x1801045aa
mov rsi, qword [rbx + 0x370]
jmp 0x1801045b1
mov rsi, qword [rbx + 0x308]
mov r12, qword [r15 + 8]
mov r15d, r13d
add r12, 0x6c
test rsi, rsi
je 0x180104666
mov r14, r13
nop dword [rax + rax]
cmp byte [rsi], r13b
je 0x180104666
cmp r14, 0x2d
jge 0x180104666
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.180164be0
test eax, eax
jne 0x18010463d
mov rcx, rsi
call fcn.1801038a0
test eax, eax
jne 0x18010463d
lea r8d, [rax + 0x11]
mov rcx, rsi
lea rdx, str.USE_STRONG_CRYPTO
call fcn.180163050
test eax, eax
je 0x180104634
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.SCH_USE_STRONG_CRYPTO
mov rcx, rsi
call fcn.180163050
test eax, eax
jne 0x1801046be
or dword [rbp + 0x38], 0x400000
jmp 0x180104647
inc r15d
mov dword [r12 + r14*4], eax
inc r14
mov edx, Ordinal_60
mov rcx, rsi
call fcn.18014792c
mov rsi, rax
test rax, rax
je 0x180104666
add rsi, 1
jne 0x1801045d0
mov dword [rbp + 0x18], r15d
mov r15, qword [rbp - 0x28]
mov qword [rbp + 0x20], r12
mov rcx, qword [rdi + 0x5a0]
test rcx, rcx
jne 0x1801046d7
cmp qword [rdi + 0x5d0], r13
je 0x180104a74
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 0x1801048df
lea rdx, str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
mov rcx, rdi
call fcn.1800ecb80
mov eax, Ordinal_60
jmp 0x180105194
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 0x180104714
mov rcx, qword [rax]
mov r13, qword [rax + 8]
mov qword [rsp + 0x70], rcx
jmp 0x1801048df
call case.0x1800e1a69.0
mov rsi, rax
test rax, rax
je 0x180104fcc
mov edx, 0x5c
mov rcx, rax
call fcn.18014792c
mov r12, rax
test rax, rax
je 0x18010489a
mov r14, rax
lea rdx, str.CurrentUser
sub r14, rsi
mov rcx, rsi
mov r8, r14
call fcn.180163050
test eax, eax
jne 0x180104765
mov r15d, 0x10000
jmp 0x18010483b
mov r8, r14
lea rdx, str.LocalMachine
mov rcx, rsi
call fcn.180163050
test eax, eax
jne 0x180104786
mov r15d, 0x20000
jmp 0x18010483b
mov r8, r14
lea rdx, str.CurrentService
mov rcx, rsi
call fcn.180163050
test eax, eax
jne 0x1801047a7
mov r15d, 0x40000
jmp 0x18010483b
mov r8, r14
lea rdx, str.Services
mov rcx, rsi
call fcn.180163050
test eax, eax
jne 0x1801047c5
mov r15d, 0x50000
jmp 0x18010483b
mov r8, r14
lea rdx, str.Users
mov rcx, rsi
call fcn.180163050
test eax, eax
jne 0x1801047e3
mov r15d, 0x60000
jmp 0x18010483b
mov r8, r14
lea rdx, str.CurrentUserGroupPolicy
mov rcx, rsi
call fcn.180163050
test eax, eax
jne 0x180104801
mov r15d, 0x70000
jmp 0x18010483b
mov r8, r14
lea rdx, str.LocalMachineGroupPolicy
mov rcx, rsi
call fcn.180163050
test eax, eax
jne 0x18010481f
mov r15d, 0x80000
jmp 0x18010483b
mov r8, r14
lea rdx, str.LocalMachineEnterprise
mov rcx, rsi
call fcn.180163050
test eax, eax
jne 0x18010489a
mov r15d, 0x90000
mov edx, 0x5c
lea rcx, [r12 + 1]
call fcn.18014792c
mov r14, rax
test rax, rax
je 0x18010489a
lea rcx, [rax + 1]
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x68], rcx
inc rax
cmp byte [rcx + rax], r13b
jne 0x180104862
cmp rax, 0x28
jne 0x18010489d
lea rcx, [r12 + 1]
mov byte [r14], r13b
call qword [case.0x1800e1a69.0]
mov byte [r14], 0x5c
mov r13, rax
test rax, rax
jne 0x180104943
mov rcx, qword [rsp + 0x68]
lea r14d, [rax + 0x1b]
jmp 0x1801048a3
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 0x180104df4
lea rdx, [0x1801a74dc]
call fcn.1801019b0
mov r12, rax
test rax, rax
je 0x180104df4
mov r14, qword [rsp + 0x68]
xor r8d, r8d
mov r13d, r8d
mov rcx, qword [rdi + 0x620]
test rcx, rcx
je 0x180104927
lea rdx, [0x18018c814]
call fcn.1800f1830
test eax, eax
jne 0x180104924
cmp qword [rbp - 0x80], 0
lea r15, str._memory_blob_
jne 0x180104910
mov r15, qword [rdi + 0x5a0]
mov r8, r15
lea rdx, str.schannel:_certificate_format_compatibility_error__for__s
mov rcx, rdi
call fcn.1800ecb80
jmp 0x180104993
xor r8d, r8d
mov rax, qword [rbp - 0x80]
test r12, r12
jne 0x180104ac6
test rax, rax
jne 0x180104ac6
mov r13, qword [rbp - 0x58]
jmp 0x180104948
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 0x1801049ae
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.1800ecb80
mov rcx, r13
call qword [fcn.180162cf4]
test rsi, rsi
je 0x180104cd8
mov rcx, rsi
call fcn.180162cf4
mov eax, Ordinal_60
jmp 0x180105194
mov rcx, r13
call qword [fcn.180162cf4]
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 0x180104a11
test rsi, rsi
je 0x180104d2c
mov rcx, rsi
call fcn.180162cf4
jmp 0x180104d2c
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 0x180104a4c
mov rcx, rsi
call fcn.180162cf4
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x180104d2c
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.0x1800e1a69.1]
mov rcx, qword [r15 + 8]
mov qword [rcx], rax
mov rax, qword [r15 + 8]
mov rcx, qword [rax]
test rcx, rcx
jne 0x180104d41
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, rdi
call fcn.1800ecb80
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180104fcc
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x180105194
mov dword [rsp + 0x68], r8d
mov r14, r8
lea r15, str._memory_blob_
test rax, rax
jne 0x180104ae1
mov r15, qword [rdi + 0x5a0]
test rsi, rsi
je 0x180104af1
mov rcx, rsi
call fcn.180162cf4
xor r8d, r8d
test r12, r12
je 0x180104ba6
xor edx, edx
mov esi, r8d
mov rcx, r12
lea r8d, [rdx + 2]
call fcn.18015bee4
test eax, eax
sete cl
mov byte [rsp + 0x60], cl
test eax, eax
jne 0x180104b30
mov rcx, r12
call fcn.18015b4a0
mov esi, eax
test eax, eax
jns 0x180104b2b
xor sil, sil
jmp 0x180104b6a
movzx ecx, byte [rsp + 0x60]
test esi, esi
movsxd rax, esi
cmovns r13, rax
test cl, cl
je 0x180104b65
xor r8d, r8d
xor edx, edx
mov rcx, r12
call fcn.18015bee4
test eax, eax
sete sil
test eax, eax
jne 0x180104b6a
lea rcx, [r13 + 1]
call qword [section..data]
mov qword [rsp + 0x70], rax
jmp 0x180104b6f
movzx esi, byte [rsp + 0x60]
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x180104c41
mov r9, r12
mov r8d, 1
mov rdx, r13
mov rcx, rax
call fcn.180162f68
cmp eax, 1
jne 0x180104c41
mov rcx, r12
call fcn.18015bbec
test sil, sil
je 0x180104c49
mov rax, qword [rsp + 0x70]
mov qword [rbp - 0x50], rax
mov rax, qword [rdi + 0x640]
mov dword [rbp - 0x58], r13d
test rax, rax
je 0x180104bd0
mov r14, 0xffffffffffffffff
inc r14
cmp byte [rax + r14], 0
jne 0x180104bc6
lea rcx, [r14*2 + 2]
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x180104c87
test r14, r14
je 0x180104c74
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 0x180104c78
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.180162cf4]
jmp 0x180104c8b
mov rcx, r12
call fcn.18015bbec
mov r8, qword [rdi + 0x5a0]
lea rdx, str.schannel:_Failed_to_read_cert_file__s
mov rcx, rdi
call fcn.1800ecb80
mov rcx, qword [rsp + 0x70]
call qword [fcn.180162cf4]
mov eax, Ordinal_60
jmp 0x180105194
mov eax, dword [rsp + 0x68]
cmp eax, r14d
jg 0x180104c1e
mov eax, eax
xor ecx, ecx
mov word [rsi + rax*2], cx
jmp 0x180104c23
mov r12, qword [rbp - 0x30]
cmp qword [rbp - 0x80], 0
jne 0x180104c9d
mov rcx, qword [rsp + 0x70]
call qword [fcn.180162cf4]
test r12, r12
jne 0x180104ce2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r15
mov rcx, rdi
cmp eax, 0x56
jne 0x180104cc9
lea rdx, str.schannel:_Failed_to_import_cert_file__s__password_is_bad
call fcn.1800ecb80
lea eax, [r12 + 0x3a]
jmp 0x180105194
mov r9d, eax
lea rdx, str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
call fcn.1800ecb80
mov eax, Ordinal_60
jmp 0x180105194
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 0x180104a55
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.1800ecb80
xor edx, edx
mov rcx, r12
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, Ordinal_60
jmp 0x180105194
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 [0x1801e7d88]
call qword [rax + Ordinal_26]
mov rcx, qword [rsp + 0x78]
mov esi, eax
test rcx, rcx
je 0x180104d9c
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x180104e4c
mov r8d, 0x100
lea rdx, [rbp + 0x120]
mov ecx, esi
call fcn.1801005d0
mov r8, rax
lea rdx, str.schannel:_AcquireCredentialsHandle_failed:__s
mov rcx, rdi
call fcn.1800ecb80
mov rcx, qword [r15 + 8]
mov rcx, qword [rcx]
call qword [fcn.180162cf4]
mov rax, qword [r15 + 8]
mov qword [rax], r13
cmp esi, 0x80090300
je 0x180104fcc
mov eax, reloc.WLDAP32.dll_Ordinal_35
jmp 0x180105194
mov r8, qword [rdi + 0x5a0]
lea rdx, str.schannel:_Failed_to_get_certificate_location_or_file_for__s
mov rcx, rdi
call fcn.1800ecb80
mov rcx, rsi
call fcn.180162cf4
mov eax, r14d
jmp 0x180105194
lea rdx, str.SSL_versions_not_supported
mov rcx, rdi
call fcn.1800ecb80
mov eax, 4
jmp 0x180105194
lea rdx, str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
mov rcx, rdi
call fcn.1800ecb80
mov eax, reloc.WLDAP32.dll_Ordinal_35
jmp 0x180105194
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.180101c10
test eax, eax
jne 0x180104e82
lea r8, [rbp + 0x70]
mov rdx, rsi
lea ecx, [rax + 0x17]
call fcn.180101c10
test eax, eax
je 0x180104e91
lea rdx, str.schannel:_using_IP_address__SNI_is_not_supported_by_OS._n
mov rcx, rdi
call fcn.1800ecce0
mov rax, qword [r15 + 8]
cmp byte [rax + 0x6a], 0
je 0x180104f17
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.1800ecce0
mov ecx, 9
call fcn.1800ef690
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 0x180104f2b
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 0x180104f86
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov eax, 0x2b8
cmovne r14, rax
cmp dword [r14 + rbx], 2
je 0x180104f86
movzx eax, byte [rdi + 0x717]
jmp 0x180104f8d
movzx eax, byte [rdi + 0x64f]
test al, al
jne 0x180104f9c
mov rax, qword [r15 + 8]
or dword [rax + 0x5c], 0x80
mov edx, Ordinal_27
lea ecx, [rdx - 0x17]
call qword [case.0x1800e1a69.1]
mov rcx, qword [r15 + 8]
mov qword [rcx + 8], rax
mov rcx, qword [r15 + 8]
cmp qword [rcx + 8], 0
jne 0x180104fd6
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, rdi
call fcn.1800ecb80
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x180105194
mov rcx, rsi
call case.0x1800e1a69.0
mov r14, rax
test rax, rax
je 0x180104fcc
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 [0x1801e7d88]
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.180162cf4
cmp esi, 0x90312
je 0x1801050fc
mov rcx, qword [r15 + 8]
mov rcx, qword [rcx + 8]
call qword [fcn.180162cf4]
mov rcx, qword [r15 + 8]
mov r8d, 0x100
lea rdx, [rbp + 0x120]
mov qword [rcx + 8], r13
cmp esi, 0x80090300
je 0x1801050d6
cmp esi, 0x80090322
je 0x1801050b0
mov ecx, esi
call fcn.1801005d0
mov r8, rax
lea rdx, str.schannel:_initial_InitializeSecurityContext_failed:__s
mov rcx, rdi
call fcn.1800ecb80
mov eax, reloc.WLDAP32.dll_Ordinal_35
jmp 0x180105194
mov ecx, 0x80090322
call fcn.1801005d0
mov r8, rax
lea rdx, str.schannel:_SNI_or_certificate_check_failed:__s
mov rcx, rdi
call fcn.1800ecb80
mov eax, reloc.WLDAP32.dll_Ordinal_60
jmp 0x180105194
mov ecx, 0x80090300
call fcn.1801005d0
mov r8, rax
lea rdx, str.schannel:_initial_InitializeSecurityContext_failed:__s
mov rcx, rdi
call fcn.1800ecb80
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x180105194
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.1800ed2d0
mov rdx, qword [0x1801e7d88]
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 0x18010516a
cmp r9, r8
jne 0x18010516a
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 0x180105194
lea rdx, str.schannel:_failed_to_send_initial_handshake_data:_sent__zd_of__lu_bytes
mov rcx, rdi
call fcn.1800ecb80
mov eax, reloc.WLDAP32.dll_Ordinal_35
jmp 0x180105194
lea rdx, str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
mov rcx, rdi
call fcn.1800ecb80
mov eax, Ordinal_79
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1801455c0
mov rbx, qword [rsp + 0x388]
add rsp, 0x330
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret