Function at 0x14005be10
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 0x14005c220
test al, 0x50
jne 0x14005c220
cmp qword [0x1402f5df0], rbx
jne 0x14005bfa4
mov qword [rsp + 0x190], r15
lea r15, str.crypt32.dll
mov rcx, r15
call fcn.14005b4e0
test r15, r15
mov r15, qword [rsp + 0x190]
mov rbx, rax
je 0x14005bea1
test rax, rax
je 0x14005beb2
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 [0x1402f5df0], r12
test r12, r12
je 0x14005bfa4
lea rdx, str.CryptMsgClose
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f5df0]
lea rdx, str.CertCloseStore
mov qword [0x1402f5df8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f5df0]
lea rdx, str.CertFreeCertificateContext
mov qword [0x1402f5e00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f5df0]
lea rdx, str.CertFindCertificateInStore
mov qword [0x1402f5e08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f5df0]
lea rdx, str.CryptMsgGetParam
mov qword [0x1402f5e10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f5df0]
lea rdx, str.CryptQueryObject
mov qword [0x1402f5e18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f5df0]
lea rdx, str.CertGetNameStringA
mov qword [0x1402f5e20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f5df0]
lea rdx, str.CryptDecodeObject
mov qword [0x1402f5e28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
mov qword [0x1402f5e30], rax
jmp 0x14005bfab
mov r11, qword [0x1402f5e30]
cmp qword [0x1402f5df8], rsi
je 0x14005c21c
cmp qword [0x1402f5e00], rsi
je 0x14005c21c
cmp qword [0x1402f5e08], rsi
je 0x14005c21c
cmp qword [0x1402f5e10], rsi
je 0x14005c21c
cmp qword [0x1402f5e18], rsi
je 0x14005c21c
mov rax, qword [0x1402f5e20]
test rax, rax
je 0x14005c21c
cmp qword [0x1402f5e28], rsi
je 0x14005c21c
test r11, r11
je 0x14005c21c
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 0x14005c07a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14005c22b
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 [0x1402f5e18]
mov ebx, eax
test eax, eax
jne 0x14005c0ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14005c22b
mov edx, dword [rsp + 0x1a0]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x14005c0d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14005c22b
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 [0x1402f5e18]
mov ebx, eax
test eax, eax
jne 0x14005c105
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14005c22b
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 [0x1402f5e10]
mov rbp, rax
test rax, rax
jne 0x14005c171
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14005c22b
test r14, r14
je 0x14005c18f
mov rcx, rax
call fcn.14005b640
mov dword [r14], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14005c22b
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.14005b7d0
test eax, eax
je 0x14005c215
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 [0x1402f5e10]
mov rbp, rax
test rax, rax
jne 0x14005c20e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14005c22b
mov ebx, 1
jmp 0x14005c22b
mov rsi, qword [rsp + 0x70]
jmp 0x14005c22b
xor eax, eax
jmp 0x14005c26f
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 0x14005c24b
mov rcx, rbp
call qword [0x1402f5e08]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14005c25d
xor edx, edx
call qword [0x1402f5e00]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14005c26d
call qword [0x1402f5df8]
mov eax, ebx
add rsp, 0x150
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret