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

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x188
mov rax, qword [0x18026d300]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x58], rcx
xor ebp, ebp
mov rcx, rdx
mov qword [rsp + 0x48], rdx
mov r14d, ebp
mov ebx, ebp
mov r13, r8
mov rdi, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x1801b2d64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x70]
mov ecx, eax
call fcn.18018fce0
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, rdi
mov rcx, r13
call fcn.180179ec0
lea r8, str.C:Dev_vcpkg_buildtreescurl_srcurl_7_81_0_459d17a9d2.cleanlib_vtls_schannel_verify.c
mov edx, 0x148
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call fcn.18017f2e0
jmp 0x1801b2f1a
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rax
mov qword [rsp + 0x180], r15
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x1801b2ddc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x70]
mov ecx, eax
call fcn.18018fce0
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, rdi
mov rcx, r13
call fcn.180179ec0
lea ebx, [r15 + 0x4e]
lea r12, str.C:Dev_vcpkg_buildtreescurl_srcurl_7_81_0_459d17a9d2.cleanlib_vtls_schannel_verify.c
jmp 0x1801b2ef8
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea r12, str.C:Dev_vcpkg_buildtreescurl_srcurl_7_81_0_459d17a9d2.cleanlib_vtls_schannel_verify.c
test eax, eax
jne 0x1801b2e2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x70]
mov ecx, eax
call fcn.18018fce0
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, rdi
mov rcx, r13
call fcn.180179ec0
mov ebx, 0x4d
jmp 0x1801b2eec
mov rdi, qword [rsp + 0x50]
cmp rdi, 0x100000
jle 0x1801b2e59
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r13
call fcn.180179ec0
mov ebx, 0x4d
jmp 0x1801b2eec
lea rcx, [rdi + 1]
mov r8, r12
mov edx, 0x11b
call fcn.18017f3d0
mov r14, rax
test rax, rax
jne 0x1801b2e77
lea ebx, [rax + 0x1b]
jmp 0x1801b2eec
mov qword [rsp + 0x1d8], rsi
test rdi, rdi
je 0x1801b2ec4
mov r8d, edi
mov esi, ebx
sub r8d, ebx
mov dword [rsp + 0x40], ebp
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov rcx, r15
lea rdx, [rsi + r14]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1801b2f3d
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x1801b2ebb
mov edi, esi
jmp 0x1801b2ebd
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x1801b2e84
mov r9, qword [rsp + 0x48]
mov r8, rdi
mov rcx, qword [rsp + 0x58]
mov rdx, r14
mov byte [rdi + r14], bpl
mov qword [rsp + 0x20], r13
call fcn.1801b2a50
mov ebx, eax
mov rsi, qword [rsp + 0x1d8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, r14
mov edx, 0x148
mov r8, r12
mov rcx, rbp
call fcn.18017f2e0
mov rcx, qword [rsp + 0x60]
call fcn.1801c2281
mov r15, qword [rsp + 0x180]
mov eax, ebx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1801c0ba0
add rsp, 0x188
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x70]
mov ecx, eax
call fcn.18018fce0
mov r8, qword [rsp + 0x48]
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r9, rax
mov rcx, r13
call fcn.180179ec0
mov ebx, 0x4d
jmp 0x1801b2ee4