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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x43800c]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0xc], 0
mov esi, ecx
mov dword [esp + 0x10], 0x10
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x28]
xorps xmm0, xmm0
mov dword [esp + 0x14], 0
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.00415d80
test eax, eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push edi
js 0x4161d2
lea eax, [esp + 0x3c]
push eax
jmp 0x4161d4
push 0
push esi
push 0
call dword [sym.imp.CRYPT32.dll_CertGetCertificateChain]
mov esi, eax
test esi, esi
je 0x41643b
lea eax, [esp + 0x3c]
mov dword [esp + 0x30], 0xc
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x40], 0x14
push eax
push dword [esp + 0x14]
xorps xmm0, xmm0
xor edi, edi
push 1
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
call dword [sym.imp.CRYPT32.dll_CertVerifyCertificateChainPolicy]
test eax, eax
je 0x416417
cmp dword [esp + 0x40], edi
jne 0x41641d
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x10]
mov ebx, dword [eax]
mov eax, dword [ebx + 0xc]
cmp eax, 2
jb 0x41641d
lea ecx, [eax*4]
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x20], ecx
mov eax, dword [eax + ecx - 4]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x54]
push ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], 0x14
mov eax, dword [eax + 0xc]
add eax, 0x38
push eax
push 1
push edi
push 0x8004
push edi
call dword [sym.imp.CRYPT32.dll_CryptHashPublicKeyInfo]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x416368
cmp dword [esp + 0x24], 0x14
jne 0x416368
mov ecx, 0x433658
lea edx, [esp + 0x50]
lea esi, [edi + 0x10]
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4162e4
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4162b0
push dword [esp + 0xc]
mov edi, 1
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateChain]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004165a1
mov esp, ebp
pop ebp
ret
mov ecx, 0x43366c
lea edx, [esp + 0x50]
mov esi, 0x10
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x416326
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4162f2
push dword [esp + 0xc]
mov edi, 1
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateChain]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004165a1
mov esp, ebp
pop ebp
ret
mov ecx, 0x433624
lea edx, [esp + 0x50]
mov esi, 0x10
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x41636c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x416334
push dword [esp + 0xc]
mov edi, 1
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateChain]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004165a1
mov esp, ebp
pop ebp
ret
call esi
jmp 0x416372
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + ecx - 4]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x68]
push ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x28], 0x20
mov eax, dword [eax + 0xc]
add eax, 0x38
push eax
push 1
push 0
push 0x800c
push 0
call dword [sym.imp.CRYPT32.dll_CryptHashPublicKeyInfo]
test eax, eax
je 0x4163f7
cmp dword [esp + 0x20], 0x20
jne 0x4163f7
mov ecx, 0x433638
lea edx, [esp + 0x64]
mov esi, 0x1c
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x41641d
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4163c3
push dword [esp + 0xc]
mov edi, 1
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateChain]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004165a1
mov esp, ebp
pop ebp
ret
call esi
push dword [esp + 0xc]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateChain]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004165a1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0xc]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateChain]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004165a1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x84]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004165a1
mov esp, ebp
pop ebp
ret