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

Disassembly:
push 0x6c
mov eax, 0x4a1d74
call fcn.00473d8d
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
and dword [ebp - 4], 0
push str.crypt32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 0x48], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x421507
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00421ae2
jmp 0x421702
push 0x4b63f0
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x58], eax
push str.CertAddSerializedElementToStore
push edi
call esi
mov ebx, eax
mov dword [ebp - 0x5c], ebx
push str.CertFreeCertificateContext
push edi
call esi
mov edi, eax
cmp dword [ebp - 0x58], 0
je 0x4214f6
test ebx, ebx
je 0x4214f6
test edi, edi
je 0x4214f6
push 1
lea eax, [ebp - 0x51]
push eax
lea ecx, [ebp - 0x44]
call fcn.00402c40
mov byte [ebp - 4], 2
mov ecx, 0x4cb558
mov eax, ecx
mov edx, dword [ebp - 0x50]
test edx, edx
cmovne eax, edx
test eax, eax
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.004060d0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 3
test eax, eax
jne 0x4215be
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00404bf0
mov byte [ebp - 4], 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00401ac0
mov byte [ebp - 4], bl
jmp 0x4214fa
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x50], eax
lea ecx, [eax + 1]
push ecx
call fcn.004521fb
pop ecx
mov esi, eax
xor ebx, ebx
test esi, esi
setne bl
mov byte [ebp - 0x74], bl
mov dword [ebp - 0x70], esi
mov byte [ebp - 4], 5
push 0
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x50]
push esi
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42162d
mov byte [ebp - 4], 3
test bl, bl
je 0x42160c
push esi
call fcn.00472d16
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00404bf0
mov byte [ebp - 4], 6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00401ac0
jmp 0x4214f6
xor ecx, ecx
mov dword [ebp - 0x64], ecx
mov byte [ebp - 4], 7
mov dword [ebp - 0x60], edi
mov byte [ebp - 4], 8
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0xffffffffffffffff
push ecx
push 4
push dword [ebp - 0x50]
push esi
push ecx
call dword [ebp - 0x5c]
test eax, eax
jne 0x42167b
mov byte [ebp - 4], 9
mov byte [ebp - 4], 3
test bl, bl
je 0x421669
push esi
call fcn.00472d16
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00404bf0
mov byte [ebp - 4], 0xa
jmp 0x42161c
cmp dword [ebp - 0x6c], 0
jne 0x4216a9
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 3
test bl, bl
je 0x421694
push esi
call fcn.00472d16
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00404bf0
mov byte [ebp - 4], 0xc
jmp 0x42161c
push dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
push dword [eax + 0xc]
push 1
call dword [ebp - 0x58]
mov edi, eax
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 3
test bl, bl
je 0x4216cc
push esi
call fcn.00472d16
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00404bf0
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00401ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00421ae2
mov eax, edi
jmp 0x421704
xor eax, eax
call fcn.00473cdf
ret 8