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

Disassembly:
sub esp, 0x120
mov eax, dword [0x100ed040]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.100a6786
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x10097768
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1004f020
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.10063fc0
push str.C:ProjectsWorkProjects_forexcopierlocalCopierClientCPPLibraries_vcpkg_buildtreescurl_srcurl_7_83_1_606f2be415.cleanlib_vtls_schannel_verify.c
push 0x144
push esi
call fcn.100689b0
add esp, 0x28
lea eax, [ebx + 0x4d]
jmp 0x100978c5
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x100977bc
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1004f020
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.10063fc0
add esp, 0x1c
mov esi, 0x4d
xor ebx, ebx
jmp 0x100978a7
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x100977fc
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1004f020
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.10063fc0
add esp, 0x1c
mov esi, 0x4d
jmp 0x1009789d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x1009782a
jg 0x10097810
cmp edi, 0x100000
jbe 0x1009782a
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.10063fc0
add esp, 0xc
mov esi, 0x4d
jmp 0x1009789d
push str.C:ProjectsWorkProjects_forexcopierlocalCopierClientCPPLibraries_vcpkg_buildtreescurl_srcurl_7_83_1_606f2be415.cleanlib_vtls_schannel_verify.c
lea eax, [edi + 1]
push 0x11b
push eax
call fcn.10068a60
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1009784b
lea esi, [eax + 0x1b]
jmp 0x1009789d
test edi, edi
je 0x10097884
nop
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100978e2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100978de
add esi, eax
cmp esi, edi
jb 0x10097850
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.100974e0
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.C:ProjectsWorkProjects_forexcopierlocalCopierClientCPPLibraries_vcpkg_buildtreescurl_srcurl_7_83_1_606f2be415.cleanlib_vtls_schannel_verify.c
push 0x144
push ebx
call fcn.100689b0
push dword [esp + 0x2c]
call fcn.10032211
add esp, 0x10
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1002897d
add esp, 0x120
ret
mov edi, esi
jmp 0x10097884
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1004f020
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.10063fc0
add esp, 0x1c
mov esi, 0x4d
jmp 0x1009789d