Function at 0x4084e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2b4
mov eax, dword [0x41b5c0]
push ebx
push esi
push edi
mov dword [esp + 0x2bc], eax
mov ebx, ecx
call fcn.004083f0
test al, al
je 0x408585
push 0
push 0
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0
call dword [ebx + 0x228]
test eax, eax
je 0x408585
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call dword [0x415074]
mov esi, eax
cmp esi, 0xffffffff
push 0
jne 0x408560
mov ecx, dword [esp + 0x14]
push ecx
call dword [ebx + 0x230]
xor al, al
mov ecx, dword [esp + 0x2bc]
call fcn.00412959
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea edx, [esp + 0x1c]
push edx
push esi
call dword [ebx + 0x22c]
test eax, eax
jne 0x40859a
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [ebx + 0x230]
push esi
call dword [0x41510c]
xor al, al
mov ecx, dword [esp + 0x2bc]
call fcn.00412959
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004128b7
add esp, 4
push 0
mov edi, eax
push edi
lea edx, [esp + 0x1c]
push edx
push esi
call dword [ebx + 0x22c]
push esi
call dword [0x41510c]
mov eax, dword [esp + 0x14]
lea ecx, [eax*4 + 2]
push ecx
call fcn.004128b7
mov ecx, dword [esp + 0x18]
add esp, 4
xor esi, esi
test ecx, ecx
mov dword [esp + 0x44], eax
jbe 0x408611
mov dword [esp + 0xc], eax
movzx edx, byte [esi + edi]
mov eax, dword [esp + 0xc]
push edx
push str._02X
push eax
call dword [0x415360]
mov ecx, dword [esp + 0x18]
add ecx, 4
add esp, 0xc
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x14]
inc esi
cmp esi, ecx
jb 0x4085e5
push 0
push 0
push ecx
mov ecx, dword [esp + 0x1c]
push edi
push ecx
call dword [ebx + 0x238]
push edi
mov dword [esp + 0x10], eax
call fcn.00412968
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x80], ecx
xor eax, eax
xor esi, esi
mov dword [esp + 0x84], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x54], eax
mov ecx, 0x82
lea edi, [esp + 0xb0]
mov dword [esp + 0xac], esi
mov dword [esp + 0x3c], edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x10]
add esp, 4
cmp edi, esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x64], esi
jne 0x4086f0
mov eax, 1
lea edx, [esp + 0x48]
mov dword [esp + 0x48], 0x10
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], 2
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], eax
jmp 0x408738
push esi
lea eax, [esp + 0xac]
push eax
push edi
call dword [ebx + 0x23c]
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0xac]
mov dword [esp + 0x6c], ecx
mov eax, 2
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], 0x24
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 1
lea edx, [esp + 0x18]
mov dword [esp + 0x2c], eax
push edx
lea eax, [esp + 0x8c]
push eax
push 0xffffffffffffffff
mov dword [esp + 0x24], 0x2c
mov dword [esp + 0x4c], 0x100
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x94], 0xaac56b
mov word [esp + 0x98], 0xcd44
mov word [esp + 0x9a], 0x11d0
mov byte [esp + 0x9c], 0x8c
mov byte [esp + 0x9d], 0xc2
mov byte [esp + 0x9e], 0
mov byte [esp + 0x9f], 0xc0
mov byte [esp + 0xa0], 0x4f
mov byte [esp + 0xa1], 0xc2
mov byte [esp + 0xa2], 0x95
mov byte [esp + 0xa3], 0xee
call sub.WINTRUST.dll_WinVerifyTrust
cmp eax, esi
mov dword [esp + 0x58], eax
jne 0x408854
mov ecx, dword [esp + 0x38]
push ecx
call sub.WINTRUST.dll_WTHelperProvDataFromStateData
cmp eax, esi
je 0x408854
push esi
push esi
push esi
push eax
call sub.WINTRUST.dll_WTHelperGetProvSignerFromChain
cmp eax, esi
je 0x408854
push esi
push eax
call sub.WINTRUST.dll_WTHelperGetProvCertFromChain
cmp eax, esi
mov dword [esp + 0x5c], eax
je 0x408854
mov edx, dword [eax + 4]
push esi
push esi
push esi
push esi
push 4
push edx
call dword [sym.imp.CRYPT32.dll_CertGetNameStringW]
mov dword [esp + 0x60], eax
add eax, eax
push eax
call fcn.004128b7
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
add esp, 4
push ecx
mov edi, eax
mov eax, dword [edx + 4]
push edi
push esi
push esi
push 4
push eax
call dword [sym.imp.CRYPT32.dll_CertGetNameStringW]
push edi
lea ecx, [ebx + 0x208]
call dword [0x4151c8]
cmp edi, esi
je 0x408850
push edi
call fcn.00412968
add esp, 4
mov edi, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x9c]
push edx
push 0xffffffffffffffff
mov dword [esp + 0x40], 2
mov dword [esp + 0x3c], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0xa4], 0x189a3842
mov word [esp + 0xa8], 0x3041
mov word [esp + 0xaa], 0x11d1
mov byte [esp + 0xac], 0x85
mov byte [esp + 0xad], 0xe1
mov byte [esp + 0xae], 0
mov byte [esp + 0xaf], 0xc0
mov byte [esp + 0xb0], 0x4f
mov byte [esp + 0xb1], 0xc2
mov byte [esp + 0xb2], 0x95
mov byte [esp + 0xb3], 0xee
call sub.WINTRUST.dll_WinVerifyTrust
cmp edi, esi
je 0x4088e8
mov eax, dword [esp + 0x10]
push esi
push edi
push eax
call dword [ebx + 0x234]
mov ecx, dword [esp + 0x10]
push esi
push ecx
call dword [ebx + 0x230]
mov edx, dword [esp + 0x44]
push edx
call fcn.00412968
mov ecx, dword [esp + 0x5c]
xor eax, eax
add esp, 4
cmp ecx, esi
mov ecx, dword [esp + 0x2bc]
sete al
call fcn.00412959
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret