Function at 0x431c4f
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.004212f7
mov esi, eax
mov dword [ebp - 8], esi
pop ecx
test esi, esi
jne 0x431cab
push 0x100
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042c728
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push dword [ebp + 0x10]
call fcn.004129df
add esp, 0x1c
push 0x4d
pop ebx
jmp 0x431f70
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x431ceb
push 0x100
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042c728
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
jmp 0x431c98
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x431d2c
push 0x100
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042c728
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push dword [ebp + 0x10]
call fcn.004129df
add esp, 0x1c
push 0x4d
pop ebx
jmp 0x431f67
mov esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x28], ebx
jl 0x431d58
mov eax, 0x100000
jg 0x431d3f
cmp esi, eax
jbe 0x431d58
push eax
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push dword [ebp + 0x10]
call fcn.004129df
add esp, 0xc
push 0x4d
pop ebx
jmp 0x431f64
lea eax, [esi + 1]
push eax
call dword [section..data]
mov edx, eax
mov dword [ebp - 0x14], edx
pop ecx
test edx, edx
jne 0x431d70
push 0x1b
jmp 0x431d52
test esi, esi
je 0x431db1
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 0x431e93
mov edx, dword [ebp - 0x14]
cmp dword [ebp - 0xc], ebx
je 0x431e8b
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
cmp ecx, esi
jb 0x431d76
push str._n_____END_CERTIFICATE_____
mov byte [esi + edx], bl
call fcn.0043b7c0
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 0x431f39
push str._____BEGIN_CERTIFICATE_____
push eax
call fcn.00438e70
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x431ec2
push str._____BEGIN_CERTIFICATE_____
call fcn.0043b7c0
movzx ecx, byte [eax + esi]
push ecx
call fcn.00432117
add esp, 8
test eax, eax
je 0x431ec2
push str._n_____END_CERTIFICATE_____
push esi
call fcn.00438e70
pop ecx
pop ecx
test eax, eax
je 0x431f2e
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 0x431f0d
add dword [ebp - 0x18], esi
cmp dword [ebp - 0xc], 1
jne 0x431ef4
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 0x431ed3
inc dword [ebp - 0x1c]
mov cl, byte [ebp - 1]
jmp 0x431ec7
mov esi, dword [ebp - 0x10]
jmp 0x431db1
push 0x100
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042c728
push eax
push edi
push str.schannel:_failed_to_read_from_CA_file__s:__s
push dword [ebp + 0x10]
call fcn.004129df
add esp, 0x1c
jmp 0x431d50
mov cl, bl
mov byte [ebp - 1], cl
test cl, cl
je 0x431f39
mov eax, dword [ebp - 0x18]
jmp 0x431dcc
push 0x100
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042c728
push eax
push edi
push str.schannel:_failed_to_add_certificate_from_CA_file__s_to_certificate_store:__s
jmp 0x431eb2
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.004129df
add esp, 0x10
jmp 0x431d50
push 0x100
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042c728
push eax
push edi
push str.schannel:_failed_to_extract_certificate_from_CA_file__s:__s
jmp 0x431eb2
push edi
push str.schannel:_CA_file__s_is_not_correctly_formatted
jmp 0x431d45
mov eax, dword [ebp - 0x1c]
push edi
test eax, eax
jne 0x431f53
push str.schannel:_did_not_add_any_certificates_from_CA_file__s_n
push dword [ebp + 0x10]
call fcn.00412a73
add esp, 0xc
jmp 0x431f64
push eax
push str.schannel:_added__d_certificate_s__from_CA_file__s_n
push dword [ebp + 0x10]
call fcn.00412a73
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 0x431f85
push esi
call fcn.0043b021
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret