Function at 0x41f8a3
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.0041e3f1
test eax, eax
jne 0x41f8ec
push 2
pop edi
jmp 0x41fcca
mov eax, dword [0x478c00]
test eax, eax
jne 0x41f90c
mov ecx, str.crypt32.dll
call fcn.0041e030
mov dword [0x478c00], eax
test eax, eax
je 0x41fc4d
cmp dword [0x478a64], ebx
jne 0x41f932
push str.CryptMsgClose
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x478a64], eax
test eax, eax
je 0x41fc4d
mov eax, dword [0x478c00]
cmp dword [0x478a68], ebx
jne 0x41f958
push str.CertCloseStore
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x478a68], eax
test eax, eax
je 0x41fc4d
mov eax, dword [0x478c00]
cmp dword [0x478bd0], ebx
jne 0x41f97e
push str.CertFreeCertificateContext
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x478bd0], eax
test eax, eax
je 0x41fc4d
mov eax, dword [0x478c00]
cmp dword [0x478c04], ebx
jne 0x41f9a4
push str.CertFindCertificateInStore
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x478c04], eax
test eax, eax
je 0x41fc4d
mov eax, dword [0x478c00]
cmp dword [0x478ba4], ebx
jne 0x41f9ca
push str.CryptMsgGetParam
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x478ba4], eax
test eax, eax
je 0x41fc4d
mov eax, dword [0x478c00]
cmp dword [0x478b90], ebx
jne 0x41f9f0
push str.CryptQueryObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x478b90], eax
test eax, eax
je 0x41fc4d
mov eax, dword [0x478c00]
cmp dword [0x478bbc], ebx
jne 0x41fa16
push str.CertGetNameStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x478bbc], eax
test eax, eax
je 0x41fc4d
mov eax, dword [0x478c00]
cmp dword [0x478b98], ebx
jne 0x41fa3c
push str.CryptDecodeObjectEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x478b98], eax
test eax, eax
je 0x41fc4d
mov eax, dword [0x478c00]
cmp dword [0x478bc0], ebx
jne 0x41fa5d
push str.CertGetIssuerCertificateFromStore
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x478bc0], eax
test eax, eax
je 0x41fc4d
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 [0x478b90]
mov ecx, esi
push 1
call dword [0x459224]
call esi
mov ebx, eax
test ebx, ebx
jne 0x41faa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x41fcca
mov esi, dword [0x478ba4]
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 6
push dword [esp + 0x24]
mov ecx, esi
call dword [0x459224]
call esi
mov ebx, eax
test ebx, ebx
je 0x41fa9a
push dword [esp + 0x24]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x41faef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor ebx, ebx
jmp 0x41fcca
mov esi, dword [0x478ba4]
lea ecx, [esp + 0x24]
push ecx
push eax
push 0
push 6
push dword [esp + 0x24]
mov ecx, esi
call dword [0x459224]
call esi
mov ebx, eax
test ebx, ebx
je 0x41fa9a
mov ecx, dword [esp + 0x18]
mov esi, dword [0x478c04]
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 [0x459224]
call esi
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41fae0
mov esi, dword [esp + 0x20]
test esi, esi
je 0x41fb87
mov ecx, eax
call fcn.0041fd35
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x41fcca
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
mov ecx, ebx
call fcn.0041fd9a
test eax, eax
jne 0x41fba3
xorps xmm0, xmm0
movlpd qword [esp + 0x2c], xmm0
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
call fcn.0041fe12
pop ecx
test eax, eax
jne 0x41fbe3
lea edx, [esp + 0x2c]
mov ecx, ebx
call fcn.00420157
test eax, eax
jne 0x41fbe3
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x41fcca
mov edi, 0x80096005
jmp 0x41fcca
mov ecx, 0x23f0
call fcn.00420834
test eax, eax
jne 0x41fc11
mov ecx, dword [esp + 0x28]
call fcn.0041e408
test eax, eax
je 0x41fc11
call fcn.0041f742
test eax, eax
jne 0x41fc11
xor ebx, ebx
inc ebx
xor edi, edi
jmp 0x41fcca
mov eax, dword [0x478bf0]
test eax, eax
jne 0x41fc2d
mov ecx, str.wintrust.dll
call fcn.0041e030
mov dword [0x478bf0], eax
test eax, eax
je 0x41fc4b
cmp dword [0x478bfc], 0
jne 0x41fc54
push str.WinVerifyTrust
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x478bfc], eax
test eax, eax
jne 0x41fc54
xor ebx, ebx
push 0x7e
jmp 0x41f8e6
xor ebx, ebx
xor esi, esi
mov ecx, dword [esp + 0x28]
call fcn.0041e62c
test eax, eax
je 0x41fc6f
inc esi
mov edi, eax
cmp esi, 1
jb 0x41fc58
jmp 0x41fc72
xor ebx, ebx
inc ebx
cmp edi, 0x800b010a
jne 0x41fcca
mov esi, dword [0x478bc0]
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 [0x459224]
call esi
mov esi, eax
test esi, esi
je 0x41fcca
mov ecx, dword [esi + 0xc]
add ecx, 0x44
call fcn.0041e6cd
test eax, eax
je 0x41fcb9
xor ebx, ebx
inc ebx
xor edi, edi
push esi
mov esi, dword [0x478bd0]
mov ecx, esi
call dword [0x459224]
call esi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41fced
mov esi, dword [0x478bd0]
mov ecx, esi
push eax
call dword [0x459224]
call esi
cmp dword [esp + 0x10], 0
je 0x41fd0a
mov esi, dword [0x478a68]
mov ecx, esi
push 0
push dword [esp + 0x14]
call dword [0x459224]
call esi
cmp dword [esp + 0x14], 0
je 0x41fd25
push dword [esp + 0x14]
mov esi, dword [0x478a64]
mov ecx, esi
call dword [0x459224]
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