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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x46f008]
xor eax, ebp
mov dword [ebp - 8], eax
and dword [ebp - 0x110], 0
and dword [ebp - 0x114], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
mov dword [ebp - 0x120], ecx
push edi
push esi
mov dword [ebp - 0x118], esi
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
mov dword [ebp - 0x124], eax
pop ecx
test eax, eax
jne 0x44ee7c
push ecx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea edx, [ebp - 0x10c]
mov ecx, eax
call fcn.0041a1a0
pop ecx
push eax
push esi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebx
call fcn.0041d6ad
add esp, 0x10
push 0x4d
pop edi
jmp 0x44efc7
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileA]
mov dword [ebp - 0x11c], eax
cmp eax, 0xffffffff
jne 0x44eebe
push ecx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea edx, [ebp - 0x10c]
mov ecx, eax
call fcn.0041a1a0
pop ecx
push eax
push esi
push str.schannel:_failed_to_open_CA_file__s:__s
jmp 0x44ee6b
lea ecx, [ebp - 0x12c]
push ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSizeEx]
test eax, eax
jne 0x44eefd
push ecx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea edx, [ebp - 0x10c]
mov ecx, eax
call fcn.0041a1a0
pop ecx
push eax
push esi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebx
call fcn.0041d6ad
add esp, 0x10
push 0x4d
pop edi
jmp 0x44efbb
cmp dword [ebp - 0x128], 0
mov edi, dword [ebp - 0x12c]
jl 0x44ef28
mov eax, 0x100000
jg 0x44ef17
cmp edi, eax
jbe 0x44ef28
push eax
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebx
call fcn.0041d6ad
add esp, 0xc
jmp 0x44eef5
mov esi, dword [0x46f048]
lea eax, [edi + 1]
push eax
mov ecx, esi
call dword [0x4553fc]
call esi
pop ecx
mov ecx, eax
mov dword [ebp - 0x110], ecx
test ecx, ecx
jne 0x44ef4d
push 0x1b
jmp 0x44eef7
test edi, edi
je 0x44ef9d
mov esi, dword [ebp - 0x114]
and dword [ebp - 0x114], 0
lea eax, [ebp - 0x114]
push 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ecx]
push eax
push dword [ebp - 0x11c]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x44f005
cmp dword [ebp - 0x114], 0
mov ecx, dword [ebp - 0x110]
je 0x44f001
add esi, dword [ebp - 0x114]
cmp esi, edi
jb 0x44ef57
push ebx
push dword [ebp - 0x118]
mov byte [edi + ecx], 0
mov edx, ecx
mov ecx, dword [ebp - 0x120]
push edi
call fcn.0044ec10
add esp, 0xc
mov edi, eax
push dword [ebp - 0x11c]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
push dword [ebp - 0x110]
mov esi, dword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, esi
call dword [0x4553fc]
call esi
mov eax, dword [ebp - 0x124]
pop ecx
test eax, eax
je 0x44eff0
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450ca6
leave
ret
mov edi, esi
jmp 0x44ef9d
push ecx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea edx, [ebp - 0x10c]
mov ecx, eax
call fcn.0041a1a0
pop ecx
push eax
push dword [ebp - 0x118]
push str.schannel:_failed_to_read_from_CA_file__s:__s
jmp 0x44eeec