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

Disassembly:
push 0xe4
mov eax, 0x515a25
call fcn.00472152
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
test ebx, ebx
je 0x438f8e
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x438f8e
mov ecx, ebx
call fcn.004388e2
test eax, eax
je 0x438f8e
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 0x438f80
push str.Crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.00419a80
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
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 0x438f80
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.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 0x438f53
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 0x438f53
push dword [ebp - 0x4c]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call edi
mov esi, eax
test esi, esi
je 0x438f50
lea eax, [ebp - 0x4c]
push eax
push esi
push 0
push 6
push dword [ebp - 0x48]
call ebx
test eax, eax
je 0x438f49
mov eax, dword [esi + 4]
mov dword [ebp - 0xd8], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0xd4], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xec], eax
mov eax, dword [esi + 0x10]
push 0
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0xf0]
push eax
push 0xb0000
push 0
push 0x10001
push dword [ebp - 0x50]
call dword [ebp - 0x6c]
mov ebx, eax
test ebx, ebx
je 0x438f49
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 0x438f45
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 0x438f3a
mov ecx, dword [ebp - 0x70]
push edi
call fcn.004199e0
mov dword [ebp - 0x54], 1
test edi, edi
je 0x438f45
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 0x438f65
push 0
push dword [ebp - 0x50]
call dword [ebp - 0x78]
and dword [ebp - 0x50], 0
cmp dword [ebp - 0x48], 0
je 0x438f75
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 0x438f82
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.0041e2c0
mov eax, esi
jmp 0x438f90
xor eax, eax
call fcn.004720fc
ret