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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x462370]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
push edi
mov edi, ecx
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0xa0], ebx
cmp edi, ebx
jne 0x4395ef
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00431c8d
push eax
push ebx
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push esi
call fcn.0040ea8b
add esp, 0x1c
mov dword [ebp - 0x88], 0x4d
jmp 0x439962
push ebx
mov esi, 0x80
push esi
push 3
push ebx
push ebx
push bind
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xac], eax
cmp eax, 0xffffffff
jne 0x439634
push esi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00431c8d
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push dword [ebp - 0x8c]
jmp 0x4395d8
lea ecx, [ebp - 0xc4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x43967e
push esi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00431c8d
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push dword [ebp - 0x8c]
call fcn.0040ea8b
add esp, 0x1c
mov dword [ebp - 0x88], 0x4d
jmp 0x439956
mov edi, dword [ebp - 0xc4]
cmp dword [ebp - 0xc0], ebx
jl 0x4396ad
mov eax, 0x100000
jg 0x439697
cmp edi, eax
jbe 0x4396ad
push eax
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push dword [ebp - 0x8c]
call fcn.0040ea8b
add esp, 0xc
jmp 0x43966f
lea eax, [edi + 1]
push eax
call dword [section..data]
pop ecx
mov dword [ebp - 0x9c], eax
cmp eax, ebx
jne 0x4396d1
mov dword [ebp - 0x88], 0x1b
jmp 0x439956
mov dword [ebp - 0x88], ebx
cmp edi, ebx
jbe 0x43972b
push ebx
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x90]
mov ecx, edi
sub ecx, eax
add eax, dword [ebp - 0x9c]
push ecx
push eax
push dword [ebp - 0xac]
mov dword [ebp - 0x98], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43984e
mov eax, dword [ebp - 0x98]
cmp eax, ebx
je 0x439843
add dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], edi
jb 0x4396db
mov eax, dword [ebp - 0x9c]
push str._n_____END_CERTIFICATE_____
mov byte [edi + eax], bl
call fcn.0043bce0
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x9c]
pop ecx
mov dword [ebp - 0xa4], 1
mov dword [ebp - 0xa8], eax
cmp byte [eax], bl
je 0x43991a
mov edi, str._____BEGIN_CERTIFICATE_____
push edi
push eax
call fcn.0043da30
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x439873
push edi
call fcn.0043bce0
movzx eax, byte [eax + esi]
push eax
call fcn.00439556
add esp, 8
test eax, eax
je 0x439873
push str._n_____END_CERTIFICATE_____
push esi
call fcn.0043da30
pop ecx
pop ecx
cmp eax, ebx
je 0x439890
sub eax, esi
add eax, dword [ebp - 0xb4]
mov dword [ebp - 0x90], ebx
mov edi, eax
lea eax, [ebp - 0x90]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x98]
push eax
push ebx
push ebx
push 0xe
push 2
lea eax, [ebp - 0xbc]
push eax
push 2
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xbc], edi
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
je 0x4398a0
add edi, esi
cmp dword [ebp - 0x98], 1
mov dword [ebp - 0xa8], edi
jne 0x4398c9
push ebx
push 4
push dword [ebp - 0x90]
push dword [ebp - 0xb0]
call dword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
push dword [ebp - 0x90]
mov esi, eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
cmp esi, ebx
je 0x4398f1
inc dword [ebp - 0xa0]
jmp 0x439879
mov edi, dword [ebp - 0x90]
jmp 0x43972b
push esi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00431c8d
push eax
push dword [ebp - 0x94]
push str.schannel:_failed_to_read_from_CA_file__s:__s
jmp 0x439661
mov dword [ebp - 0xa4], ebx
cmp dword [ebp - 0xa4], ebx
je 0x43991a
mov eax, dword [ebp - 0xa8]
jmp 0x43975b
push dword [ebp - 0x94]
push str.schannel:_CA_file__s_is_not_correctly_formatted
jmp 0x43969d
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00431c8d
push eax
push dword [ebp - 0x94]
push str.schannel:_failed_to_extract_certificate_from_CA_file__s:__s
jmp 0x439661
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push str.schannel:_unexpected_content_type__d_when_extracting_certificate_from_CA_file__s
push dword [ebp - 0x8c]
call fcn.0040ea8b
mov dword [ebp - 0x88], 0x4d
jmp 0x439953
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00431c8d
push eax
push dword [ebp - 0x94]
push str.schannel:_failed_to_add_certificate_from_CA_file__s_to_certificate_store:__s
jmp 0x439661
push dword [ebp - 0x94]
cmp dword [ebp - 0xa0], ebx
jne 0x43993d
push str.schannel:_did_not_add_any_certificates_from_CA_file__s_n
push dword [ebp - 0x8c]
call fcn.0040e9e4
add esp, 0xc
jmp 0x439956
push dword [ebp - 0xa0]
push str.schannel:_added__d_certificate_s__from_CA_file__s_n
push dword [ebp - 0x8c]
call fcn.0040e9e4
add esp, 0x10
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x9c]
call dword [0x462004]
mov eax, dword [ebp - 0x88]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c86a
leave
ret