Function at 0x41f2ee
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.0041de3c
test eax, eax
jne 0x41f337
push 2
pop edi
jmp 0x41f715
mov eax, dword [0x477be0]
test eax, eax
jne 0x41f357
mov ecx, str.crypt32.dll
call fcn.0041da8b
mov dword [0x477be0], eax
test eax, eax
je 0x41f698
cmp dword [0x477a50], ebx
jne 0x41f37d
push str.CryptMsgClose
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x477a50], eax
test eax, eax
je 0x41f698
mov eax, dword [0x477be0]
cmp dword [0x477a54], ebx
jne 0x41f3a3
push str.CertCloseStore
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x477a54], eax
test eax, eax
je 0x41f698
mov eax, dword [0x477be0]
cmp dword [0x477bb8], ebx
jne 0x41f3c9
push str.CertFreeCertificateContext
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x477bb8], eax
test eax, eax
je 0x41f698
mov eax, dword [0x477be0]
cmp dword [0x477be4], ebx
jne 0x41f3ef
push str.CertFindCertificateInStore
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x477be4], eax
test eax, eax
je 0x41f698
mov eax, dword [0x477be0]
cmp dword [0x477b90], ebx
jne 0x41f415
push str.CryptMsgGetParam
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x477b90], eax
test eax, eax
je 0x41f698
mov eax, dword [0x477be0]
cmp dword [0x477b7c], ebx
jne 0x41f43b
push str.CryptQueryObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x477b7c], eax
test eax, eax
je 0x41f698
mov eax, dword [0x477be0]
cmp dword [0x477ba8], ebx
jne 0x41f461
push str.CertGetNameStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x477ba8], eax
test eax, eax
je 0x41f698
mov eax, dword [0x477be0]
cmp dword [0x477b84], ebx
jne 0x41f487
push str.CryptDecodeObjectEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x477b84], eax
test eax, eax
je 0x41f698
mov eax, dword [0x477be0]
cmp dword [0x477bac], ebx
jne 0x41f4a8
push str.CertGetIssuerCertificateFromStore
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x477bac], eax
test eax, eax
je 0x41f698
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 [0x477b7c]
mov ecx, esi
push 1
call dword [0x458220]
call esi
mov ebx, eax
test ebx, ebx
jne 0x41f4f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x41f715
mov esi, dword [0x477b90]
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 6
push dword [esp + 0x24]
mov ecx, esi
call dword [0x458220]
call esi
mov ebx, eax
test ebx, ebx
je 0x41f4e5
push dword [esp + 0x24]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x41f53a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor ebx, ebx
jmp 0x41f715
mov esi, dword [0x477b90]
lea ecx, [esp + 0x24]
push ecx
push eax
push 0
push 6
push dword [esp + 0x24]
mov ecx, esi
call dword [0x458220]
call esi
mov ebx, eax
test ebx, ebx
je 0x41f4e5
mov ecx, dword [esp + 0x18]
mov esi, dword [0x477be4]
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 [0x458220]
call esi
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41f52b
mov esi, dword [esp + 0x20]
test esi, esi
je 0x41f5d2
mov ecx, eax
call fcn.0041f91e
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x41f715
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
mov ecx, ebx
call fcn.0041fb30
test eax, eax
jne 0x41f5ee
xorps xmm0, xmm0
movlpd qword [esp + 0x2c], xmm0
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
call fcn.0041fba8
pop ecx
test eax, eax
jne 0x41f62e
lea edx, [esp + 0x2c]
mov ecx, ebx
call fcn.0041feed
test eax, eax
jne 0x41f62e
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x41f715
mov edi, 0x80096005
jmp 0x41f715
mov ecx, 0x23f0
call fcn.004205ca
test eax, eax
jne 0x41f65c
mov ecx, dword [esp + 0x28]
call fcn.0041de53
test eax, eax
je 0x41f65c
call fcn.0041f18d
test eax, eax
jne 0x41f65c
xor ebx, ebx
inc ebx
xor edi, edi
jmp 0x41f715
mov eax, dword [0x477bd0]
test eax, eax
jne 0x41f678
mov ecx, str.wintrust.dll
call fcn.0041da8b
mov dword [0x477bd0], eax
test eax, eax
je 0x41f696
cmp dword [0x477bdc], 0
jne 0x41f69f
push str.WinVerifyTrust
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x477bdc], eax
test eax, eax
jne 0x41f69f
xor ebx, ebx
push 0x7e
jmp 0x41f331
xor ebx, ebx
xor esi, esi
mov ecx, dword [esp + 0x28]
call fcn.0041e077
test eax, eax
je 0x41f6ba
inc esi
mov edi, eax
cmp esi, 1
jb 0x41f6a3
jmp 0x41f6bd
xor ebx, ebx
inc ebx
cmp edi, 0x800b010a
jne 0x41f715
mov esi, dword [0x477bac]
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 [0x458220]
call esi
mov esi, eax
test esi, esi
je 0x41f715
mov ecx, dword [esi + 0xc]
add ecx, 0x44
call fcn.0041e118
test eax, eax
je 0x41f704
xor ebx, ebx
inc ebx
xor edi, edi
push esi
mov esi, dword [0x477bb8]
mov ecx, esi
call dword [0x458220]
call esi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41f738
mov esi, dword [0x477bb8]
mov ecx, esi
push eax
call dword [0x458220]
call esi
cmp dword [esp + 0x10], 0
je 0x41f755
mov esi, dword [0x477a54]
mov ecx, esi
push 0
push dword [esp + 0x14]
call dword [0x458220]
call esi
cmp dword [esp + 0x14], 0
je 0x41f770
push dword [esp + 0x14]
mov esi, dword [0x477a50]
mov ecx, esi
call dword [0x458220]
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