Function at 0x14005f0ec
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 - 0x130]
sub rsp, 0x230
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rbp + 0x120], rax
movsxd rax, r8d
xor r13d, r13d
add rax, 0x1a
mov qword [rsp + 0x68], r13
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rbp - 0x50]
lea r8d, [r13 + 0x50]
lea r14, [rax + rax*2]
mov qword [rbp - 0x70], r14
call sub.VCRUNTIME140.dll_memset
lea r15d, [r13 + 2]
mov esi, 0x2a0
mov dword [rbp - 0x50], 4
lea r12d, [rsi + 0x18]
cmp byte [rdi + 0x348], r13b
je 0x14005f1ee
mov rax, qword [rdi + r14*8 + 8]
mov cl, byte [rax + 0x6b]
neg cl
mov ecx, dword [rdi + 0x13c]
sbb edx, edx
and edx, 0xffffffe8
add edx, 0x20
cmp ecx, r15d
jne 0x14005f1a2
cmp qword [rdi + 0x1f0], 0xffffffffffffffff
mov eax, esi
cmovne eax, r12d
cmp dword [rax + rdi], r15d
je 0x14005f1a2
mov al, byte [rbx + 0x713]
jmp 0x14005f1a8
mov al, byte [rbx + 0x64b]
test al, al
je 0x14005f1b4
or edx, 0x1800
jmp 0x14005f1f9
cmp ecx, r15d
jne 0x14005f1d6
cmp qword [rdi + 0x1f0], 0xffffffffffffffff
mov rax, rsi
cmovne rax, r12
cmp dword [rax + rdi], r15d
je 0x14005f1d6
mov al, byte [rbx + 0x715]
jmp 0x14005f1dc
mov al, byte [rbx + 0x64d]
test al, al
je 0x14005f1e8
or edx, 0x1a00
jmp 0x14005f1f9
bts edx, 9
jmp 0x14005f1f9
mov ecx, dword [rdi + 0x13c]
mov edx, 0x1808
mov dword [rbp - 8], edx
cmp byte [rdi + 0x349], r13b
jne 0x14005f20b
or edx, 4
mov dword [rbp - 8], edx
cmp ecx, r15d
jne 0x14005f22d
cmp qword [rdi + 0x1f0], 0xffffffffffffffff
mov rax, rsi
cmovne rax, r12
cmp dword [rax + rdi], r15d
je 0x14005f22d
mov al, byte [rbx + 0x717]
jmp 0x14005f233
mov al, byte [rbx + 0x64f]
test al, al
jne 0x14005f249
and edx, 0xffffffbf
or edx, 0x10
mov dword [rbp - 8], edx
lea rdx, str.schannel:_disabled_automatic_use_of_client_certificate
jmp 0x14005f250
lea rdx, str.schannel:_enabled_automatic_use_of_client_certificate
mov rcx, rbx
call fcn.14005a450
mov ecx, dword [rdi + 0x2d8]
test ecx, ecx
je 0x14005f2b7
sub ecx, 1
je 0x14005f2b7
sub ecx, 1
je 0x14005f29e
sub ecx, 1
je 0x14005f29e
sub ecx, 1
je 0x14005f2b7
sub ecx, 1
je 0x14005f2b7
sub ecx, 1
je 0x14005f2b7
cmp ecx, 1
je 0x14005f2b7
lea rdx, str.Unrecognized_parameter_passed_via_CURLOPT_SSLVERSION
mov rcx, rbx
call fcn.14005a384
mov eax, 0x23
jmp 0x14005f890
lea rdx, str.SSL_versions_not_supported
mov rcx, rbx
call fcn.14005a384
mov eax, 4
jmp 0x14005f890
mov r8, rdi
lea rcx, [rbp - 0x50]
mov rdx, rbx
call fcn.140061660
test eax, eax
jne 0x14005f890
mov ecx, dword [rdi + 0x13c]
cmp ecx, r15d
jne 0x14005f2f7
cmp qword [rdi + 0x1f0], 0xffffffffffffffff
mov rax, rsi
cmovne rax, r12
cmp dword [rax + rdi], r15d
je 0x14005f2f7
mov rax, qword [rdi + 0x388]
jmp 0x14005f2fe
mov rax, qword [rdi + 0x310]
test rax, rax
je 0x14005f358
cmp ecx, r15d
jne 0x14005f323
cmp qword [rdi + 0x1f0], 0xffffffffffffffff
cmovne rsi, r12
cmp dword [rsi + rdi], r15d
je 0x14005f323
mov rdx, qword [rdi + 0x388]
jmp 0x14005f32a
mov rdx, qword [rdi + 0x310]
mov r8, qword [rdi + r14*8 + 8]
lea rcx, [rbp - 0x50]
add r8, 0x6c
call fcn.140061570
mov esi, eax
test eax, eax
je 0x14005f358
lea rdx, str.Unable_to_set_ciphers_to_passed_via_SSL_CONN_CONFIG
mov rcx, rbx
call fcn.14005a384
mov eax, esi
jmp 0x14005f890
mov rcx, qword [rbx + 0x5a8]
test rcx, rcx
jne 0x14005f371
cmp qword [rbx + 0x5d8], r13
je 0x14005f849
mov rax, qword [rbx + 0x5d8]
mov r12d, r13d
and qword [rsp + 0x60], r12
xor esi, esi
and qword [rsp + 0x58], r12
mov r14, r13
mov dword [rsp + 0x54], r13d
mov r15, r13
mov qword [rsp + 0x70], r13
mov qword [rbp - 0x80], r13
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14005f3b8
mov rcx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rcx
jmp 0x14005f41d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rsi, rax
test rax, rax
je 0x14005f88b
lea r9, [rbp - 0x80]
mov rcx, rax
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x54]
call fcn.14005ede4
mov r14d, eax
test eax, eax
je 0x14005f711
mov rcx, qword [rbx + 0x5a8]
cmp byte [rcx], r13b
je 0x14005f6ea
lea rdx, [0x140085900]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov r13, rax
test rax, rax
je 0x14005f6ea
mov r12d, dword [rsp + 0x54]
mov r14, qword [rsp + 0x70]
mov rcx, qword [rbx + 0x620]
test rcx, rcx
je 0x14005f465
lea rdx, [0x140087abc]
call fcn.14004cfbc
test eax, eax
jne 0x14005f465
lea r14, str._memory_blob_
cmp qword [rsp + 0x78], r15
jne 0x14005f44e
mov r14, qword [rbx + 0x5a8]
mov r8, r14
lea rdx, str.schannel:_certificate_format_compatibility_error__for__s
mov rcx, rbx
call fcn.14005a384
jmp 0x14005f76b
mov rax, qword [rsp + 0x78]
test r13, r13
jne 0x14005f478
test rax, rax
je 0x14005f71d
xor r12d, r12d
lea r14, str._memory_blob_
and dword [rsp + 0x70], r12d
test rax, rax
jne 0x14005f493
mov r14, qword [rbx + 0x5a8]
test rsi, rsi
je 0x14005f4a1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r13, r13
je 0x14005f5a1
xor esi, esi
xor edx, edx
mov rcx, r13
lea r8d, [rsi + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
mov dword [rsp + 0x54], eax
sete byte [rsp + 0x50]
test eax, eax
jne 0x14005f554
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
test eax, eax
jns 0x14005f550
mov byte [rsp + 0x50], r12b
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
test rsi, rsi
je 0x14005f50b
mov rdx, rcx
mov r9, r13
mov rcx, rsi
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp eax, 1
je 0x14005f510
mov byte [rsp + 0x50], r12b
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor r13d, r13d
cmp byte [rsp + 0x50], r13b
jne 0x14005f5a9
mov r8, qword [rbx + 0x5a8]
lea rdx, str.schannel:_Failed_to_read_cert_file__s
mov rcx, rbx
call fcn.14005a384
mov rcx, rsi
call qword [0x1400a0210]
mov eax, 0x3a
jmp 0x14005f890
mov eax, dword [rsp + 0x54]
mov ecx, esi
mov qword [rsp + 0x58], rcx
test eax, eax
jne 0x14005f597
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
sete byte [rsp + 0x50]
test eax, eax
jne 0x14005f4e2
mov rcx, qword [rsp + 0x58]
inc rcx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov qword [rsp + 0x60], rax
jmp 0x14005f4e7
mov rsi, qword [rsp + 0x60]
jmp 0x14005f4ec
mov rsi, qword [rsp + 0x60]
xor r13d, r13d
mov rcx, qword [rbx + 0x640]
mov rax, qword [rsp + 0x58]
mov qword [rbp - 0x78], rsi
mov dword [rbp - 0x80], eax
test rcx, rcx
je 0x14005f5c9
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r12, rax
lea rcx, [r12*2 + 2]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14005f634
test r12, r12
je 0x14005f66d
mov r8, qword [rbx + 0x640]
lea ecx, [r12 + 1]
mov dword [rsp + 0x28], ecx
mov r9d, r12d
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jns 0x14005f671
mov word [rsi], r13w
xor r8d, r8d
lea rcx, [rbp - 0x80]
mov rdx, rsi
call qword [sym.imp.CRYPT32.dll_PFXImportCertStore]
mov rcx, rsi
mov r15, rax
call qword [0x1400a0210]
cmp qword [rsp + 0x78], r13
jne 0x14005f646
mov rcx, qword [rsp + 0x60]
call qword [0x1400a0210]
test r15, r15
jne 0x14005f693
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r14
mov rcx, rbx
cmp eax, 0x56
jne 0x14005f67f
lea rdx, str.schannel:_Failed_to_import_cert_file__s__password_is_bad
call fcn.14005a384
jmp 0x14005f546
mov eax, dword [rsp + 0x70]
cmp eax, r12d
jg 0x14005f614
mov eax, eax
mov word [rsi + rax*2], r13w
jmp 0x14005f618
mov r9d, eax
lea rdx, str.schannel:_Failed_to_import_cert_file__s__last_error_is_0x_x
call fcn.14005a384
jmp 0x14005f546
mov qword [rsp + 0x28], r13
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov edx, 0x10001
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x14005f824
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r14
lea rdx, str.schannel:_Failed_to_get_certificate_from_file__s__last_error_is_0x_x
mov r9d, eax
mov rcx, rbx
call fcn.14005a384
xor edx, edx
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
jmp 0x14005f546
mov r8, qword [rbx + 0x5a8]
lea rdx, str.schannel:_Failed_to_get_certificate_location_or_file_for__s
mov rcx, rbx
call fcn.14005a384
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, r14d
jmp 0x14005f890
mov r12d, dword [rsp + 0x54]
mov r14, qword [rsp + 0x70]
jmp 0x14005f720
xor r13d, r13d
xor edx, edx
mov qword [rsp + 0x20], r14
mov r9d, r12d
xor r8d, r8d
bts r9d, 0xe
lea ecx, [rdx + 9]
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
mov r15, rax
test rax, rax
jne 0x14005f782
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, r14
lea rdx, str.schannel:_Failed_to_open_cert_store__x__s__last_error_is_0x_x
mov r8d, r12d
mov dword [rsp + 0x20], eax
mov rcx, rbx
call fcn.14005a384
mov rcx, r14
call qword [0x1400a0210]
test rsi, rsi
je 0x14005f546
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14005f546
mov rcx, r14
call qword [0x1400a0210]
mov rcx, qword [rbp - 0x80]
lea rax, [rbp]
mov edx, 0x28
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x30], r13
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], r13
lea r9, [rbp]
mov dword [rbp - 0x68], setsockopt
lea r8d, [rdx - 0x24]
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x14005f7df
test rsi, rsi
je 0x14005f6da
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14005f6da
mov r9d, 0x10000
mov qword [rsp + 0x28], r13
lea rax, [rbp - 0x68]
xor r8d, r8d
mov rcx, r15
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 0x14005f81b
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 0x14005f6da
lea rax, [rsp + 0x68]
mov dword [rbp - 0x4c], 1
xor edx, edx
mov qword [rbp - 0x48], rax
mov rcx, r15
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov r14, qword [rbp - 0x70]
mov r15d, 2
mov edx, 0x20
lea ecx, [rdx - 0x1f]
call qword [case.0x14007524c.1]
mov rcx, qword [rdi + r14*8 + 8]
mov qword [rcx], rax
mov rax, qword [rdi + r14*8 + 8]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14005f8ba
lea rdx, str.schannel:_unable_to_allocate_memory
mov rcx, rbx
call fcn.14005a384
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14005f88b
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, 0x1b
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.14007ae30
mov rbx, qword [rsp + 0x288]
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rcx + 0x18], 1
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
mov rax, qword [rdi + r14*8 + 8]
xor r9d, r9d
mov r8d, r15d
mov rcx, qword [rax]
lea rax, [rcx + 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x50]
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 [0x1400a4738]
call qword [rax + 0x18]
mov rcx, qword [rsp + 0x68]
mov esi, eax
test rcx, rcx
je 0x14005f915
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x14005f968
mov r8d, 0x100
lea rdx, [rbp + 0x20]
mov ecx, esi
call fcn.140062954
mov r8, rax
lea rdx, str.schannel:_AcquireCredentialsHandle_failed:__s
mov rcx, rbx
call fcn.14005a384
mov rcx, qword [rdi + r14*8 + 8]
mov rcx, qword [rcx]
call qword [0x1400a0210]
mov rax, qword [rdi + r14*8 + 8]
cmp esi, 0x80090300
mov qword [rax], r13
mov eax, 0x1b
lea ecx, [rax + 8]
cmovne eax, ecx
jmp 0x14005f890
xor eax, eax
jmp 0x14005f890