Function at 0x449de0
Capabilities:
Get file size
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x238
mov rbp, qword [rcx]
mov r12, qword [rcx + 0x340]
movsxd rdx, edx
mov rbx, rcx
mov qword [rsp + 0xc0], 0
lea rax, [rdx + rdx*2]
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
lea r8, [rsp + 0xc0]
mov edx, 0x53
lea rsi, [rcx + rax*8]
mov rax, qword [rsi + 0x4e0]
mov rcx, qword [rax + 8]
mov rax, qword [0x0048e550]
mov rax, qword [rax]
call qword [rax + 0x58]
test eax, eax
jne 0x449fc2
mov rdx, qword [rsp + 0xc0]
test rdx, rdx
je 0x449fc2
cmp qword [rbx + 0x520], 0
je 0x44a0c0
mov rax, qword [rsi + 0x4e0]
xor esi, esi
lea r13, [rsp + 0xe0]
cmp byte [rax + 0x6b], 0
jne 0x449ff5
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
lea rcx, [rsp + 0xc8]
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
mov dword [rsp + 0xe0], 0x20
movzx eax, byte [rbp + 0xab0]
mov r9, qword [rdx + 0x20]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], r13
mov rcx, qword [rsp + 0xd0]
and eax, 8
cmp al, 1
sbb eax, eax
xor r8d, r8d
and eax, 0x20000000
mov dword [rsp + 0x28], eax
call qword [sym.imp.CRYPT32.dll_CertGetCertificateChain]
test eax, eax
je 0x44a0d0
mov rax, qword [rsp + 0xc8]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov r8d, dword [rax + 4]
mov eax, r8d
and r8d, 0xfeffffbd
and eax, 0xfffffffd
test byte [rbp + 0xab0], 0x20
cmove r8d, eax
test r8d, r8d
jne 0x44a030
test byte [rbx + 0x560], 2
jne 0x44a080
xor ebx, ebx
mov rcx, qword [rsp + 0xd0]
test rcx, rcx
je 0x449f76
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateChainEngine]
test rsi, rsi
je 0x449f86
xor edx, edx
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x449f99
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateChain]
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x449fac
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, ebx
add rsp, 0x238
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rsp + 0x130]
mov r8d, 0x100
mov ecx, eax
xor esi, esi
mov ebx, 0x3c
call sym.Curl_sspi_strerror
lea rdx, str.schannel:_Failed_to_read_remote_certificate_context:__s
mov r8, rax
mov rcx, rbp
call sym.Curl_failf
jmp 0x449f63
xor r9d, r9d
mov r8d, 2
mov edx, 1
mov ecx, 6
call sym.Curl_verify_windows_version
test al, al
je 0x44a113
lea rdx, str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
mov rcx, rbp
call sym.Curl_failf
xor esi, esi
mov ebx, 0x4d
jmp 0x449f63
test r8b, 4
jne 0x44a340
test r8d, 0x10000
jne 0x44a202
test r8b, 0x20
jne 0x44a3a0
test r8b, 1
jne 0x44a431
test r8b, 0x40
je 0x44a3eb
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_REVOCATION_STATUS_UNKNOWN
mov rcx, rbp
call sym.Curl_failf
jmp 0x44a109
mov r14, qword [rsp + 0xc0]
mov rdi, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call sym.cert_get_name_string
test eax, eax
mov ebp, eax
jne 0x44a270
lea rdx, str.schannel:_CertGetNameString___returned_no_certificate_name_information
mov rcx, rdi
mov ebx, 0x3c
call sym.Curl_failf
jmp 0x449f63
xor esi, esi
lea r13, [rsp + 0xe0]
jmp 0x449e96
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x130]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_winapi_strerror
lea rdx, str.schannel:_CertGetCertificateChain_failed:__s
mov r8, rax
mov rcx, rbp
call sym.Curl_failf
mov qword [rsp + 0xc8], 0
mov ebx, 0x3c
jmp 0x449f63
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], 0
mov r9d, 0x2000
mov ecx, 2
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
test rax, rax
mov rsi, rax
je 0x44a3ff
mov rdi, qword [rbx + 0x520]
mov rax, qword [rbx]
test rdi, rdi
mov qword [rsp + 0x68], rax
je 0x44a220
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r8d, 1
mov edx, 0x80000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov r15, rax
je 0x44a3b4
lea rdx, [rsp + 0xb0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x44a354
mov r14, qword [rsp + 0xb0]
cmp r14, 0x100000
jle 0x44a461
mov rcx, qword [rsp + 0x68]
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov r8d, 0x100000
mov ebx, 0x4d
call sym.Curl_failf
mov qword [rsp + 0x70], 0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x0048e0e0]
mov rcx, qword [rsp + 0x70]
call qword [rax]
jmp 0x449f63
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_IS_PARTIAL_CHAIN
mov rcx, rbp
call sym.Curl_failf
jmp 0x44a109
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x130]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_winapi_strerror
mov rcx, qword [rsp + 0x68]
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r9, rax
xor r8d, r8d
call sym.Curl_failf
mov rax, qword [0x0048e0e0]
xor ecx, ecx
mov ebx, 0x4d
call qword [rax]
jmp 0x449f63
mov r15d, eax
mov rax, qword [0x0048e0f0]
mov ebx, 0x1b
mov rcx, r15
call qword [rax]
test rax, rax
mov r13, rax
je 0x449f63
mov r9d, ebp
mov r8, rax
mov rdx, r14
mov rcx, rdi
call sym.cert_get_name_string
cmp ebp, eax
je 0x44a2be
lea rdx, str.schannel:_CertGetNameString___returned_certificate_name_information_of_unexpected_size
mov rcx, rdi
mov ebx, 0x3c
call sym.Curl_failf
jmp 0x449f63
xor r14d, r14d
cmp byte [r13], 0
mov rbp, r13
jne 0x44a312
jmp 0x44a509
lea rdx, str.schannel:_connection_hostname___s__did_not_match_against_certificate_name___s__n
mov rcx, rdi
mov ebx, 0x3c
call sym.Curl_infof
mov rcx, rbp
call sym.strlen
lea r14, [r14 + rax + 1]
cmp r15, r14
jbe 0x44a500
lea rbp, [r13 + r14]
cmp byte [rbp], 0
je 0x44a500
cmp ebx, 0x3c
jne 0x44a445
mov rdx, r12
mov rcx, rbp
call sym.Curl_cert_hostcheck
cmp eax, 1
mov r9, rbp
mov r8, r12
jne 0x44a2d0
lea rdx, str.schannel:_connection_hostname___s__validated_against_certificate_name___s__n
mov rcx, rdi
xor ebx, ebx
call sym.Curl_infof
jmp 0x44a2f1
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_IS_REVOKED
mov rcx, rbp
call sym.Curl_failf
jmp 0x44a109
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x130]
mov r8d, 0x100
mov ecx, eax
mov ebx, 0x4d
call sym.Curl_winapi_strerror
mov rcx, qword [rsp + 0x68]
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r9, rax
mov r8, rdi
call sym.Curl_failf
mov qword [rsp + 0x70], 0
jmp 0x44a1e6
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_IS_UNTRUSTED_ROOT
mov rcx, rbp
call sym.Curl_failf
jmp 0x44a109
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x130]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_winapi_strerror
mov rcx, qword [rsp + 0x68]
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r9, rax
mov r8, rdi
call sym.Curl_failf
jmp 0x44a252
lea rdx, str.schannel:_CertGetCertificateChain_error_mask:_0x_08x
mov rcx, rbp
call sym.Curl_failf
jmp 0x44a109
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x130]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_winapi_strerror
lea rdx, str.schannel:_failed_to_create_certificate_store:__s
mov r8, rax
mov rcx, rbp
call sym.Curl_failf
jmp 0x44a024
lea rdx, str.schannel:_CertGetCertificateChain_trust_error_CERT_TRUST_IS_NOT_TIME_VALID
mov rcx, rbp
call sym.Curl_failf
jmp 0x44a109
test ebx, ebx
je 0x449f63
lea rdx, str.schannel:_server_certificate_name_verification_failed
mov rcx, rdi
call sym.Curl_failf
jmp 0x449f63
mov rax, qword [0x0048e0f0]
lea rcx, [r14 + 1]
call qword [rax]
test rax, rax
mov qword [rsp + 0x70], rax
je 0x44a840
test r14, r14
je 0x44a53a
xor r10d, r10d
xor r11d, r11d
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x280], rbx
lea r13, [rsp + 0xe0]
mov rbp, r10
mov r12d, r11d
mov rbx, rax
jmp 0x44a4be
add r12d, eax
mov ebp, r12d
cmp rbp, r14
jae 0x44a525
mov r8d, r14d
mov dword [rsp + 0xe0], 0
lea rdx, [rbx + rbp]
sub r8d, r12d
mov qword [rsp + 0x20], 0
mov r9, r13
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44a804
mov eax, dword [rsp + 0xe0]
test eax, eax
jne 0x44a4b3
mov r14, rbp
jmp 0x44a4b6
cmp ebx, 0x3c
jne 0x44a445
lea rdx, str.schannel:_CertGetNameString___failed_to_match_connection_hostname___s__against_server_certificate_names
mov r8, r12
mov rcx, rdi
mov ebx, 0x3c
call sym.Curl_failf
jmp 0x449f63
mov rbp, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x280]
mov rax, qword [rsp + 0x70]
mov dword [rsp + 0x90], 0
mov r13, rax
mov byte [rax + r14], 0
lea rax, [rsp + 0xe0]
mov r10, r13
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0xac]
mov qword [rsp + 0x88], rax
cmp byte [r10], 0
je 0x44a5b3
lea rdx, [0x00485ce7]
mov rcx, r10
call sym.strstr
test rax, rax
mov r13, rax
je 0x44a5b3
movzx eax, byte [rax + 0x1b]
cmp al, 0xd
je 0x44a670
cmp al, 0xa
je 0x44a670
mov eax, dword [rsp + 0x90]
test eax, eax
jne 0x44a886
mov rcx, qword [rsp + 0x68]
lea rdx, str.schannel:_did_not_add_any_certificates_from_CA_file__s_n
mov r8, rdi
call sym.Curl_infof
mov rcx, r15
lea r13, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x0048e0e0]
mov rcx, qword [rsp + 0x70]
mov rdi, r13
call qword [rax]
xor eax, eax
mov ecx, 0xa
lea rdx, [rsp + 0xd0]
rep stosq qword [rdi], rax
mov dword [rsp + 0xe0], 0x50
mov qword [rsp + 0x120], rsi
mov rcx, r13
call qword [sym.imp.CRYPT32.dll_CertCreateCertificateChainEngine]
test eax, eax
mov rdx, qword [rsp + 0xc0]
jne 0x449e96
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x130]
mov r8d, 0x100
mov ecx, eax
mov ebx, 0x4d
call sym.Curl_winapi_strerror
lea rdx, str.schannel:_failed_to_create_certificate_chain_engine:__s
mov r8, rax
mov rcx, rbp
call sym.Curl_failf
jmp 0x449f63
lea rdx, str._n_____END_CERTIFICATE_____
mov rcx, r13
call sym.strstr
test rax, rax
je 0x44a7e6
lea r11, [rax + 0x1a]
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xd8], 0
mov dword [rsp + 0xac], 0
mov qword [rsp + 0xe8], r13
mov r9d, 0xe
sub r11, r13
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x88]
mov r14, r11
mov dword [rsp + 0xe0], r11d
mov qword [rsp + 0x38], 0
mov r8d, 2
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov ecx, 2
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x78]
call qword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
je 0x44a753
mov r8d, dword [rsp + 0xac]
mov r11d, r14d
lea r10, [r13 + r11]
cmp r8d, 1
je 0x44a78f
mov rcx, qword [rsp + 0x68]
lea rdx, str.schannel:_unexpected_content_type__d_when_extracting_certificate_from_CA_file__s
mov r9, rdi
mov ebx, 0x4d
call sym.Curl_failf
jmp 0x44a1e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x130]
mov r8d, 0x100
mov ecx, eax
mov ebx, 0x4d
call sym.Curl_winapi_strerror
mov rcx, qword [rsp + 0x68]
lea rdx, str.schannel:_failed_to_extract_certificate_from_CA_file__s:__s
mov r9, rax
mov r8, rdi
call sym.Curl_failf
jmp 0x44a1e6
mov qword [rsp + 0x98], r10
xor r9d, r9d
mov rdx, qword [rsp + 0xd8]
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
mov rcx, qword [rsp + 0xd8]
mov dword [rsp + 0x94], eax
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov edx, dword [rsp + 0x94]
mov r10, qword [rsp + 0x98]
test edx, edx
je 0x44a84a
add dword [rsp + 0x90], 1
jmp 0x44a582
mov rcx, qword [rsp + 0x68]
lea rdx, str.schannel:_CA_file__s_is_not_correctly_formatted
mov r8, rdi
mov ebx, 0x4d
call sym.Curl_failf
jmp 0x44a1e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x130]
mov r8d, 0x100
mov ecx, eax
mov ebx, 0x4d
call sym.Curl_winapi_strerror
mov rcx, qword [rsp + 0x68]
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r9, rax
mov r8, rdi
call sym.Curl_failf
jmp 0x44a1e6
mov ebx, 0x1b
jmp 0x44a1e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x130]
mov r8d, 0x100
mov ecx, eax
mov ebx, 0x4d
call sym.Curl_winapi_strerror
mov rcx, qword [rsp + 0x68]
lea rdx, str.schannel:_failed_to_add_certificate_from_CA_file__s_to_certificate_store:__s
mov r9, rax
mov r8, rdi
call sym.Curl_failf
jmp 0x44a1e6
mov r8d, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x68]
lea rdx, str.schannel:_added__d_certificate_s__from_CA_file__s_n
mov r9, rdi
call sym.Curl_infof
jmp 0x44a5d6