Function at 0x10451a6
Capabilities:
Create new key via cryptacquirecontext
Get file size
Read file on windows

Disassembly:
push 0x28
mov eax, 0x105eca3
call fcn.0104dc9c
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
push 0x1066af4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.010442ec
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 3
call fcn.010450a3
cmp eax, ebx
mov dword [ebp + 8], eax
jge 0x1045221
push 0x1011e80
push 0x1011e70
push eax
call fcn.01048c52
add esp, 0xc
push ebx
mov byte [ebp - 4], 2
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0102fb3e
jmp 0x1045485
mov edi, dword [ebp - 0x18]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, ebx
je 0x1045550
cmp esi, 0xffffffff
je 0x1045550
lea eax, [ebp - 0x24]
push eax
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x24], ebx
je 0x104529c
push edi
push 0x1011e3c
push 0x1011e2c
mov eax, 0x8000ffff
push eax
mov dword [ebp + 8], eax
call fcn.01048c52
add esp, 0x10
push ebx
mov byte [ebp - 4], 2
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
lea ecx, [edi - 0x10]
call fcn.0102fb3e
lea ecx, [ebp - 0x14]
call fcn.0102fb22
jmp 0x1045485
cmp eax, 0x100000
jbe 0x10452b0
push edi
push 0x1011e3c
push 0x1011e1c
jmp 0x104526b
push eax
lea ecx, [ebp - 0x1c]
call fcn.01041a8e
movzx eax, al
cmp eax, ebx
jne 0x10452e0
push 0x1011da8
mov eax, 0x8007000e
push 0x1011d94
push eax
mov dword [ebp + 8], eax
call fcn.01048c52
add esp, 0xc
push dword [ebp - 0x1c]
jmp 0x104527d
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x1045335
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, ebx
jle 0x104530c
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x104531a
mov dword [ebp + 8], 0x80004005
push edi
push dword [ebp - 0x28]
push 0x1011d40
push 0x1011d30
call esi
push eax
call fcn.01048d15
add esp, 0x14
jmp 0x10452db
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0x40
push 1
mov edi, 0x1011cd8
push edi
push ebx
lea eax, [ebp - 0x20]
push eax
call esi
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x10453c8
call ebx
cmp eax, 0x80090016
jne 0x1045370
push 0x48
push 1
push edi
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x10453c8
call ebx
test eax, eax
jle 0x1045380
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 8], eax
test eax, eax
jl 0x104538e
mov dword [ebp + 8], 0x80004005
push 0x1011c9c
push 0x1011c8c
call ebx
push eax
call fcn.01048d15
add esp, 0xc
push dword [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0102fb3e
lea ecx, [ebp - 0x14]
call fcn.0102fb22
jmp 0x1045483
push 0x1011c80
push 0x24000
xor edi, edi
push edi
push edi
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov esi, eax
mov dword [ebp - 0x30], esi
cmp esi, edi
je 0x10454f8
cmp esi, 0xffffffff
je 0x10454f8
push dword [ebp - 0x28]
mov edi, dword [ebp - 0x1c]
push edi
push 0x10001
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x104549f
call ebx
test eax, eax
jle 0x1045421
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 8], eax
test eax, eax
jl 0x104542f
mov dword [ebp + 8], 0x80004005
mov esi, dword [ebp - 0x18]
push esi
push 0x1011c10
push 0x1011c00
call ebx
push eax
call fcn.01048d15
add esp, 0x10
push edi
mov byte [ebp - 4], 2
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
lea ecx, [esi - 0x10]
call fcn.0102fb3e
lea ecx, [ebp - 0x14]
call fcn.0102fb22
cmp dword [ebp - 0x2c], 0
je 0x1045472
push dword [ebp - 0x2c]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
cmp dword [ebp - 0x30], 0
je 0x1045483
push 1
push dword [ebp - 0x30]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
xor ebx, ebx
cmp dword [ebp - 0x20], ebx
je 0x1045494
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp + 8]
call fcn.0104dd50
ret 4
push 0
push 2
push eax
push esi
call dword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
test eax, eax
jne 0x10454e2
call ebx
test eax, eax
jle 0x10454bf
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 8], eax
test eax, eax
jl 0x10454cd
mov dword [ebp + 8], 0x80004005
push 0x1011bb8
push 0x1011ba4
call ebx
push eax
call fcn.01048d15
add esp, 0xc
push edi
mov byte [ebp - 4], 2
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
jmp 0x1045456
call ebx
cmp eax, edi
jle 0x1045508
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
mov dword [ebp + 8], eax
jl 0x1045516
mov dword [ebp + 8], 0x80004005
push 0x1011b70
push 0x1011b60
call ebx
push eax
call fcn.01048d15
add esp, 0xc
push dword [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0102fb3e
lea ecx, [ebp - 0x14]
call fcn.0102fb22
jmp 0x1045472
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, ebx
jle 0x1045566
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x1045574
mov dword [ebp + 8], 0x80004005
push edi
push 0x1011b20
push 0x1011b10
call esi
push eax
call fcn.01048d15
add esp, 0x10
push ebx
mov byte [ebp - 4], 2
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
lea ecx, [edi - 0x10]
jmp 0x1045217