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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x120], ebx
call fcn.006dc3be
mov dword [ebp - 0x12c], eax
pop ecx
test eax, eax
jne 0x6e9967
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.006c283a
push eax
push esi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push edi
call fcn.006cd005
add esp, 0x1c
push 0x4d
pop ebx
jmp 0x6e9c92
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x124], eax
cmp eax, 0xffffffff
jne 0x6e99aa
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.006c283a
push eax
push esi
push str.schannel:_failed_to_open_CA_file__s:__s
jmp 0x6e9956
lea ecx, [ebp - 0x134]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x6e99ec
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.006c283a
push eax
push esi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push edi
call fcn.006cd005
add esp, 0x1c
push 0x4d
pop ebx
jmp 0x6e9c86
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x130], ebx
jl 0x6e9a1c
mov ecx, 0x100000
jg 0x6e9a0b
cmp eax, ecx
jbe 0x6e9a1c
push ecx
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push edi
call fcn.006cd005
add esp, 0xc
jmp 0x6e99e4
inc eax
push eax
call dword [0x904f04]
mov edx, eax
mov dword [ebp - 0x11c], edx
pop ecx
test edx, edx
jne 0x6e9a35
push 0x1b
jmp 0x6e99e6
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x6e9a9e
mov ecx, ebx
push ebx
lea esi, [ebp - 0x110]
mov dword [ebp - 0x110], ebx
push esi
sub eax, ecx
push eax
lea eax, [ecx + edx]
push eax
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp - 0x10c]
test eax, eax
je 0x6e9b97
mov edx, dword [ebp - 0x11c]
cmp dword [ebp - 0x110], ebx
je 0x6e9b8c
mov ecx, dword [ebp - 0x114]
add ecx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x114], ecx
cmp ecx, eax
jb 0x6e9a41
mov byte [eax + edx], bl
mov eax, edx
mov byte [ebp - 0x105], 1
mov dword [ebp - 0x118], eax
cmp byte [eax], bl
je 0x6e9c57
push str._____BEGIN_CERTIFICATE_____
push eax
call fcn.0073a530
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x6e9bbb
mov al, byte [esi + 0x1b]
cmp al, 0xd
je 0x6e9ade
cmp al, 0xa
jne 0x6e9bbb
push str._n_____END_CERTIFICATE_____
push esi
call fcn.0073a530
pop ecx
pop ecx
test eax, eax
je 0x6e9c47
sub eax, esi
mov dword [ebp - 0x114], ebx
add eax, 0x1a
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x110]
mov dword [ebp - 0x138], esi
push eax
push ebx
push ebx
push 0xe
push 2
lea eax, [ebp - 0x13c]
push eax
push 2
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
je 0x6e9c1e
add dword [ebp - 0x118], esi
cmp dword [ebp - 0x110], 1
jne 0x6e9bff
push ebx
push 4
push dword [ebp - 0x114]
push dword [ebp - 0x128]
call dword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
push dword [ebp - 0x114]
mov esi, eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x6e9bd6
inc dword [ebp - 0x120]
mov cl, byte [ebp - 0x105]
jmp 0x6e9bc3
mov eax, dword [ebp - 0x114]
jmp 0x6e9a9e
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.006c283a
push eax
push esi
push str.schannel:_failed_to_read_from_CA_file__s:__s
jmp 0x6e99db
mov cl, bl
mov byte [ebp - 0x105], cl
test cl, cl
je 0x6e9c57
mov eax, dword [ebp - 0x118]
jmp 0x6e9ab0
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.006c283a
push eax
push dword [ebp - 0x10c]
push str.schannel:_failed_to_add_certificate_from_CA_file__s_to_certificate_store:__s
jmp 0x6e99db
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
push str.schannel:_unexpected_content_type__d_when_extracting_certificate_from_CA_file__s
push edi
call fcn.006cd005
add esp, 0x10
jmp 0x6e99e4
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.006c283a
push eax
push dword [ebp - 0x10c]
push str.schannel:_failed_to_extract_certificate_from_CA_file__s:__s
jmp 0x6e99db
push dword [ebp - 0x10c]
push str.schannel:_CA_file__s_is_not_correctly_formatted
jmp 0x6e9a11
mov eax, dword [ebp - 0x120]
push dword [ebp - 0x10c]
test eax, eax
jne 0x6e9c77
push str.schannel:_did_not_add_any_certificates_from_CA_file__s_n
push edi
call fcn.006cd0b1
add esp, 0xc
jmp 0x6e9c86
push eax
push str.schannel:_added__d_certificate_s__from_CA_file__s_n
push edi
call fcn.006cd0b1
add esp, 0x10
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x11c]
call dword [0x904f08]
mov eax, dword [ebp - 0x12c]
pop ecx
test eax, eax
je 0x6e9cb0
push eax
call fcn.00741f99
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007207bc
leave
ret