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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
call fcn.00421428
mov esi, eax
mov dword [ebp - 8], esi
pop ecx
test esi, esi
jne 0x431dd9
push 0x100
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042c856
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push dword [ebp + 0x10]
call fcn.00412b10
add esp, 0x1c
push 0x4d
pop ebx
jmp 0x43209e
push ebx
push 0x80
push 3
push ebx
push 1
push bind
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x431e19
push 0x100
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042c856
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
jmp 0x431dc6
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x431e5a
push 0x100
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042c856
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push dword [ebp + 0x10]
call fcn.00412b10
add esp, 0x1c
push 0x4d
pop ebx
jmp 0x432095
mov esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x28], ebx
jl 0x431e86
mov eax, 0x100000
jg 0x431e6d
cmp esi, eax
jbe 0x431e86
push eax
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push dword [ebp + 0x10]
call fcn.00412b10
add esp, 0xc
push 0x4d
pop ebx
jmp 0x432092
lea eax, [esi + 1]
push eax
call dword [section..data]
mov edx, eax
mov dword [ebp - 0x14], edx
pop ecx
test edx, edx
jne 0x431e9e
push 0x1b
jmp 0x431e80
test esi, esi
je 0x431edf
mov ecx, ebx
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
mov eax, esi
sub eax, ecx
push eax
lea eax, [ecx + edx]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x431fc1
mov edx, dword [ebp - 0x14]
cmp dword [ebp - 0xc], ebx
je 0x431fb9
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
cmp ecx, esi
jb 0x431ea4
push str._n_____END_CERTIFICATE_____
mov byte [esi + edx], bl
call fcn.0043b900
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
pop ecx
mov byte [ebp - 1], 1
mov dword [ebp - 0x18], eax
cmp byte [eax], bl
je 0x432067
push str._____BEGIN_CERTIFICATE_____
push eax
call fcn.00438fa0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x431ff0
push str._____BEGIN_CERTIFICATE_____
call fcn.0043b900
movzx ecx, byte [eax + esi]
push ecx
call fcn.00432245
add esp, 8
test eax, eax
je 0x431ff0
push str._n_____END_CERTIFICATE_____
push esi
call fcn.00438fa0
pop ecx
pop ecx
test eax, eax
je 0x43205c
sub eax, esi
mov dword [ebp - 0x10], ebx
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push 0xe
push 2
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], esi
push eax
push 2
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
je 0x43203b
add dword [ebp - 0x18], esi
cmp dword [ebp - 0xc], 1
jne 0x432022
push ebx
push 4
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test esi, esi
je 0x432001
inc dword [ebp - 0x1c]
mov cl, byte [ebp - 1]
jmp 0x431ff5
mov esi, dword [ebp - 0x10]
jmp 0x431edf
push 0x100
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042c856
push eax
push edi
push str.schannel:_failed_to_read_from_CA_file__s:__s
push dword [ebp + 0x10]
call fcn.00412b10
add esp, 0x1c
jmp 0x431e7e
mov cl, bl
mov byte [ebp - 1], cl
test cl, cl
je 0x432067
mov eax, dword [ebp - 0x18]
jmp 0x431efa
push 0x100
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042c856
push eax
push edi
push str.schannel:_failed_to_add_certificate_from_CA_file__s_to_certificate_store:__s
jmp 0x431fe0
push edi
push dword [ebp - 0xc]
push str.schannel:_unexpected_content_type__d_when_extracting_certificate_from_CA_file__s
push dword [ebp + 0x10]
call fcn.00412b10
add esp, 0x10
jmp 0x431e7e
push 0x100
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042c856
push eax
push edi
push str.schannel:_failed_to_extract_certificate_from_CA_file__s:__s
jmp 0x431fe0
push edi
push str.schannel:_CA_file__s_is_not_correctly_formatted
jmp 0x431e73
mov eax, dword [ebp - 0x1c]
push edi
test eax, eax
jne 0x432081
push str.schannel:_did_not_add_any_certificates_from_CA_file__s_n
push dword [ebp + 0x10]
call fcn.00412ba4
add esp, 0xc
jmp 0x432092
push eax
push str.schannel:_added__d_certificate_s__from_CA_file__s_n
push dword [ebp + 0x10]
call fcn.00412ba4
add esp, 0x10
mov esi, dword [ebp - 8]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [0x46c004]
pop ecx
test esi, esi
je 0x4320b3
push esi
call fcn.0043b161
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret