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

Disassembly:
sub esp, 0x128
mov eax, dword [esp + 0x134]
push ebx
push ebp
push esi
mov ebp, dword [eax]
push edi
mov edi, dword [esp + 0x140]
xor ebx, ebx
xor esi, esi
cmp edi, ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
jne 0x43d8ee
lea ecx, [esp + 0x38]
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043ac10
push eax
push ebx
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.0040e1d0
add esp, 0x1c
mov ebp, 0x4d
jmp 0x43dc1e
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
jne 0x43d93e
lea edx, [esp + 0x38]
push 0x100
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043ac10
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.0040e1d0
add esp, 0x1c
mov ebp, 0x4d
jmp 0x43dc1e
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x43d97e
lea edx, [esp + 0x38]
push 0x100
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043ac10
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.0040e1d0
add esp, 0x1c
mov ebp, 0x4d
jmp 0x43dc13
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
cmp eax, ebx
jl 0x43d9b5
jg 0x43d994
cmp edi, 0x100000
jbe 0x43d9b5
mov eax, dword [esp + 0x10]
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push eax
call fcn.0040e1d0
add esp, 0xc
mov ebp, 0x4d
jmp 0x43dc13
lea ecx, [edi + 1]
push ecx
call dword [0x9f7290]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x43d9d4
mov ebp, 0x1b
jmp 0x43dc13
xor ebp, ebp
cmp edi, ebx
mov dword [esp + 0x18], ebp
jbe 0x43da24
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x14]
mov ecx, edi
push ebx
push edx
sub ecx, esi
lea edx, [esi + eax]
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
mov dword [esp + 0x28], ebx
call ebp
test eax, eax
je 0x43daf5
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x43da1a
add esi, eax
mov eax, dword [esp + 0x1c]
cmp esi, edi
jae 0x43da20
jmp 0x43d9e4
mov eax, dword [esp + 0x1c]
mov edi, esi
mov ebp, dword [esp + 0x18]
mov byte [edi + eax], bl
mov edi, eax
cmp byte [edi], bl
je 0x43dbd4
push str._____BEGIN_CERTIFICATE_____
push edi
call fcn.009b7c20
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x43dbd4
mov cl, byte [esi + 0x1b]
push ecx
call fcn.0043dc40
add esp, 4
test eax, eax
je 0x43dbd4
push str._n_____END_CERTIFICATE_____
push esi
call fcn.009b7c20
add esp, 8
cmp eax, ebx
je 0x43db1b
sub eax, esi
lea edx, [esp + 0x14]
add eax, 0x1a
push edx
mov edi, eax
push ebx
push ebx
lea eax, [esp + 0x24]
push ebx
push eax
push ebx
push ebx
push 0xe
lea ecx, [esp + 0x48]
push 2
push ecx
push 2
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
je 0x43db3f
mov eax, dword [esp + 0x18]
add edi, esi
cmp eax, 1
jne 0x43db7a
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x13c]
push ebx
push 4
push edx
push eax
call dword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
mov ecx, dword [esp + 0x14]
mov esi, eax
push ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
cmp esi, ebx
je 0x43db9c
inc dword [esp + 0x20]
jmp 0x43da29
lea ecx, [esp + 0x38]
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043ac10
mov edx, dword [esp + 0x14c]
push eax
push edx
push str.schannel:_failed_to_read_from_CA_file__s:__s
jmp 0x43db63
mov edx, dword [esp + 0x140]
mov eax, dword [esp + 0x10]
push edx
push str.schannel:_CA_file__s_is_not_correctly_formatted
push eax
call fcn.0040e1d0
add esp, 0xc
mov ebp, 0x4d
jmp 0x43dc13
lea ecx, [esp + 0x38]
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043ac10
mov edx, dword [esp + 0x14c]
push eax
push edx
push str.schannel:_failed_to_extract_certificate_from_CA_file__s:__s
mov eax, dword [esp + 0x28]
push eax
call fcn.0040e1d0
add esp, 0x1c
mov ebp, 0x4d
jmp 0x43dc13
mov ecx, dword [esp + 0x140]
mov edx, dword [esp + 0x10]
push ecx
push eax
push str.schannel:_unexpected_content_type__d_when_extracting_certificate_from_CA_file__s
push edx
call fcn.0040e1d0
add esp, 0x10
mov ebp, 0x4d
jmp 0x43dc13
lea eax, [esp + 0x38]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043ac10
mov ecx, dword [esp + 0x14c]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push str.schannel:_failed_to_add_certificate_from_CA_file__s_to_certificate_store:__s
push edx
call fcn.0040e1d0
add esp, 0x1c
mov ebp, 0x4d
jmp 0x43dc13
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x43dbf8
mov eax, dword [esp + 0x140]
mov ecx, dword [esp + 0x10]
push eax
push str.schannel:_did_not_add_any_certificates_from_CA_file__s_n
push ecx
call fcn.0040e110
add esp, 0xc
jmp 0x43dc13
mov edx, dword [esp + 0x140]
push edx
push eax
mov eax, dword [esp + 0x18]
push str.schannel:_added__d_certificate_s__from_CA_file__s_n
push eax
call fcn.0040e110
add esp, 0x10
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x1c]
push edx
call dword [0x9f7294]
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret