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

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
mov eax, dword [ebp]
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x40]
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
cmp edi, ebx
jne 0x4b309f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
call fcn.004af8e0
mov ecx, dword [esp + 0x18]
push eax
push ebx
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ecx
call fcn.00497210
add esp, 0x18
lea ebp, [ebx + 0x4d]
jmp 0x4b3386
push ebx
push 0x80
push 3
push ebx
push ebx
push bind
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
jne 0x4b30e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
call fcn.004af8e0
mov edx, dword [esp + 0x18]
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push edx
call fcn.00497210
add esp, 0x18
mov ebp, 0x4d
jmp 0x4b3386
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4b3124
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
call fcn.004af8e0
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov edx, dword [esp + 0x24]
push edx
call fcn.00497210
add esp, 0x18
mov ebp, 0x4d
jmp 0x4b337b
cmp dword [esp + 0x2c], ebx
mov edi, dword [esp + 0x28]
jl 0x4b3159
jg 0x4b3138
cmp edi, 0x100000
jbe 0x4b3159
mov eax, dword [esp + 0x10]
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push eax
call fcn.00497210
add esp, 0xc
mov ebp, 0x1b
jmp 0x4b337b
lea ecx, [edi + 1]
push ecx
call dword [0x4db008]
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x4b314f
xor ebp, ebp
cmp edi, ebx
jbe 0x4b31ba
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ebx, [ebx]
push ebx
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [esi + eax]
mov eax, dword [esp + 0x30]
push edx
push eax
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
je 0x4b3290
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4b3285
add esi, eax
mov eax, dword [esp + 0x14]
cmp esi, edi
jb 0x4b3180
mov ebp, ebx
mov byte [edi + eax], bl
mov edi, eax
nop
cmp byte [edi], bl
je 0x4b3342
push str._____BEGIN_CERTIFICATE_____
push edi
call fcn.0046e360
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4b3342
mov al, byte [esi + 0x1b]
call fcn.004b3030
test eax, eax
je 0x4b3342
push str._n_____END_CERTIFICATE_____
push esi
call fcn.0046e360
add esp, 8
cmp eax, ebx
je 0x4b32c3
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push ebx
lea edx, [esp + 0x30]
push edx
push ebx
push ebx
sub eax, esi
add eax, 0x1a
push 0xe
mov edi, eax
push 2
lea eax, [esp + 0x54]
push eax
push 2
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], edi
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
je 0x4b32e4
mov eax, dword [esp + 0x20]
add edi, esi
cmp eax, 1
jne 0x4b3305
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
push ebx
push 4
push ecx
push edx
call dword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
cmp esi, ebx
je 0x4b3321
inc dword [esp + 0x1c]
jmp 0x4b31c0
mov eax, dword [esp + 0x14]
mov edi, esi
jmp 0x4b31b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call fcn.004af8e0
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x1c]
push edx
push str.schannel:_failed_to_read_from_CA_file__s:__s
push eax
call fcn.00497210
add esp, 0x18
mov ebp, 0x4d
jmp 0x4b337b
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
push ecx
push str.schannel:_CA_file__s_is_not_correctly_formatted
push edx
call fcn.00497210
add esp, 0xc
mov ebp, 0x4d
jmp 0x4b337b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x48]
push eax
call fcn.004af8e0
mov ecx, dword [esp + 0x48]
push eax
push ecx
push str.schannel:_failed_to_extract_certificate_from_CA_file__s:__s
jmp 0x4b310d
mov ecx, dword [esp + 0x40]
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.00497210
mov ebp, 0x4d
jmp 0x4b3378
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x48]
push eax
call fcn.004af8e0
mov ecx, dword [esp + 0x48]
push eax
push ecx
push str.schannel:_failed_to_add_certificate_from_CA_file__sto_certificate_store:__s
jmp 0x4b310d
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x4b3363
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
push eax
push str.schannel:_did_not_add_any_certificates_from_CA_file__s_n
push ecx
call fcn.00497180
add esp, 0xc
jmp 0x4b337b
mov edx, dword [esp + 0x40]
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.00497180
add esp, 0x10
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
push edx
call dword [0x4db00c]
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x28
ret