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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005fbbd
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x10072414]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
mov eax, dword [0x10072414]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
test esi, esi
je 0x10012c97
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10012c97
push esi
call fcn.10012a5d
pop ecx
test eax, eax
je 0x10012c97
and dword [esp + 0xd0], 0
xor eax, eax
mov dword [esp + 0xd4], 7
mov word [esp + 0xc0], ax
and dword [esp + 0x108], eax
lea ecx, [esp + 0xc0]
call fcn.10012301
test al, al
jne 0x10012cbd
push 1
xor edi, edi
lea esi, [esp + 0xc4]
call fcn.10003982
xor eax, eax
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.10042ec5
mov esp, ebp
pop ebp
ret
push str.Crypt32.dll
lea esi, [esp + 0xe0]
call fcn.1000bc8f
mov eax, esi
lea ebx, [esp + 0xc0]
mov byte [esp + 0x108], 1
call fcn.10012382
xor ebx, ebx
push 1
xor edi, edi
mov byte [esp + 0x10c], bl
call fcn.10003982
cmp dword [esp + 0xd4], 8
mov eax, dword [esp + 0xc0]
jae 0x10012d0e
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x10012c87
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptQueryObject
push edi
call esi
push str.CryptMsgGetParam
push edi
mov dword [esp + 0x50], eax
call esi
push str.CryptMsgClose
push edi
mov dword [esp + 0x1c], eax
call esi
push str.CertFindCertificateInStore
push edi
mov dword [esp + 0x44], eax
call esi
push str.CertFreeCertificateContext
push edi
mov dword [esp + 0x48], eax
call esi
push str.CertCloseStore
push edi
mov dword [esp + 0x38], eax
call esi
push str.CertGetNameStringW
push edi
mov dword [esp + 0x3c], eax
call esi
push 0x6c
mov dword [esp + 0x28], eax
lea eax, [esp + 0x54]
push ebx
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], ebx
call fcn.100464a0
add esp, 0xc
push ebx
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x4c]
push eax
push ebx
push 2
push 0x400
push dword [esp + 0x44]
mov dword [esp + 0x40], ebx
push 1
call dword [esp + 0x74]
test eax, eax
je 0x10012efc
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push 6
push dword [esp + 0x20]
call dword [esp + 0x28]
test eax, eax
je 0x10012efc
push dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call esi
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x10012efc
lea ecx, [esp + 0x18]
push ecx
push eax
push ebx
push 6
push dword [esp + 0x20]
call dword [esp + 0x28]
test eax, eax
je 0x10012ef2
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
mov dword [esp + 0x64], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x50], ecx
mov eax, dword [eax + 0x10]
push ebx
mov dword [esp + 0x58], eax
lea eax, [esp + 0x50]
push eax
push 0xb0000
push ebx
push 0x10001
push dword [esp + 0x30]
call dword [esp + 0x58]
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x10012ef2
push ebx
push ebx
push ebx
push ebx
push 4
push eax
call dword [esp + 0x3c]
mov dword [esp + 0x18], eax
cmp eax, 1
je 0x10012eea
add eax, eax
push eax
push 0x40
call esi
push dword [esp + 0x18]
mov esi, eax
push esi
push ebx
push ebx
push 4
push dword [esp + 0x28]
call dword [esp + 0x3c]
cmp eax, 1
je 0x10012edf
mov ecx, str.Tencent_Technology_Shenzhen__Company_Limited
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10012ece
cmp dx, bx
je 0x10012eca
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10012ece
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x10012ea8
xor eax, eax
jmp 0x10012ed3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x10012edf
mov dword [esp + 0x28], 1
cmp esi, ebx
je 0x10012eea
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [esp + 0x14]
call dword [esp + 0x34]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x1c], ebx
je 0x10012f0f
push ebx
push dword [esp + 0x20]
call dword [esp + 0x3c]
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x10], ebx
je 0x10012f21
push dword [esp + 0x10]
call dword [esp + 0x40]
mov dword [esp + 0x10], ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
xor edi, edi
lea esi, [esp + 0xc4]
call fcn.10003982
mov eax, dword [esp + 0x28]
jmp 0x10012c99