Function at 0x1002f7b8
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push 0xec
mov eax, 0x1006d9cf
call fcn.100521f6
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x40], esi
cmp esi, ebx
je 0x1002f815
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002f815
push esi
call fcn.1002f624
pop ecx
test eax, eax
je 0x1002f815
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
push 0x25
lea edi, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.10027cd3
pop ecx
test al, al
jne 0x1002f81d
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.1000457f
xor eax, eax
call fcn.10052279
ret
push str.Crypt32.dll
lea esi, [ebp - 0x84]
call fcn.100040e3
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
mov byte [ebp - 4], 1
call fcn.1002770a
pop ecx
push ebx
push 1
mov byte [ebp - 4], bl
call fcn.1000457f
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x1002f854
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x1002f80a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptQueryObject
push edi
call esi
push str.CryptMsgGetParam
push edi
mov dword [ebp - 0x64], eax
call esi
push str.CryptMsgClose
push edi
mov dword [ebp - 0x34], eax
call esi
push str.CertFindCertificateInStore
push edi
mov dword [ebp - 0x58], eax
call esi
push str.CertFreeCertificateContext
push edi
mov dword [ebp - 0x5c], eax
call esi
push str.CertCloseStore
push edi
mov dword [ebp - 0x68], eax
call esi
push str.CertGetNameStringW
push edi
mov dword [ebp - 0x50], eax
call esi
push 0x6c
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0xf4]
push ebx
push eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0xf8], ebx
call fcn.10051a60
add esp, 0xc
push ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push 2
push 0x400
push dword [ebp - 0x40]
mov dword [ebp - 0x3c], ebx
push 1
call dword [ebp - 0x64]
test eax, eax
je 0x1002fa1e
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push 6
push dword [ebp - 0x30]
call dword [ebp - 0x34]
test eax, eax
je 0x1002fa1e
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call esi
mov dword [ebp - 0x40], eax
cmp eax, ebx
je 0x1002fa1e
lea ecx, [ebp - 0x3c]
push ecx
push eax
push ebx
push 6
push dword [ebp - 0x30]
call dword [ebp - 0x34]
test eax, eax
je 0x1002fa15
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xe0], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0xdc], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xf4], ecx
mov eax, dword [eax + 0x10]
push ebx
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0xf8]
push eax
push 0xb0000
push ebx
push 0x10001
push dword [ebp - 0x38]
call dword [ebp - 0x5c]
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x1002fa15
push ebx
push ebx
push ebx
push ebx
push 4
push eax
call dword [ebp - 0x48]
mov dword [ebp - 0x3c], eax
cmp eax, 1
je 0x1002fa0f
add eax, eax
push eax
push 0x40
call esi
push dword [ebp - 0x3c]
mov esi, eax
push esi
push ebx
push ebx
push 4
push dword [ebp - 0x34]
call dword [ebp - 0x48]
cmp eax, 1
je 0x1002fa04
mov ecx, str.Tencent_Technology_Shenzhen__Company_Limited
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002f9f4
cmp dx, bx
je 0x1002f9f0
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002f9f4
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x1002f9ce
xor eax, eax
jmp 0x1002f9f9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x1002fa04
mov dword [ebp - 0x44], 1
cmp esi, ebx
je 0x1002fa0f
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x34]
call dword [ebp - 0x68]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x38], ebx
je 0x1002fa2d
push ebx
push dword [ebp - 0x38]
call dword [ebp - 0x50]
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x30], ebx
je 0x1002fa3b
push dword [ebp - 0x30]
call dword [ebp - 0x58]
mov dword [ebp - 0x30], ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.1000457f
mov eax, dword [ebp - 0x44]
jmp 0x1002f817