Function at 0x140013010
Capabilities:
Check if file exists
Get file attributes
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x150
xor r12d, r12d
mov r13, rcx
xor ecx, ecx
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov rdi, r12
mov rbp, r12
mov rsi, r12
mov qword [rsp + 0x70], r12
mov ebx, r12d
mov r14, rdx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140013420
test al, 0x50
jne 0x140013420
cmp qword [0x14017fcf0], rbx
jne 0x1400131a4
mov qword [rsp + 0x190], r15
lea r15, str.crypt32.dll
mov rcx, r15
call fcn.140011e10
test r15, r15
mov r15, qword [rsp + 0x190]
mov rbx, rax
je 0x1400130a1
test rax, rax
je 0x1400130b2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r12, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [0x14017fcf0], r12
test r12, r12
je 0x1400131a4
lea rdx, str.CryptMsgClose
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14017fcf0]
lea rdx, str.CertCloseStore
mov qword [0x14017fcf8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14017fcf0]
lea rdx, [0x14014c068]
mov qword [0x14017fd00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14017fcf0]
lea rdx, str.CertFindCertificateInStore
mov qword [0x14017fd08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14017fcf0]
lea rdx, str.CryptMsgGetParam
mov qword [0x14017fd10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14017fcf0]
lea rdx, str.CryptQueryObject
mov qword [0x14017fd18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14017fcf0]
lea rdx, str.CertGetNameStringA
mov qword [0x14017fd20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14017fcf0]
lea rdx, str.CryptDecodeObject
mov qword [0x14017fd28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
mov qword [0x14017fd30], rax
jmp 0x1400131ab
mov r11, qword [0x14017fd30]
cmp qword [0x14017fcf8], rsi
je 0x14001341c
cmp qword [0x14017fd00], rsi
je 0x14001341c
cmp qword [0x14017fd08], rsi
je 0x14001341c
cmp qword [0x14017fd10], rsi
je 0x14001341c
cmp qword [0x14017fd18], rsi
je 0x14001341c
mov rax, qword [0x14017fd20]
test rax, rax
je 0x14001341c
cmp qword [0x14017fd28], rsi
je 0x14001341c
test r11, r11
je 0x14001341c
xor r12d, r12d
lea rcx, [rsp + 0x68]
mov r8d, 0x400
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x1a8]
lea r9d, [r12 + 2]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x7c]
mov rdx, r13
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
lea ecx, [r12 + 1]
mov dword [rsp + 0x20], r12d
call rax
mov ebx, eax
test eax, eax
jne 0x14001327a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001342b
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
lea rax, [rsp + 0x1a0]
lea edx, [r9 + 6]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [0x14017fd18]
mov ebx, eax
test eax, eax
jne 0x1400132ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001342b
mov edx, dword [rsp + 0x1a0]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x1400132d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001342b
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
lea rax, [rsp + 0x1a0]
lea edx, [r8 + 6]
mov r9, rdi
mov qword [rsp + 0x20], rax
call qword [0x14017fd18]
mov ebx, eax
test eax, eax
jne 0x140013305
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001342b
mov rax, qword [rdi + 8]
lea rcx, [rsp + 0xb0]
mov r9d, 0xb0000
mov qword [rcx], rax
mov rax, qword [rdi + 0x10]
xor r8d, r8d
mov qword [rcx + 8], rax
mov rax, qword [rdi + 0x18]
lea rcx, [rsp + 0x88]
mov qword [rcx], rax
mov rax, qword [rdi + 0x20]
mov edx, 0x10001
mov qword [rcx + 8], rax
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call qword [0x14017fd10]
mov rbp, rax
test rax, rax
jne 0x140013371
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001342b
test r14, r14
je 0x14001338f
mov rcx, rax
call fcn.140012270
mov dword [r14], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001342b
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140012440
test eax, eax
je 0x140013415
mov rsi, qword [rsp + 0x70]
lea rcx, [rsp + 0xb0]
mov r9d, 0xb0000
mov rax, qword [rsi + 8]
xor r8d, r8d
mov edx, 0x10001
mov qword [rcx], rax
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x28], r12
mov qword [rcx + 8], rax
mov rax, qword [rsi + 0x18]
lea rcx, [rsp + 0x88]
mov qword [rcx], rax
mov rax, qword [rsi + 0x20]
mov qword [rcx + 8], rax
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
call qword [0x14017fd10]
mov rbp, rax
test rax, rax
jne 0x14001340e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001342b
mov ebx, 1
jmp 0x14001342b
mov rsi, qword [rsp + 0x70]
jmp 0x14001342b
xor eax, eax
jmp 0x14001346f
mov ecx, 0x7e
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x14001344b
mov rcx, rbp
call qword [0x14017fd08]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001345d
xor edx, edx
call qword [0x14017fd00]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001346d
call qword [0x14017fcf8]
mov eax, ebx
add rsp, 0x150
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret