Function at 0x18007a2f0
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 [0x180141080]
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 - 0x28], 0xffffffffffffffff
mov rbx, rdx
mov qword [rbp + 0x38], rsi
lea rax, [rsi + 0x1a]
mov qword [rsp + 0x68], r13
lea rax, [rax + rax*2]
mov qword [rbp - 0x48], r13
lea r15, [rdx + rax*8]
mov r12, rsi
mov qword [rbp - 0x38], r15
lea r14d, [rcx - 0x18]
jne 0x18007a383
cmp qword [rdx + 0x1f0], 0xffffffffffffffff
mov eax, r14d
cmovne eax, ecx
cmp dword [rax + rdx], 2
je 0x18007a383
mov rax, qword [rdx + 0x128]
jmp 0x18007a38a
mov rax, qword [rdx + 0xa0]
mov edx, 1
mov qword [rbp - 0x30], rax
mov r9d, edx
lea ecx, [rdx + 4]
lea r8d, [rdx + 1]
call fcn.180092820
test al, al
je 0x18007a3b5
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.180067de0
cmp byte [rbx + 0x3c8], r13b
je 0x18007a3fc
lea rcx, str.ntdll
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 0x18007a3fc
mov edx, 3
lea ecx, [rax + 6]
mov r9d, edx
lea r8d, [rax + 2]
call fcn.180092820
test al, al
je 0x18007a3fc
mov cl, 1
jmp 0x18007a3fe
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 0x18007a432
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, rdx
cmp dword [rax + rbx], ecx
je 0x18007a432
mov rax, qword [rbx + 0x350]
jmp 0x18007a439
mov rax, qword [rbx + 0x2e8]
test rax, rax
jne 0x18007a476
cmp ecx, 2
jne 0x18007a460
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, rdx
cmp dword [rax + rbx], ecx
je 0x18007a460
mov rax, qword [rbx + 0x390]
jmp 0x18007a467
mov rax, qword [rbx + 0x328]
test rax, rax
jne 0x18007a476
mov rax, qword [r15 + 8]
mov byte [rax + 0x6b], r13b
jmp 0x18007a49b
mov edx, 1
lea ecx, [rdx + 5]
lea r9d, [rdx + 2]
lea r8d, [rdx + 1]
call fcn.180092820
test al, al
je 0x18007b37b
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 0x18007a4ce
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
mov ecx, 0x2b8
cmovne rax, rcx
cmp dword [rax + rbx], 2
je 0x18007a4ce
movzx eax, byte [rdi + 0x6b3]
jmp 0x18007a4d5
movzx eax, byte [rdi + 0x5eb]
test al, al
je 0x18007a545
mov rcx, rdi
call fcn.180066600
cmp dword [rbx + 0x13c], 2
jne 0x18007a509
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
mov ecx, 0x2b8
cmovne rax, rcx
cmp dword [rax + rbx], 2
je 0x18007a509
mov r8b, 1
jmp 0x18007a50c
xor r8b, r8b
mov dword [rsp + 0x28], esi
lea r9, [rbp - 0x48]
mov rdx, rbx
mov qword [rsp + 0x20], r13
mov rcx, rdi
call fcn.1800661d0
test al, al
jne 0x18007a53d
mov rcx, qword [r15 + 8]
mov rax, qword [rbp - 0x48]
mov qword [rcx], rax
mov rax, qword [r15 + 8]
mov rcx, qword [rax]
inc dword [rcx + 0x18]
mov rcx, rdi
call fcn.180066630
mov rax, qword [r15 + 8]
cmp qword [rax], r13
jne 0x18007b04f
xorps xmm0, xmm0
mov edx, 8
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x20], 4
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
cmp byte [rbx + 0x338], r13b
je 0x18007a60a
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 0x18007a5bc
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, r8
cmp dword [rax + rbx], edx
je 0x18007a5bc
movzx eax, byte [rdi + 0x713]
jmp 0x18007a5c3
movzx eax, byte [rdi + 0x64b]
test al, al
je 0x18007a5cf
or ecx, 0x1800
jmp 0x18007a60f
cmp edx, 2
jne 0x18007a5f1
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, r8
cmp dword [rax + rbx], edx
je 0x18007a5f1
movzx eax, byte [rdi + 0x715]
jmp 0x18007a5f8
movzx eax, byte [rdi + 0x64d]
test al, al
je 0x18007a604
or ecx, 0x1a00
jmp 0x18007a60f
bts ecx, 9
jmp 0x18007a60f
mov ecx, 0x1808
mov dword [rbp + 0x28], ecx
cmp byte [rbx + 0x339], r13b
jne 0x18007a621
or ecx, 4
mov dword [rbp + 0x28], ecx
cmp dword [rbx + 0x13c], 2
mov esi, 0x2b8
jne 0x18007a64d
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, rsi
cmp dword [rax + rbx], 2
je 0x18007a64d
movzx eax, byte [rdi + 0x717]
jmp 0x18007a654
movzx eax, byte [rdi + 0x64f]
test al, al
jne 0x18007a66a
and ecx, 0xffffffbf
lea rdx, str.schannel:_disabled_automatic_use_of_client_certificate_n
or ecx, 0x10
mov dword [rbp + 0x28], ecx
jmp 0x18007a671
lea rdx, str.schannel:_enabled_automatic_use_of_client_certificate_n
mov rcx, rdi
call fcn.180067de0
movsxd r8, dword [rbx + 0x2d8]
cmp r8d, 7
ja case.default.0x18007a69c
lea rcx, [0x180000000]
mov eax, dword [rcx + r8*4 + 0x7b3bc]
add rax, rcx
jmp rax
mov r10d, dword [rbx + 0x13c]
cmp r10d, 2
jne 0x18007a6f4
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, rsi
cmp dword [rax + rbx], r10d
je 0x18007a6d0
mov r8d, dword [rbx + 0x340]
mov r9d, dword [rbx + 0x344]
jmp 0x18007a6fb
cmp r10d, 2
jne 0x18007a6f4
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, rsi
cmp dword [rax + rbx], r10d
je 0x18007a6f4
mov r9d, dword [rbx + 0x344]
jmp 0x18007a6fb
mov r9d, dword [rbx + 0x2dc]
test r9d, 0xfffeffff
mov eax, 0x60000
cmove r9d, eax
sar r9d, 0x10
cmp r8d, r9d
jg 0x18007a762
mov edx, dword [rbp + 0x18]
mov ecx, r8d
sub ecx, 4
je 0x18007a753
sub ecx, 1
je 0x18007a74d
sub ecx, 1
je 0x18007a747
cmp ecx, 1
jne 0x18007a75a
lea rdx, str.schannel:_TLS_1.3_is_not_yet_supported
mov rcx, rdi
call fcn.180067c80
mov eax, reloc.WLDAP32.dll_Ordinal_35
jmp 0x18007b38f
bts edx, 0xb
jmp 0x18007a757
bts edx, 9
jmp 0x18007a757
bts edx, 7
mov dword [rbp + 0x18], edx
inc r8d
cmp r8d, r9d
jle 0x18007a717
cmp r10d, 2
jne 0x18007a786
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, rsi
cmp dword [rax + rbx], r10d
je 0x18007a786
mov rax, qword [rbx + 0x370]
jmp 0x18007a78d
mov rax, qword [rbx + 0x308]
test rax, rax
je 0x18007a885
cmp r10d, 2
jne 0x18007a7ba
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov rax, r14
cmovne rax, rsi
cmp dword [rax + rbx], r10d
je 0x18007a7ba
mov rsi, qword [rbx + 0x370]
jmp 0x18007a7c1
mov rsi, qword [rbx + 0x308]
mov r12, qword [r15 + 8]
mov r15d, r13d
add r12, 0x6c
test rsi, rsi
je 0x18007a879
mov r14, r13
nop dword [rax + rax]
cmp byte [rsi], r13b
je 0x18007a879
cmp r14, 0x2d
jge 0x18007a879
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
test eax, eax
jne 0x18007a850
mov rcx, rsi
call fcn.180079aa0
test eax, eax
jne 0x18007a850
lea r8d, [rax + 0x11]
mov rcx, rsi
lea rdx, str.USE_STRONG_CRYPTO
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x18007a847
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.SCH_USE_STRONG_CRYPTO
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x18007a8d1
or dword [rbp + 0x28], 0x400000
jmp 0x18007a85a
inc r15d
mov dword [r12 + r14*4], eax
inc r14
mov edx, Ordinal_60
mov rcx, rsi
call sub.VCRUNTIME140.dll_strchr
mov rsi, rax
test rax, rax
je 0x18007a879
add rsi, 1
jne 0x18007a7e0
mov dword [rbp + 8], r15d
mov r15, qword [rbp - 0x38]
mov qword [rbp + 0x10], r12
mov rcx, qword [rdi + 0x5a0]
test rcx, rcx
jne 0x18007a8ea
cmp qword [rdi + 0x5d0], r13
je 0x18007ac74
mov rax, qword [rdi + 0x5d0]
mov r12, rcx
mov qword [rsp + 0x70], rcx
mov rsi, rcx
mov qword [rbp - 0x40], rcx
mov r15d, r13d
mov qword [rsp + 0x78], rax
mov rcx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x60], rcx
jmp 0x18007aae6
lea rdx, str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
mov rcx, rdi
call fcn.180067c80
mov eax, Ordinal_60
jmp 0x18007b38f
mov rax, qword [rdi + 0x5d0]
xor r8d, r8d
mov qword [rsp + 0x70], r8
mov r15d, r13d
mov qword [rbp - 0x40], r8
mov r12d, r8d
mov qword [rsp + 0x60], r8
mov esi, r8d
mov qword [rbp - 0x80], r8
mov qword [rsp + 0x78], rax
test rax, rax
je 0x18007a92e
mov rcx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x60], rcx
jmp 0x18007aae6
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rsi, rax
test rax, rax
je case.0x18007afea.2146893056
mov edx, 0x5c
mov rcx, rax
call sub.VCRUNTIME140.dll_strchr
mov r12, rax
test rax, rax
je 0x18007aab8
mov r14, rax
lea rdx, str.CurrentUser
sub r14, rsi
mov rcx, rsi
mov r8, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x18007a981
mov r15d, 0x10000
jmp 0x18007aa5e
mov r8, r14
lea rdx, str.LocalMachine
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x18007a9a3
mov r15d, 0x20000
jmp 0x18007aa5e
mov r8, r14
lea rdx, str.CurrentService
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x18007a9c5
mov r15d, 0x40000
jmp 0x18007aa5e
mov r8, r14
lea rdx, str.Services
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x18007a9e4
mov r15d, 0x50000
jmp 0x18007aa5e
mov r8, r14
lea rdx, str.Users
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x18007aa03
mov r15d, 0x60000
jmp 0x18007aa5e
mov r8, r14
lea rdx, str.CurrentUserGroupPolicy
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x18007aa22
mov r15d, 0x70000
jmp 0x18007aa5e
mov r8, r14
lea rdx, str.LocalMachineGroupPolicy
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x18007aa41
mov r15d, 0x80000
jmp 0x18007aa5e
mov r8, r14
lea rdx, str.LocalMachineEnterprise
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x18007aab8
mov r15d, 0x90000
mov edx, 0x5c
lea rcx, [r12 + 1]
call sub.VCRUNTIME140.dll_strchr
mov r14, rax
test rax, rax
je 0x18007aab8
lea rcx, [rax + 1]
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x70], rcx
inc rax
cmp byte [rcx + rax], r13b
jne 0x18007aa85
cmp rax, 0x28
jne 0x18007aab8
lea rcx, [r12 + 1]
mov byte [r14], r13b
call qword [case.0x180061279.0]
mov byte [r14], 0x5c
mov r13, rax
test rax, rax
jne 0x18007ab43
lea r14d, [rax + 0x1b]
jmp 0x18007aabe
mov r14d, Ordinal_60
mov rcx, qword [rdi + 0x5a0]
cmp byte [rcx], 0
je 0x18007afec
lea rdx, [0x180132df8]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov r12, rax
test rax, rax
je 0x18007afec
mov rcx, qword [rdi + 0x620]
test rcx, rcx
je 0x18007ab2c
lea rdx, [0x1800aa504]
call fcn.18006b740
test eax, eax
jne 0x18007ab2c
cmp qword [rsp + 0x78], 0
lea r15, str._memory_blob_
jne 0x18007ab18
mov r15, qword [rdi + 0x5a0]
mov r8, r15
lea rdx, str.schannel:_certificate_format_compatibility_error__for__s
mov rcx, rdi
call fcn.180067c80
jmp 0x18007ab8e
mov rax, qword [rsp + 0x78]
test r12, r12
jne 0x18007acc6
test rax, rax
jne 0x18007acc6
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 r14, rax
test rax, rax
jne 0x18007abaa
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.180067c80
mov rcx, r13
call qword [0x180141008]
test rsi, rsi
je 0x18007aec5
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, Ordinal_60
jmp 0x18007b38f
mov rcx, r13
call qword [0x180141008]
mov rcx, qword [rsp + 0x70]
lea rax, [rbp + 0x80]
xor r13d, r13d
mov qword [rbp + 0x48], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
lea r9, [rbp + 0x80]
mov qword [rsp + 0x20], rax
lea edx, [r13 + 0x28]
mov dword [rbp + 0x40], reloc.WS2_32.dll_sendto
lea r8d, [r13 + 4]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x18007ac10
test rsi, rsi
je 0x18007af19
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18007af19
mov r9d, 0x10000
mov qword [rsp + 0x28], r13
lea rax, [rbp + 0x40]
xor r8d, r8d
mov rcx, r14
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x68], rax
test rsi, rsi
je 0x18007ac4c
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x18007af19
lea rax, [rsp + 0x68]
mov dword [rbp - 0x1c], 1
xor edx, edx
mov qword [rbp - 0x18], rax
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov r15, qword [rbp - 0x38]
mov edx, reloc.WLDAP32.dll_Ordinal_32
lea ecx, [rdx - 0x1f]
call qword [case.0x180061279.1]
mov rcx, qword [r15 + 8]
mov qword [rcx], rax
mov rax, qword [r15 + 8]
mov rcx, qword [rax]
test rcx, rcx
jne 0x18007af2e
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, rdi
call fcn.180067c80
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je case.0x18007afea.2146893056
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x18007b38f
xor ecx, ecx
lea r15, str._memory_blob_
mov r14d, ecx
mov r13d, ecx
test rax, rax
jne 0x18007ace1
mov r15, qword [rdi + 0x5a0]
test rsi, rsi
je 0x18007acf1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ecx, ecx
test r12, r12
je 0x18007adc4
xor edx, edx
mov esi, ecx
mov rcx, r12
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
sete r13b
test eax, eax
jne 0x18007ad62
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
test eax, eax
jns 0x18007ad62
mov rsi, qword [rbp - 0x80]
xor r13b, r13b
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x18007ad90
mov r9, r12
mov r8d, 1
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp eax, 1
jne 0x18007ad90
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r13b, r13b
je 0x18007ad99
mov r13d, r14d
jmp 0x18007adc8
test r13b, r13b
je 0x18007ad2b
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
sete r13b
test eax, eax
jne 0x18007ad2b
lea rcx, [rsi + 1]
call qword [section..data]
mov qword [rsp + 0x60], rax
jmp 0x18007ad30
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [rdi + 0x5a0]
lea rdx, str.schannel:_Failed_to_read_cert_file__s
mov rcx, rdi
call fcn.180067c80
mov rcx, qword [rsp + 0x60]
call qword [0x180141008]
mov eax, Ordinal_60
jmp 0x18007b38f
mov rsi, qword [rbp - 0x80]
mov rax, qword [rdi + 0x640]
mov r12, qword [rsp + 0x60]
mov qword [rbp + 0x68], r12
mov dword [rbp + 0x60], esi
test rax, rax
je 0x18007adfa
mov r14, 0xffffffffffffffff
nop word [rax + rax]
inc r14
cmp byte [rax + r14], 0
jne 0x18007adf0
lea rcx, [r14*2 + 2]
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x18007ae76
test r14, r14
je 0x18007ae43
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]
mov r13d, eax
test eax, eax
js 0x18007ae53
cmp r13d, r14d
jg 0x18007ae53
mov eax, r13d
xor ecx, ecx
mov word [rsi + rax*2], cx
jmp 0x18007ae58
xor ecx, ecx
mov word [rsi], cx
xor r8d, r8d
lea rcx, [rbp + 0x60]
mov rdx, rsi
call qword [sym.imp.CRYPT32.dll_PFXImportCertStore]
mov rcx, rsi
mov r14, rax
call qword [0x180141008]
jmp 0x18007ae7a
mov r14, qword [rbp - 0x40]
cmp qword [rsp + 0x78], 0
jne 0x18007ae8b
mov rcx, r12
call qword [0x180141008]
test r14, r14
jne 0x18007aecf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r15
mov rcx, rdi
cmp eax, 0x56
jne 0x18007aeb6
lea rdx, str.schannel:_Failed_to_import_cert_file__s__password_is_bad
call fcn.180067c80
lea eax, [r14 + 0x3a]
jmp 0x18007b38f
mov r9d, eax
lea rdx, str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
call fcn.180067c80
mov eax, Ordinal_60
jmp 0x18007b38f
xor r13d, r13d
xor r9d, r9d
mov qword [rsp + 0x28], r13
xor r8d, r8d
mov edx, 0x10001
mov qword [rsp + 0x20], r13
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x18007ac55
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.180067c80
xor edx, edx
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, Ordinal_60
jmp 0x18007b38f
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 - 0x20]
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 [0x180141328]
call qword [rax + Ordinal_26]
mov rcx, qword [rsp + 0x68]
mov esi, eax
test rcx, rcx
je 0x18007af89
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x18007b045
mov r8d, 0x100
lea rdx, [rbp + 0x120]
mov ecx, esi
call fcn.180076910
mov r8, rax
lea rdx, str.schannel:_AcquireCredentialsHandle_failed:__s
mov rcx, rdi
call fcn.180067c80
mov rcx, qword [r15 + 8]
mov rcx, qword [rcx]
call qword [0x180141008]
mov rax, qword [r15 + 8]
add esi, 0x7ff6fd00
mov qword [rax], r13
cmp esi, 0xe
ja case.0x18007afea.2146893055
lea rdx, [0x180000000]
movsxd rax, esi
mov ecx, dword [rdx + rax*4 + 0x7b3dc]
add rcx, rdx
jmp rcx
mov r8, qword [rdi + 0x5a0]
lea rdx, str.schannel:_Failed_to_get_certificate_location_or_file_for__s
mov rcx, rdi
call fcn.180067c80
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, r14d
jmp 0x18007b38f
lea rdx, str.SSL_versions_not_supported
mov rcx, rdi
call fcn.180067c80
mov eax, 4
jmp 0x18007b38f
lea rdx, str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
mov rcx, rdi
call fcn.180067c80
mov eax, reloc.WLDAP32.dll_Ordinal_35
jmp 0x18007b38f
mov r12, qword [rbp + 0x38]
mov r14d, 0x2a0
mov rsi, qword [rbp - 0x30]
lea r8, [rbp + 0x30]
mov rdx, rsi
mov ecx, 2
call fcn.180077f80
test eax, eax
jne 0x18007b07b
lea r8, [rbp + 0x70]
mov rdx, rsi
lea ecx, [rax + 0x17]
call fcn.180077f80
test eax, eax
je 0x18007b08a
lea rdx, str.schannel:_using_IP_address__SNI_is_not_supported_by_OS._n
mov rcx, rdi
call fcn.180067de0
mov rax, qword [r15 + 8]
cmp byte [rax + 0x6a], 0
je 0x18007b110
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.180067de0
mov ecx, 9
call fcn.18006a560
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 - 0x50], 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 0x18007b124
lea rcx, [rbp - 0x78]
mov qword [rbp - 0x78], 0
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x70], r13
lea rcx, [rbp - 0x68]
mov dword [rbp - 0x54], 1
mov qword [rbp + 0x58], rcx
mov dword [rbp - 0x58], r13d
mov qword [rbp - 0x68], 0
mov qword [rbp - 0x60], r13
mov dword [rbp + 0x50], r13d
mov dword [rbp + 0x54], 1
mov dword [rax + 0x5c], 0x811c
cmp dword [rbx + 0x13c], 2
jne 0x18007b17f
cmp qword [rbx + 0x1f0], 0xffffffffffffffff
mov eax, 0x2b8
cmovne r14, rax
cmp dword [r14 + rbx], 2
je 0x18007b17f
movzx eax, byte [rdi + 0x717]
jmp 0x18007b186
movzx eax, byte [rdi + 0x64f]
test al, al
jne 0x18007b195
mov rax, qword [r15 + 8]
or dword [rax + 0x5c], 0x80
mov edx, Ordinal_26
lea ecx, [rdx - 0x17]
call qword [case.0x180061279.1]
mov rcx, qword [r15 + 8]
mov qword [rcx + 8], rax
mov rcx, qword [r15 + 8]
cmp qword [rcx + 8], 0
jne 0x18007b1cf
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, rdi
call fcn.180067c80
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x18007b38f
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov r14, rax
test rax, rax
je case.0x18007afea.2146893056
mov rcx, qword [r15 + 8]
lea r8, [rbp - 0x58]
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 + 0x50]
mov qword [rsp + 0x50], rdx
xor edx, edx
mov qword [rsp + 0x48], rax
mov rax, qword [0x180141328]
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 qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp esi, 0x90312
je 0x18007b2f7
mov rcx, qword [r15 + 8]
mov rcx, qword [rcx + 8]
call qword [0x180141008]
mov rcx, qword [r15 + 8]
mov r8d, 0x100
lea rdx, [rbp + 0x120]
mov qword [rcx + 8], r13
cmp esi, 0x80090300
je 0x18007b2d1
cmp esi, 0x80090322
je 0x18007b2ab
mov ecx, esi
call fcn.180076910
mov r8, rax
lea rdx, str.schannel:_initial_InitializeSecurityContext_failed:__s
mov rcx, rdi
call fcn.180067c80
mov eax, reloc.WLDAP32.dll_Ordinal_35
jmp 0x18007b38f
mov ecx, 0x80090322
call fcn.180076910
mov r8, rax
lea rdx, str.schannel:_SNI_or_certificate_check_failed:__s
mov rcx, rdi
call fcn.180067c80
mov eax, reloc.WLDAP32.dll_Ordinal_60
jmp 0x18007b38f
mov ecx, 0x80090300
call fcn.180076910
mov r8, rax
lea rdx, str.schannel:_initial_InitializeSecurityContext_failed:__s
mov rcx, rdi
call fcn.180067c80
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x18007b38f
mov r9d, dword [rbp - 0x68]
lea rax, [rbp - 0x28]
mov r8, qword [rbp - 0x60]
mov rcx, rdi
mov rdx, qword [rbx + r12*8 + 0x1e8]
mov qword [rsp + 0x20], rax
call fcn.1800683d0
mov rdx, qword [0x180141328]
mov ebx, eax
mov rcx, qword [rbp - 0x60]
call qword [rdx + 0x80]
mov r8, qword [rbp - 0x28]
mov r9d, dword [rbp - 0x68]
test ebx, ebx
jne 0x18007b365
cmp r9, r8
jne 0x18007b365
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 0x18007b38f
lea rdx, str.schannel:_failed_to_send_initial_handshake_data:_sent__zd_of__lu_bytes
mov rcx, rdi
call fcn.180067c80
mov eax, reloc.WLDAP32.dll_Ordinal_35
jmp 0x18007b38f
lea rdx, str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
mov rcx, rdi
call fcn.180067c80
mov eax, Ordinal_79
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1800a1750
mov rbx, qword [rsp + 0x388]
add rsp, 0x330
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret