Function at 0x4033d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x4811c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x804]
push 0x800
push 0
push eax
mov dword [ebp - 0x808], 0
mov dword [ebp - 0x80c], 0
call fcn.00423060
push edi
call fcn.0040fdc0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x403452
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Could_not_open_file___S_.__d
call fcn.00405650
mov ecx, dword [ebp - 0x808]
add esp, 0xc
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042111c
mov esp, ebp
pop ebp
ret 0xc
push ebx
push esi
call fcn.0040fa60
push 0
push 0
push esi
mov edi, eax
call fcn.00410210
lea ecx, [edi + 1]
push ecx
call fcn.0042c6bd
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x403490
push str.Allocation_failure_n
call fcn.00405650
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403667
push 0
lea eax, [ebp - 0x810]
mov dword [ebp - 0x810], 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403641
cmp dword [ebp - 0x810], 0
je 0x403641
push esi
call fcn.0040e1b0
add esp, 4
push edi
push ebx
push 0x10001
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
push ebx
mov edi, eax
call fcn.0042c6a2
add esp, 4
test edi, edi
jne 0x403511
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4034f8
movzx eax, ax
or eax, 0x80070000
push eax
push dword [0x481c84]
push str.CertCreateCertificateContextfailed_for_cert_file__S.___x_.
call fcn.00405650
add esp, 0xc
jmp 0x403667
mov esi, dword [sym.imp.CRYPT32.dll_CertSerializeCertificateStoreElement]
lea eax, [ebp - 0x80c]
push eax
push 0
push 0
push edi
call esi
test eax, eax
je 0x40362c
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
push 0
push edi
call esi
test eax, eax
je 0x403608
lea eax, [ebp - 0x808]
push eax
call fcn.004018a0
mov esi, eax
test esi, esi
je 0x403572
push str.VtpUtilsControlCreate_failed_n
call fcn.00405650
add esp, 4
push esi
call fcn.00403140
jmp 0x403672
mov ecx, dword [ebp - 0x808]
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jne 0x403593
push str.GetVtpServiceVersionData_returned_NULL
call fcn.00405650
add esp, 4
jmp 0x403667
push eax
push str.VTP_VERSION:__S_n
call fcn.00405650
mov ecx, dword [ebp - 0x808]
lea edx, [ebp - 0x804]
add esp, 8
mov eax, dword [ecx]
push dword [ebp + 0x10]
push edx
push dword [ebp - 0x80c]
call dword [eax + 0x18]
mov ecx, dword [ebp - 0x808]
mov esi, eax
mov edx, dword [ecx]
call dword [edx + 4]
test esi, esi
je 0x4035ec
push str.AddRemoveCertPrivs_failed_n
call fcn.00405650
add esp, 4
push esi
call fcn.00403140
push edi
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
jmp 0x403672
push edi
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042111c
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CertSerializeCertificateStoreElement_failed._n
mov esi, eax
call fcn.00405650
add esp, 4
push esi
call fcn.00403140
push edi
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
jmp 0x403667
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00403140
push edi
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
jmp 0x403667
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [0x481c84]
push str.Error_reading_cert_file___S_.__d
call fcn.00405650
push esi
call fcn.0040e1b0
push ebx
call fcn.0042c6a2
add esp, 0x14
mov ecx, dword [ebp - 0x808]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
xor al, al
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0042111c
mov esp, ebp
pop ebp
ret 0xc