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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x14026fe68]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
xor r12d, r12d
mov qword [rbp - 0x78], rcx
mov r15, rcx
mov qword [rsp + 0x70], r12
xor ecx, ecx
mov qword [rbp - 0x80], r12
mov r14d, r12d
mov r13d, r12d
mov esi, r12d
mov edi, r12d
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009dd18
test al, 0x50
jne 0x14009dd18
mov rax, qword [0x140273aa0]
test rax, rax
jne 0x14009d3ee
xor edx, edx
lea rcx, str.crypt32.dll
call fcn.140099330
mov qword [0x140273aa0], rax
test rax, rax
je 0x14009d5e0
cmp qword [0x140273aa8], rsi
jne 0x14009d41e
lea rdx, str.CryptMsgClose
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140273aa8], rax
test rax, rax
je 0x14009d5e0
mov rax, qword [0x140273aa0]
cmp qword [0x140273ab0], rsi
jne 0x14009d44e
lea rdx, str.CertCloseStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140273ab0], rax
test rax, rax
je 0x14009d5e0
mov rax, qword [0x140273aa0]
cmp qword [0x140273ab8], rsi
jne 0x14009d47e
lea rdx, [0x1402084a0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140273ab8], rax
test rax, rax
je 0x14009d5e0
mov rax, qword [0x140273aa0]
cmp qword [0x140273ac0], rsi
jne 0x14009d4ae
lea rdx, str.CertFindCertificateInStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140273ac0], rax
test rax, rax
je 0x14009d5e0
mov rax, qword [0x140273aa0]
cmp qword [0x140273ac8], rsi
jne 0x14009d4de
lea rdx, str.CryptMsgGetParam
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140273ac8], rax
test rax, rax
je 0x14009d5e0
mov rax, qword [0x140273aa0]
cmp qword [0x140273ad0], rsi
jne 0x14009d50e
lea rdx, str.CryptQueryObject
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140273ad0], rax
test rax, rax
je 0x14009d5e0
mov rax, qword [0x140273aa0]
cmp qword [0x140273ad8], rsi
jne 0x14009d53e
lea rdx, str.CertGetNameStringA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140273ad8], rax
test rax, rax
je 0x14009d5e0
mov rax, qword [0x140273aa0]
cmp qword [0x140273ae0], rsi
jne 0x14009d56a
lea rdx, str.CryptDecodeObjectEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140273ae0], rax
test rax, rax
je 0x14009d5e0
mov rax, qword [0x140273aa0]
cmp qword [0x140273ae8], rsi
jne 0x14009d58f
lea rdx, str.CertGetIssuerCertificateFromStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140273ae8], rax
test rax, rax
je 0x14009d5e0
cmp qword [0x140273ba0], rsi
jne 0x14009d5b2
xor edx, edx
lea rcx, str.cryptnet.dll
call fcn.140099330
mov qword [0x140273ba0], rax
test rax, rax
je 0x14009d5e0
cmp qword [0x140273b98], rsi
jne 0x14009d5ea
xor edx, edx
lea rcx, str.cryptbase.dll
call fcn.140099330
mov qword [0x140273b98], rax
test rax, rax
jne 0x14009d5ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
je 0x14009d5ea
mov edi, 0x7e
jmp 0x14009dd1d
mov qword [rsp + 0x50], r12
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
mov r9d, 2
lea rax, [rsp + 0x70]
mov r8d, 0x400
mov qword [rsp + 0x40], rax
mov rdx, r15
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea ecx, [r9 - 1]
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
call qword [0x140273ad0]
mov esi, eax
test eax, eax
jne 0x14009d64e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14009dd1d
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x6c]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r9 + 6]
call qword [0x140273ac8]
mov esi, eax
test eax, eax
jne 0x14009d67f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14009dd1d
mov edx, dword [rsp + 0x6c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
jne 0x14009d6a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov esi, r12d
jmp 0x14009dd1d
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x6c]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov r9, r14
lea edx, [r8 + 6]
call qword [0x140273ac8]
mov esi, eax
test eax, eax
jne 0x14009d6d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14009dd1d
movups xmm0, xmmword [r14 + 8]
mov rcx, qword [rsp + 0x70]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], r12
mov r9d, 0xb0000
movaps xmmword [rbp + 0x40], xmm0
xor r8d, r8d
movups xmm1, xmmword [r14 + 0x18]
mov edx, 0x10001
mov qword [rsp + 0x20], rax
movups xmmword [rbp + 0x18], xmm1
call qword [0x140273ac0]
mov r13, rax
test rax, rax
jne 0x14009d728
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov esi, r12d
jmp 0x14009dd1d
test rbx, rbx
je 0x14009d747
mov rcx, r13
call fcn.140098ac0
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jne 0x14009dd1d
lea rdx, [rsp + 0x78]
mov rcx, r14
call fcn.1400976a0
mov rcx, qword [rsp + 0x78]
test eax, eax
cmove rcx, r12
mov r12, qword [rsp + 0x70]
xor esi, esi
mov qword [rsp + 0x78], rcx
xor ebx, ebx
mov qword [rsp + 0x60], rsi
cmp dword [r14 + 0x78], ebx
jbe 0x14009d890
nop dword [rax]
test esi, esi
jne 0x14009d890
lea rcx, [rbx + rbx*2]
lea r15, [rcx*8]
mov rcx, qword [r14 + 0x80]
lea rdx, str.1.2.840.113549.1.9.6
mov rcx, qword [r15 + rcx]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x14009d884
mov rax, qword [r14 + 0x80]
mov edx, 0x1f4
mov ecx, 0x10001
mov r8, qword [r15 + rax + 0x10]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor r15d, r15d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov r9d, dword [r8]
mov r8, qword [r8 + 8]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x8000
call qword [0x140273ae0]
test eax, eax
je 0x14009d890
mov rax, qword [rsp + 0x60]
mov r9d, 0xb0000
mov qword [rsp + 0x28], r15
xor r8d, r8d
mov edx, 0x10001
mov rcx, r12
movups xmm0, xmmword [rax + 8]
movaps xmmword [rbp + 0x110], xmm0
movups xmm1, xmmword [rax + 0x18]
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
movups xmmword [rbp + 0xe8], xmm1
call qword [0x140273ac0]
mov r15, rax
test rax, rax
je 0x14009d890
mov rcx, qword [rsp + 0x60]
lea rdx, [rbp + 0x1b0]
call fcn.1400976a0
test eax, eax
je 0x14009d87b
lea rdx, [rbp + 0x1b0]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
setle sil
mov rcx, r15
call qword [0x140273ab8]
inc ebx
cmp ebx, dword [r14 + 0x78]
jb 0x14009d780
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r12d, r12d
test esi, esi
jne 0x14009d9ee
mov r15d, r12d
mov qword [rsp + 0x60], r12
mov ebx, r12d
cmp dword [r14 + 0x78], r12d
jbe 0x14009d9c1
nop dword [rax + rax]
mov rcx, qword [r14 + 0x80]
lea rdx, str.1.3.6.1.4.1.311.3.3.1
mov esi, ebx
lea rax, [rsi + rsi*2]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x14009d8ef
inc ebx
cmp ebx, dword [r14 + 0x78]
jb 0x14009d8c0
jmp 0x14009d9c1
mov rax, qword [r14 + 0x80]
lea rdx, [rsi + rsi*2]
mov ecx, 0x10001
mov r8, qword [rax + rdx*8 + 0x10]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov edx, 0x21
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov r9d, dword [r8]
mov r8, qword [r8 + 8]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x8000
call qword [0x140273ae0]
test eax, eax
je 0x14009d9c1
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
mov edx, dword [rcx + 8]
mov rcx, qword [rcx + 0x10]
call fcn.140099990
mov rbx, rax
test rax, rax
je 0x14009d9c1
lea rdx, [rbp + 0x1b0]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx ecx, word [rbp + 0x1b0]
movzx eax, word [rbp + 0x1b8]
imul rdx, rcx, 0x64
movzx ecx, word [rbp + 0x1b2]
add rdx, rcx
movzx ecx, word [rbp + 0x1b6]
imul r8, rdx, 0x64
add r8, rcx
imul rcx, r8, 0x64
add rcx, rax
movzx eax, word [rbp + 0x1ba]
imul rdx, rcx, 0x64
add rdx, rax
movzx eax, word [rbp + 0x1bc]
imul rcx, rdx, 0x64
add rcx, rax
cmp rcx, rbx
setbe r15b
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r15d, r15d
jne 0x14009d9ee
mov esi, r12d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jne 0x14009dd1d
mov edi, 0x80096005
jmp 0x14009dd1d
mov ecx, 0x23f0
call fcn.140099100
mov r15, qword [rbp - 0x78]
test eax, eax
jne 0x14009db95
mov rcx, r15
call fcn.140098e30
test eax, eax
je 0x14009db95
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp + 0x1c0], rax
mov r15d, r12d
mov dword [rbp + 0x1c8], eax
mov rax, qword [0x140273af0]
movups xmmword [rbp + 0x1b0], xmm0
test rax, rax
jne 0x14009da5a
xor edx, edx
lea rcx, str.Advapi32.dll
call fcn.140099330
mov qword [0x140273af0], rax
test rax, rax
je 0x14009db84
cmp qword [0x140273b18], 0
jne 0x14009da8b
lea rdx, str.OpenSCManagerW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140273b18], rax
test rax, rax
je 0x14009db84
mov rax, qword [0x140273af0]
cmp qword [0x140273b20], 0
jne 0x14009dabc
lea rdx, str.OpenServiceW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140273b20], rax
test rax, rax
je 0x14009db84
mov rax, qword [0x140273af0]
cmp qword [0x140273b30], 0
jne 0x14009daed
lea rdx, str.QueryServiceStatus
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140273b30], rax
test rax, rax
je 0x14009db84
mov rax, qword [0x140273af0]
cmp qword [0x140273b38], 0
jne 0x14009db13
lea rdx, str.CloseServiceHandle
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140273b38], rax
test rax, rax
je 0x14009db84
xor edx, edx
xor ecx, ecx
mov r8d, 0x80000000
call qword [0x140273b18]
mov rsi, rax
test rax, rax
je 0x14009db7f
mov r8d, 4
lea rdx, str.CryptSvc
mov rcx, rax
call qword [0x140273b20]
mov rbx, rax
test rax, rax
je 0x14009db76
lea rdx, [rbp + 0x1b0]
mov rcx, rax
call qword [0x140273b30]
test eax, eax
je 0x14009db6d
mov ecx, dword [rbp + 0x1b4]
add ecx, 0xfffffffc
cmp ecx, 3
setbe r15b
mov rcx, rbx
call qword [0x140273b38]
mov rcx, rsi
call qword [0x140273b38]
test r15d, r15d
jne 0x14009db91
mov esi, 1
mov edi, r12d
jmp 0x14009dd1d
mov r15, qword [rbp - 0x78]
mov rcx, qword [0x140273b80]
test rcx, rcx
jne 0x14009dbbe
xor edx, edx
lea rcx, str.wintrust.dll
call fcn.140099330
mov qword [0x140273b80], rax
mov rcx, rax
test rax, rax
je 0x14009dbe3
mov rax, qword [0x140273b88]
test rax, rax
jne 0x14009dbf0
lea rdx, str.WinVerifyTrust
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140273b88], rax
test rax, rax
jne 0x14009dbf0
mov esi, r12d
mov edi, 0x7e
jmp 0x14009dd1d
mov esi, r12d
mov ebx, r12d
nop word [rax + rax]
mov ecx, 1
mov qword [rbp - 0x1c], r12
or dword [rbp - 0x18], 0x1000
lea r8, [rbp - 0x60]
mov dword [rbp - 0x44], ecx
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp - 0x10]
mov dword [rbp + 0x1b0], 0xaac56b
mov qword [rbp - 0x38], rcx
xorps xmm0, xmm0
mov rcx, 0xffffffffffffffff
mov dword [rbp + 0x1b4], 0x11d0cd44
mov dword [rbp + 0x1b8], 0xc000c28c
mov dword [rbp + 0x1bc], 0xee95c24f
mov qword [rbp - 0x10], 0x20
movdqu xmmword [rbp], xmm0
mov qword [rbp - 8], r15
mov qword [rbp - 0x5c], r12
mov qword [rbp - 0x54], r12
mov dword [rbp - 0x4c], r12d
mov qword [rbp - 0x40], 1
mov qword [rbp - 0x2c], r12
mov qword [rbp - 0x24], r12
mov dword [rbp - 0x14], r12d
mov dword [rbp - 0x60], 0x50
mov dword [rbp - 0x48], 2
mov dword [rbp - 0x30], r12d
call rax
test eax, eax
je 0x14009dcb6
inc ebx
mov edi, eax
cmp ebx, 1
jae 0x14009dcbb
mov rax, qword [0x140273b88]
jmp 0x14009dc00
mov esi, 1
mov eax, 0x800b010a
cmp edi, eax
jne 0x14009dd1d
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov dword [rsp + 0x68], r12d
mov rdx, r13
call qword [0x140273ae8]
mov r15, rax
test rax, rax
je 0x14009dd1d
mov rcx, qword [rax + 0x18]
add rcx, 0x78
call fcn.140097ca0
test eax, eax
mov ebx, eax
mov eax, 1
mov rcx, r15
cmovne esi, eax
call qword [0x140273ab8]
test ebx, ebx
mov edi, r12d
mov eax, 0x800b010a
cmove edi, eax
jmp 0x14009dd1d
mov edi, 2
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r13, r13
je 0x14009dd34
mov rcx, r13
call qword [0x140273ab8]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14009dd46
xor edx, edx
call qword [0x140273ab0]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14009dd55
call qword [0x140273aa8]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14014f460
mov rbx, qword [rsp + 0x330]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret