Function at 0x140002c70
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2f8]
sub rsp, 0x3f8
mov rax, qword [0x140035030]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
mov qword [rbp - 0x50], r8
mov rbx, rdx
mov r12, rcx
xor r14d, r14d
mov dword [rdx], r14d
mov dword [r8], r14d
mov rdx, r9
call fcn.1400026b0
test eax, eax
jne 0x140002d09
mov rax, qword [0x1400375f0]
test rax, rax
jne 0x140002cf9
lea r8d, [r14 + 0x31]
lea rdx, str.IsFileSignedByTencent._IsFileSigned_return_false.
lea rcx, [0x140035a48]
call fcn.1400013e0
lea r8d, [r14 + 2]
lea rdx, [0x14002ef58]
mov rcx, rax
call fcn.1400013e0
xor eax, eax
jmp 0x14000381b
lea rcx, str.IsFileSignedByTencent._IsFileSigned_return_false.
call rax
xor eax, eax
jmp 0x14000381b
mov edi, 1
mov dword [rbx], edi
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x1d4]
call fcn.14000e080
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0xd0]
call fcn.14000e080
mov edx, 0x104
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov qword [rbp + 0xb0], r14
mov qword [rbp + 0xc0], r14
mov qword [rbp + 0xc8], 7
mov word [rbp + 0xb0], r14w
lea rax, [rbp + 0xd0]
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop dword [rax]
inc r8
cmp word [rax + r8*2], r14w
jne 0x140002d80
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0xb0]
call fcn.140001ae0
nop
mov rdx, qword [rbp + 0xc0]
mov r8, qword [rbp + 0xc8]
mov rax, r8
sub rax, rdx
cmp rax, 1
jb 0x140002de8
lea rcx, [rdx + 1]
mov qword [rbp + 0xc0], rcx
lea rax, [rbp + 0xb0]
cmp r8, 8
cmovae rax, qword [rbp + 0xb0]
mov r8d, 0x5c
mov word [rax + rdx*2], r8w
mov word [rax + rcx*2], r14w
jmp 0x140002e03
mov qword [rsp + 0x20], rdi
lea r9, [0x14002f2f8]
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call fcn.1400099e0
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xc8]
mov rax, rdx
sub rax, rcx
cmp rax, 0xb
jb 0x140002e58
lea rdi, [rcx + 0xb]
mov qword [rbp + 0xc0], rdi
lea rbx, [rbp + 0xb0]
cmp rdx, 8
cmovae rbx, qword [rbp + 0xb0]
lea rcx, [rbx + rcx*2]
mov r8d, 0x16
lea rdx, str.Crypt32.dll
call fcn.14000d9d0
mov word [rbx + rdi*2], r14w
jmp 0x140002e79
mov qword [rsp + 0x20], 0xb
lea r9, str.Crypt32.dll
mov edx, 0xb
lea rcx, [rbp + 0xb0]
call fcn.1400099e0
lea rcx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 8
cmovae rcx, qword [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r15, rax
mov qword [rbp - 0x58], rax
test rax, rax
jne 0x140002f90
mov rax, qword [0x1400375f0]
test rax, rax
jne 0x140002ede
lea r8d, [r15 + 0x2e]
lea rdx, str.IsFileSignedByTencent._load_Crypt32.dll_faild.
lea rcx, [0x140035a48]
call fcn.1400013e0
lea r8d, [r15 + 2]
lea rdx, [0x14002ef58]
mov rcx, rax
call fcn.1400013e0
jmp 0x140002ee7
lea rcx, str.IsFileSignedByTencent._load_Crypt32.dll_faild.
call rax
mov qword [rbp + 0x90], r14
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], 0
mov r8d, 0x2e
lea rdx, str.IsFileSignedByTencent._load_Crypt32.dll_faild.
lea rcx, [rbp + 0x90]
call fcn.140001280
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140002530
mov rcx, rax
lea r9, [rbp + 0x90]
mov r8d, 4
mov edx, ebx
call fcn.140002000
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x1400037d6
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002f86
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003844
call fcn.14000bb4c
jmp 0x1400037d6
lea rdx, str.CryptQueryObject
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.CryptMsgGetParam
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea rdx, str.CryptMsgClose
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x60], rax
lea rdx, str.CertFindCertificateInStore
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
lea rdx, str.CertFreeCertificateContext
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x70], rax
lea rdx, str.CertCloseStore
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x68], rax
lea rdx, str.CertGetNameStringW
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp - 0x78], rax
mov r15d, r14d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x68], r14
mov dword [rbp - 0x80], r14d
mov dword [rsp + 0x7c], r14d
mov dword [rsp + 0x78], r14d
xor edx, edx
mov r8d, 0xd0
lea rcx, [rbp - 0x40]
call fcn.14000e080
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x50], r14
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
mov r9d, 2
mov r8d, 0x400
mov rdx, r12
lea ecx, [r9 - 1]
call rbx
test eax, eax
jne 0x14000318e
mov rax, qword [0x1400375f0]
test rax, rax
jne 0x1400030dc
lea r8d, [rax + 0x38]
lea rdx, str.IsFileSignedByTencent._pfnCryptQueryObject_return_false.
lea rcx, [0x140035a48]
call fcn.1400013e0
mov r8d, 2
lea rdx, [0x14002ef58]
mov rcx, rax
call fcn.1400013e0
jmp 0x1400030e5
lea rcx, str.IsFileSignedByTencent._pfnCryptQueryObject_return_false.
call rax
mov qword [rbp + 0x90], r14
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], r15b
mov r8d, 0x38
lea rdx, str.IsFileSignedByTencent._pfnCryptQueryObject_return_false.
lea rcx, [rbp + 0x90]
call fcn.140001280
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140002530
mov rcx, rax
lea r9, [rbp + 0x90]
mov r8d, 5
mov edx, ebx
call fcn.140002000
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x14000379c
inc rdx
mov rcx, qword [rbp + 0x90]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140003184
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003844
call fcn.14000bb4c
jmp 0x14000379c
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, qword [rsp + 0x68]
call rdi
test eax, eax
jne 0x140003258
mov rax, qword [0x1400375f0]
test rax, rax
jne 0x1400031eb
lea r8d, [rax + 0x41]
lea rdx, str.IsFileSignedByTencent._pfnCryptMsgGetParam_get_size_return_false.
lea rcx, [0x140035a48]
call fcn.1400013e0
mov r8d, 2
lea rdx, [0x14002ef58]
mov rcx, rax
call fcn.1400013e0
jmp 0x1400031f4
lea rcx, str.IsFileSignedByTencent._pfnCryptMsgGetParam_get_size_return_false.
call rax
mov qword [rbp + 0x90], r14
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], r15b
mov r8d, 0x41
lea rdx, str.IsFileSignedByTencent._pfnCryptMsgGetParam_get_size_return_false.
lea rcx, [rbp + 0x90]
call fcn.140001280
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140002530
mov rcx, rax
lea r9, [rbp + 0x90]
mov r8d, 6
mov edx, ebx
call fcn.140002000
nop
jmp 0x140003144
mov edx, dword [rsp + 0x60]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r12, rax
test rax, rax
jne 0x14000331a
mov rax, qword [0x1400375f0]
test rax, rax
jne 0x1400032ad
lea r8d, [r12 + 0x2f]
lea rdx, str.IsFileSignedByTencent._pCMSGSignerInfo_is_null.
lea rcx, [0x140035a48]
call fcn.1400013e0
lea r8d, [r12 + 2]
lea rdx, [0x14002ef58]
mov rcx, rax
call fcn.1400013e0
jmp 0x1400032b6
lea rcx, str.IsFileSignedByTencent._pCMSGSignerInfo_is_null.
call rax
mov qword [rbp + 0x90], r14
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], r15b
mov r8d, 0x2f
lea rdx, str.IsFileSignedByTencent._pCMSGSignerInfo_is_null.
lea rcx, [rbp + 0x90]
call fcn.140001280
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140002530
mov rcx, rax
lea r9, [rbp + 0x90]
mov r8d, 7
mov edx, ebx
call fcn.140002000
nop
jmp 0x140003144
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, r12
xor r8d, r8d
lea edx, [r8 + 6]
mov rcx, qword [rsp + 0x68]
call rdi
test eax, eax
jne 0x140003429
mov rax, qword [0x1400375f0]
test rax, rax
jne 0x140003377
lea r8d, [rax + 0x42]
lea rdx, str.IsFileSignedByTencent._pfnCryptMsgGetParam_get_info_return_false..
lea rcx, [0x140035a48]
call fcn.1400013e0
mov r8d, 2
lea rdx, [0x14002ef58]
mov rcx, rax
call fcn.1400013e0
jmp 0x140003380
lea rcx, str.IsFileSignedByTencent._pfnCryptMsgGetParam_get_info_return_false..
call rax
mov qword [rbp + 0x90], r14
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], r15b
mov r8d, 0x41
lea rdx, str.IsFileSignedByTencent._pfnCryptMsgGetParam_get_info_return_false.
lea rcx, [rbp + 0x90]
call fcn.140001280
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140002530
mov rcx, rax
lea r9, [rbp + 0x90]
mov r8d, 8
mov edx, ebx
call fcn.140002000
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x140003793
inc rdx
mov rcx, qword [rbp + 0x90]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14000341f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003844
call fcn.14000bb4c
jmp 0x140003793
movups xmm0, xmmword [r12 + 8]
movaps xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [r12 + 0x18]
movups xmmword [rbp - 0x38], xmm1
mov qword [rsp + 0x28], r14
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xb0000
xor r8d, r8d
mov edx, 0x10001
mov rcx, qword [rsp + 0x70]
call r13
mov r13, rax
test rax, rax
jne 0x140003512
mov rax, qword [0x1400375f0]
test rax, rax
jne 0x1400034a5
lea r8d, [r13 + 0x2c]
lea rdx, str.IsFileSignedByTencent._pCertContext_is_null.
lea rcx, [0x140035a48]
call fcn.1400013e0
lea r8d, [r13 + 2]
lea rdx, [0x14002ef58]
mov rcx, rax
call fcn.1400013e0
jmp 0x1400034ae
lea rcx, str.IsFileSignedByTencent._pCertContext_is_null.
call rax
mov qword [rbp + 0x90], r14
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], r15b
mov r8d, 0x2c
lea rdx, str.IsFileSignedByTencent._pCertContext_is_null.
lea rcx, [rbp + 0x90]
call fcn.140001280
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140002530
mov rcx, rax
lea r9, [rbp + 0x90]
mov r8d, 9
mov edx, ebx
call fcn.140002000
nop
jmp 0x1400033df
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, r13
mov rbx, qword [rbp - 0x78]
call rbx
mov dword [rsp + 0x60], eax
cmp eax, 1
jne 0x140003628
mov rax, qword [0x1400375f0]
test rax, rax
jne 0x140003576
lea r8d, [rax + 0x3e]
lea rdx, str.IsFileSignedByTencent._pfnCertGetNameString_get_size_return_1.
lea rcx, [0x140035a48]
call fcn.1400013e0
mov r8d, 2
lea rdx, [0x14002ef58]
mov rcx, rax
call fcn.1400013e0
jmp 0x14000357f
lea rcx, str.IsFileSignedByTencent._pfnCertGetNameString_get_size_return_1.
call rax
mov qword [rbp + 0x90], r14
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], r15b
mov r8d, 0x3e
lea rdx, str.IsFileSignedByTencent._pfnCertGetNameString_get_size_return_1.
lea rcx, [rbp + 0x90]
call fcn.140001280
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140002530
mov rcx, rax
lea r9, [rbp + 0x90]
mov r8d, 0xa
mov edx, ebx
call fcn.140002000
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x14000378d
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000361e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003844
call fcn.14000bb4c
jmp 0x14000378d
mov edx, eax
add rdx, rdx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
mov ecx, dword [rsp + 0x60]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, r13
call rbx
cmp eax, 1
jne 0x140003745
mov rax, qword [0x1400375f0]
test rax, rax
jne 0x14000369a
lea r8d, [rax + 0x3e]
lea rdx, str.IsFileSignedByTencent._pfnCertGetNameString_get_name_return_1.
lea rcx, [0x140035a48]
call fcn.1400013e0
mov r8d, 2
lea rdx, [0x14002ef58]
mov rcx, rax
call fcn.1400013e0
jmp 0x1400036a3
lea rcx, str.IsFileSignedByTencent._pfnCertGetNameString_get_name_return_1.
call rax
mov qword [rbp + 0x90], r14
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], r15b
mov r8d, 0x3e
lea rdx, str.IsFileSignedByTencent._pfnCertGetNameString_get_name_return_1.
lea rcx, [rbp + 0x90]
call fcn.140001280
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140002530
mov rcx, rax
lea r9, [rbp + 0x90]
mov r8d, 0xb
mov edx, ebx
call fcn.140002000
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x14000377f
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000373e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003844
call fcn.14000bb4c
jmp 0x14000377f
lea rdx, str.Tencent_Technology_Shenzhen__Company_Limited
nop dword [rax]
movzx ecx, word [rdi + rsi*2 + 2]
movzx eax, word [rdx + rsi*2 + 2]
sub ecx, eax
jne 0x140003774
add rsi, 2
cmp rsi, 0x2d
je 0x140003774
movzx ecx, word [rdi + rsi*2]
movzx eax, word [rdx + rsi*2]
sub ecx, eax
je 0x140003750
test ecx, ecx
mov eax, 1
cmove r15d, eax
test rdi, rdi
je 0x14000378d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r13
call qword [rbp - 0x70]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400037b0
xor edx, edx
call qword [rbp - 0x68]
mov qword [rsp + 0x70], r14
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400037c2
call qword [rbp - 0x60]
mov qword [rsp + 0x68], r14
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rbp - 0x50]
mov dword [rax], r15d
mov r14d, r15d
mov rdx, qword [rbp + 0xc8]
cmp rdx, 8
jb 0x140003818
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003813
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000383e
call fcn.14000bb4c
mov eax, r14d
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.14000b8a0
add rsp, 0x3f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140011f28
nop
call fcn.140011f28
nop
int3