Function at 0x40c8c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b033
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x421150]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], 2
cmp dword [ebp + 0x14], 0
je 0x40c8fe
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
cmp dword [ebp + 0x18], 0
je 0x40c90d
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0
mov dword [ebp - 0x38], 0xaac56b
mov edx, 0xcd44
mov word [ebp - 0x34], dx
mov eax, 0x11d0
mov word [ebp - 0x32], ax
mov byte [ebp - 0x30], 0x8c
mov byte [ebp - 0x2f], 0xc2
mov byte [ebp - 0x2e], 0
mov byte [ebp - 0x2d], 0xc0
mov byte [ebp - 0x2c], 0x4f
mov byte [ebp - 0x2b], 0xc2
mov byte [ebp - 0x2a], 0x95
mov byte [ebp - 0x29], 0xee
push 0x10
push 0
lea ecx, [ebp - 0x20]
push ecx
call fcn.0040d9b0
add esp, 0xc
push 0x30
push 0
lea edx, [ebp - 0x7c]
push edx
call fcn.0040d9b0
add esp, 0xc
mov dword [ebp - 0x20], 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x7c], 0x30
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 1
lea edx, [ebp - 0x20]
mov dword [ebp - 0x64], edx
xor eax, eax
cmp dword [ebp + 0x18], 0
setne al
mov dword [ebp - 0x60], eax
push 0
lea ecx, [ebp - 0x40]
call fcn.004093f0
mov dword [ebp - 4], 0
push 0x41d278
lea ecx, [ebp - 0x40]
call fcn.00409430
movzx ecx, al
test ecx, ecx
jne 0x40c9f0
mov dword [ebp - 0x94], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00409410
mov eax, dword [ebp - 0x94]
jmp 0x40ccaa
push str.WinVerifyTrust
lea ecx, [ebp - 0x40]
call fcn.004094c0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
push str.WTHelperProvDataFromStateData
lea ecx, [ebp - 0x40]
call fcn.004094c0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x4c], eax
push str.WTHelperGetProvSignerFromChain
lea ecx, [ebp - 0x40]
call fcn.004094c0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push str.WTHelperGetProvCertFromChain
lea ecx, [ebp - 0x40]
call fcn.004094c0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x24], 0
je 0x40ca64
cmp dword [ebp - 0x4c], 0
je 0x40ca64
cmp dword [ebp - 0x10], 0
je 0x40ca64
cmp dword [ebp - 0x44], 0
jne 0x40ca88
mov dword [ebp - 0x98], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00409410
mov eax, dword [ebp - 0x98]
jmp 0x40ccaa
cmp dword [ebp + 0x10], 2
jne 0x40ca9a
mov dword [ebp - 0xa8], 0xffffffff
jmp 0x40caa3
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xa8], edx
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
call dword [ebp - 0x24]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x800b0001
jne 0x40cacd
mov dword [ebp - 0xac], 0
jmp 0x40cadf
xor eax, eax
cmp dword [ebp - 0x48], 0
setne al
add eax, 1
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0
jne 0x40cb2c
mov dword [ebp - 0x70], 2
mov dword [ebp - 0x60], 2
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x38]
push eax
push 0xffffffffffffffff
call dword [ebp - 0x24]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00409410
mov eax, dword [ebp - 0x9c]
jmp 0x40ccaa
cmp dword [ebp + 0x14], 0
je 0x40cb41
cmp dword [ebp - 0x48], 0x800b0100
setne dl
mov eax, dword [ebp + 0x14]
mov byte [eax], dl
cmp dword [ebp - 0x48], 0x800b0100
jne 0x40cb88
mov dword [ebp - 0x70], 2
mov dword [ebp - 0x60], 2
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x38]
push edx
push 0xffffffffffffffff
call dword [ebp - 0x24]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00409410
mov eax, dword [ebp - 0xa0]
jmp 0x40ccaa
cmp dword [ebp + 0x18], 0
je 0x40cc8c
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [ebp - 0x4c]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x40cbeb
push 0
push 0
push 0
mov edx, dword [ebp - 0x80]
push edx
call dword [ebp - 0x10]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
je 0x40cbeb
push 0
mov eax, dword [ebp - 0x88]
push eax
call dword [ebp - 0x44]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jne 0x40cbff
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0
jmp 0x40cc71
push 0
lea ecx, [ebp - 0x8c]
call fcn.004093f0
mov byte [ebp - 4], 1
push 0x41d304
lea ecx, [ebp - 0x8c]
call fcn.00409430
movzx edx, al
test edx, edx
je 0x40cc62
push str.CertDuplicateCertificateContext
lea ecx, [ebp - 0x8c]
call fcn.004094c0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x40cc62
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 4]
push ecx
call dword [ebp - 0x90]
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00409410
mov dword [ebp - 0x70], 2
mov dword [ebp - 0x60], 2
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x38]
push ecx
push 0xffffffffffffffff
call dword [ebp - 0x24]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0xa4], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00409410
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0040de10
mov esp, ebp
pop ebp
ret