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

Disassembly:
push 0xe4
mov eax, 0x4ed483
call fcn.0045be8d
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
test ebx, ebx
je 0x42265d
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42265d
mov ecx, ebx
call fcn.0042227d
test eax, eax
je 0x42265d
xor ecx, ecx
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ecx
push ecx
lea ecx, [ebp - 0x28]
call fcn.00423a80
pop ecx
test al, al
je 0x42264f
push str.Crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.00403e20
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0042394b
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00407b20
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 0x42264f
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 - 0x7c], 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 - 0x74], eax
call esi
push str.CertGetNameStringW
push dword [ebp - 0x44]
mov dword [ebp - 0x78], 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 - 0xf0]
push eax
mov dword [ebp - 0x54], esi
call fcn.004beec0
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 0x422622
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 0x422622
push dword [ebp - 0x4c]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call edi
mov esi, eax
test esi, esi
je 0x42261f
lea eax, [ebp - 0x4c]
push eax
push esi
push 0
push 6
push dword [ebp - 0x48]
call ebx
test eax, eax
je 0x422618
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
push 0
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0xf0]
push eax
push 0xb0000
push 0
push 0x10001
push dword [ebp - 0x50]
mov dword [ebp - 0xe8], ecx
call dword [ebp - 0x6c]
mov ebx, eax
test ebx, ebx
je 0x422618
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 0x422614
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 0x422609
mov ecx, dword [ebp - 0x70]
push edi
call fcn.00403dc0
mov dword [ebp - 0x54], 1
test edi, edi
je 0x422614
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [ebp - 0x74]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x54]
cmp dword [ebp - 0x50], 0
je 0x422634
push 0
push dword [ebp - 0x50]
call dword [ebp - 0x78]
and dword [ebp - 0x50], 0
cmp dword [ebp - 0x48], 0
je 0x422644
push dword [ebp - 0x48]
call dword [ebp - 0x7c]
and dword [ebp - 0x48], 0
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x422651
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.00407b20
mov eax, esi
jmp 0x42265f
xor eax, eax
call fcn.0045be3c
ret