Function at 0x407670
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x74
mov eax, dword [0x417034]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x78]
push ebx
push ebp
mov ebp, dword [esp + 0x8c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x88]
push esi
xor ebx, ebx
cmp eax, ebx
push edi
mov esi, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ebp
je 0x4076aa
mov byte [eax], bl
cmp ebp, ebx
je 0x4076b1
mov dword [ebp], ebx
mov al, 0xc2
push 0x30
mov byte [esp + 0x79], al
mov byte [esp + 0x7d], al
xor eax, eax
lea ecx, [esp + 0x40]
push ebx
push ecx
mov dword [esp + 0x78], 0xaac56b
mov word [esp + 0x7c], 0xcd44
mov word [esp + 0x7e], 0x11d0
mov byte [esp + 0x80], 0x8c
mov byte [esp + 0x82], bl
mov byte [esp + 0x83], 0xc0
mov byte [esp + 0x84], 0x4f
mov byte [esp + 0x86], 0x95
mov byte [esp + 0x87], 0xee
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.00409070
mov edx, dword [esp + 0x98]
xor ecx, ecx
add esp, 0xc
cmp ebp, ebx
setne cl
lea eax, [esp + 0x2c]
push str.wintrust.dll
mov dword [esp + 0x30], 0x10
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], 0x30
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x40782f
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinVerifyTrust
push esi
call ebp
push str.WTHelperProvDataFromStateData
mov edi, eax
push esi
mov dword [esp + 0x1c], edi
call ebp
push str.WTHelperGetProvSignerFromChain
push esi
mov dword [esp + 0x28], eax
call ebp
push str.WTHelperGetProvCertFromChain
push esi
mov dword [esp + 0x20], eax
call ebp
cmp edi, ebx
mov dword [esp + 0x28], eax
je 0x407828
cmp dword [esp + 0x20], ebx
je 0x407828
cmp dword [esp + 0x18], ebx
je 0x407828
cmp eax, ebx
je 0x407828
cmp dword [esp + 0x8c], 2
jne 0x4077d4
or eax, 0xffffffff
jmp 0x4077d8
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x70]
push ecx
push eax
call edi
mov edi, eax
push edi
mov ebx, str._WVT__WVT_returned_0x_X_n
call fcn.00407010
add esp, 4
cmp edi, 0x800b0001
je 0x40780b
xor ebx, ebx
test edi, edi
setne bl
inc ebx
mov dword [esp + 0x10], ebx
jne 0x407844
mov eax, 2
lea edx, [esp + 0x3c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x58], eax
push edx
lea eax, [esp + 0x70]
push eax
push 0xffffffffffffffff
call dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0040850f
add esp, 0x74
ret
mov eax, dword [esp + 0x24]
test eax, eax
je 0x407857
cmp edi, 0x800b0100
setne cl
mov byte [eax], cl
cmp edi, 0x800b0100
jne 0x407898
mov eax, 2
lea edx, [esp + 0x3c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x58], eax
push edx
lea eax, [esp + 0x70]
push eax
push 0xffffffffffffffff
call dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0040850f
add esp, 0x74
ret
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x407926
mov ecx, dword [esp + 0x5c]
push ecx
call dword [esp + 0x24]
test eax, eax
je 0x4078cd
push 0
push 0
push 0
push eax
call dword [esp + 0x28]
test eax, eax
je 0x4078cd
push 0
push eax
call dword [esp + 0x30]
mov ebx, eax
test ebx, ebx
jne 0x4078d5
mov dword [edi], 0
jmp 0x407905
push str.crypt32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407905
push str.CertDuplicateCertificateContext
push edi
call ebp
test eax, eax
je 0x4078fe
mov edx, dword [ebx + 4]
push edx
call eax
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 2
lea edx, [esp + 0x3c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x58], eax
push edx
lea eax, [esp + 0x70]
push eax
push 0xffffffffffffffff
call dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040850f
add esp, 0x74
ret