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

Disassembly:
push 0xdc
mov eax, 0x5159ed
call fcn.00472152
mov ebx, ecx
test ebx, ebx
je 0x438d05
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x438d05
mov ecx, ebx
call fcn.004388e2
test eax, eax
je 0x438d05
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
push 0
mov dword [ebp - 0x14], 7
call fcn.0041e220
and dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.0043a2a5
pop ecx
test al, al
je 0x438cf7
push str.Crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.00419a80
xor eax, eax
lea edx, [ebp - 0x40]
inc eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], al
call fcn.0043a156
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0041e2c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x438cf7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptQueryObject
push eax
call esi
push str.CryptMsgGetParam
push dword [ebp - 0x44]
mov edi, eax
call esi
push str.CryptMsgClose
push dword [ebp - 0x44]
mov dword [ebp - 0x68], eax
call esi
push str.CertFindCertificateInStore
push dword [ebp - 0x44]
mov dword [ebp - 0x78], eax
call esi
push str.CertFreeCertificateContext
push dword [ebp - 0x44]
mov dword [ebp - 0x6c], eax
call esi
push str.CertCloseStore
push dword [ebp - 0x44]
mov dword [ebp - 0x70], eax
call esi
push str.CertGetNameStringW
push dword [ebp - 0x44]
mov dword [ebp - 0x74], eax
call esi
mov dword [ebp - 0x58], eax
xor eax, eax
push 0x70
mov esi, eax
mov dword [ebp - 0x50], eax
push eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0xe8]
push eax
mov dword [ebp - 0x54], esi
call fcn.004e9ab0
add esp, 0xc
lea eax, [ebp - 0x48]
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
push ecx
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x64]
push eax
push ecx
push 2
push 0x400
push ebx
push 1
call edi
test eax, eax
je 0x438cca
mov ebx, dword [ebp - 0x68]
lea eax, [ebp - 0x4c]
push eax
push esi
push esi
push 6
push dword [ebp - 0x48]
call ebx
test eax, eax
je 0x438cca
push dword [ebp - 0x4c]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call edi
mov esi, eax
test esi, esi
je 0x438cc7
lea eax, [ebp - 0x4c]
push eax
push esi
push 0
push 6
push dword [ebp - 0x48]
call ebx
test eax, eax
je 0x438cc0
mov eax, dword [esi + 4]
mov dword [ebp - 0xd0], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0xcc], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xe4], eax
mov eax, dword [esi + 0x10]
push 0
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0xe8]
push eax
push 0xb0000
push 0
push 0x10001
push dword [ebp - 0x50]
call dword [ebp - 0x6c]
mov ebx, eax
test ebx, ebx
je 0x438cc0
xor eax, eax
push eax
push eax
push eax
push eax
push 4
push ebx
call dword [ebp - 0x58]
mov dword [ebp - 0x4c], eax
cmp eax, 1
je 0x438cbc
add eax, eax
push eax
push 0x40
call edi
push dword [ebp - 0x4c]
mov edi, eax
push edi
push 0
push 0
push 4
push ebx
call dword [ebp - 0x58]
cmp eax, 1
je 0x438cb1
mov ecx, str.Tencent_Technology_Shenzhen__Company_Limited
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x438c9e
test dx, dx
je 0x438c9a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x438c9e
add eax, 4
add ecx, 4
test dx, dx
jne 0x438c78
xor eax, eax
jmp 0x438ca3
sbb eax, eax
or eax, 1
mov ecx, dword [ebp - 0x54]
test eax, eax
push 1
pop eax
cmove ecx, eax
mov dword [ebp - 0x54], ecx
test edi, edi
je 0x438cbc
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [ebp - 0x70]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x54]
cmp dword [ebp - 0x50], 0
je 0x438cdc
push 0
push dword [ebp - 0x50]
call dword [ebp - 0x74]
and dword [ebp - 0x50], 0
cmp dword [ebp - 0x48], 0
je 0x438cec
push dword [ebp - 0x48]
call dword [ebp - 0x78]
and dword [ebp - 0x48], 0
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x438cf9
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.0041e2c0
mov eax, esi
jmp 0x438d07
xor eax, eax
call fcn.004720fc
ret