Function at 0x41f6f1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x1c], edx
xor ecx, ecx
mov dword [esp + 0x24], esi
push edi
push ecx
mov dword [esp + 0x14], ecx
mov ebx, ecx
mov dword [esp + 0x18], ecx
mov edi, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, esi
call fcn.0041e23f
test eax, eax
jne 0x41f73a
push 2
pop edi
jmp 0x41fb18
mov eax, dword [0x478be0]
test eax, eax
jne 0x41f75a
mov ecx, str.crypt32.dll
call fcn.0041de8e
mov dword [0x478be0], eax
test eax, eax
je 0x41fa9b
cmp dword [0x478a50], ebx
jne 0x41f780
push str.CryptMsgClose
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x478a50], eax
test eax, eax
je 0x41fa9b
mov eax, dword [0x478be0]
cmp dword [0x478a54], ebx
jne 0x41f7a6
push str.CertCloseStore
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x478a54], eax
test eax, eax
je 0x41fa9b
mov eax, dword [0x478be0]
cmp dword [0x478bb8], ebx
jne 0x41f7cc
push str.CertFreeCertificateContext
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x478bb8], eax
test eax, eax
je 0x41fa9b
mov eax, dword [0x478be0]
cmp dword [0x478be4], ebx
jne 0x41f7f2
push str.CertFindCertificateInStore
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x478be4], eax
test eax, eax
je 0x41fa9b
mov eax, dword [0x478be0]
cmp dword [0x478b90], ebx
jne 0x41f818
push str.CryptMsgGetParam
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x478b90], eax
test eax, eax
je 0x41fa9b
mov eax, dword [0x478be0]
cmp dword [0x478b7c], ebx
jne 0x41f83e
push str.CryptQueryObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x478b7c], eax
test eax, eax
je 0x41fa9b
mov eax, dword [0x478be0]
cmp dword [0x478ba8], ebx
jne 0x41f864
push str.CertGetNameStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x478ba8], eax
test eax, eax
je 0x41fa9b
mov eax, dword [0x478be0]
cmp dword [0x478b84], ebx
jne 0x41f88a
push str.CryptDecodeObjectEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x478b84], eax
test eax, eax
je 0x41fa9b
mov eax, dword [0x478be0]
cmp dword [0x478bac], ebx
jne 0x41f8ab
push str.CertGetIssuerCertificateFromStore
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x478bac], eax
test eax, eax
je 0x41fa9b
push 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x50]
push eax
push 0
push 2
push 0x400
push esi
mov esi, dword [0x478b7c]
mov ecx, esi
push 1
call dword [0x459220]
call esi
mov ebx, eax
test ebx, ebx
jne 0x41f8f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x41fb18
mov esi, dword [0x478b90]
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 6
push dword [esp + 0x24]
mov ecx, esi
call dword [0x459220]
call esi
mov ebx, eax
test ebx, ebx
je 0x41f8e8
push dword [esp + 0x24]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x41f93d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor ebx, ebx
jmp 0x41fb18
mov esi, dword [0x478b90]
lea ecx, [esp + 0x24]
push ecx
push eax
push 0
push 6
push dword [esp + 0x24]
mov ecx, esi
call dword [0x459220]
call esi
mov ebx, eax
test ebx, ebx
je 0x41f8e8
mov ecx, dword [esp + 0x18]
mov esi, dword [0x478be4]
push 0
mov eax, dword [ecx + 4]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 0x10]
mov ecx, esi
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x44]
push eax
push 0xb0000
push 0
push 0x10001
push dword [esp + 0x24]
call dword [0x459220]
call esi
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41f92e
mov esi, dword [esp + 0x20]
test esi, esi
je 0x41f9d5
mov ecx, eax
call fcn.0041fd21
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x41fb18
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
mov ecx, ebx
call fcn.0041ff33
test eax, eax
jne 0x41f9f1
xorps xmm0, xmm0
movlpd qword [esp + 0x2c], xmm0
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
call fcn.0041ffab
pop ecx
test eax, eax
jne 0x41fa31
lea edx, [esp + 0x2c]
mov ecx, ebx
call fcn.004202f0
test eax, eax
jne 0x41fa31
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x41fb18
mov edi, 0x80096005
jmp 0x41fb18
mov ecx, 0x23f0
call fcn.004209cd
test eax, eax
jne 0x41fa5f
mov ecx, dword [esp + 0x28]
call fcn.0041e256
test eax, eax
je 0x41fa5f
call fcn.0041f590
test eax, eax
jne 0x41fa5f
xor ebx, ebx
inc ebx
xor edi, edi
jmp 0x41fb18
mov eax, dword [0x478bd0]
test eax, eax
jne 0x41fa7b
mov ecx, str.wintrust.dll
call fcn.0041de8e
mov dword [0x478bd0], eax
test eax, eax
je 0x41fa99
cmp dword [0x478bdc], 0
jne 0x41faa2
push str.WinVerifyTrust
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x478bdc], eax
test eax, eax
jne 0x41faa2
xor ebx, ebx
push 0x7e
jmp 0x41f734
xor ebx, ebx
xor esi, esi
mov ecx, dword [esp + 0x28]
call fcn.0041e47a
test eax, eax
je 0x41fabd
inc esi
mov edi, eax
cmp esi, 1
jb 0x41faa6
jmp 0x41fac0
xor ebx, ebx
inc ebx
cmp edi, 0x800b010a
jne 0x41fb18
mov esi, dword [0x478bac]
lea eax, [esp + 0x20]
and dword [esp + 0x20], 0
mov ecx, esi
push eax
mov eax, dword [esp + 0x20]
push 0
push eax
push dword [esp + 0x1c]
call dword [0x459220]
call esi
mov esi, eax
test esi, esi
je 0x41fb18
mov ecx, dword [esi + 0xc]
add ecx, 0x44
call fcn.0041e51b
test eax, eax
je 0x41fb07
xor ebx, ebx
inc ebx
xor edi, edi
push esi
mov esi, dword [0x478bb8]
mov ecx, esi
call dword [0x459220]
call esi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41fb3b
mov esi, dword [0x478bb8]
mov ecx, esi
push eax
call dword [0x459220]
call esi
cmp dword [esp + 0x10], 0
je 0x41fb58
mov esi, dword [0x478a54]
mov ecx, esi
push 0
push dword [esp + 0x14]
call dword [0x459220]
call esi
cmp dword [esp + 0x14], 0
je 0x41fb73
push dword [esp + 0x14]
mov esi, dword [0x478a50]
mov ecx, esi
call dword [0x459220]
call esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret