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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x43a00c]
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.00416ec0
test eax, eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push edi
js 0x417312
lea eax, [esp + 0x3c]
push eax
jmp 0x417314
push 0
push esi
push 0
call dword [sym.imp.CRYPT32.dll_CertGetCertificateChain]
mov esi, eax
test esi, esi
je 0x41757b
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 0x417557
cmp dword [esp + 0x40], edi
jne 0x41755d
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x10]
mov ebx, dword [eax]
mov eax, dword [ebx + 0xc]
cmp eax, 2
jb 0x41755d
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 0x4174a8
cmp dword [esp + 0x24], 0x14
jne 0x4174a8
mov ecx, 0x435578
lea edx, [esp + 0x50]
lea esi, [edi + 0x10]
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x417424
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4173f0
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.004177f9
mov esp, ebp
pop ebp
ret
mov ecx, 0x43558c
lea edx, [esp + 0x50]
mov esi, 0x10
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x417466
add ecx, 4
add edx, 4
sub esi, 4
jae 0x417432
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.004177f9
mov esp, ebp
pop ebp
ret
mov ecx, 0x435544
lea edx, [esp + 0x50]
mov esi, 0x10
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4174ac
add ecx, 4
add edx, 4
sub esi, 4
jae 0x417474
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.004177f9
mov esp, ebp
pop ebp
ret
call esi
jmp 0x4174b2
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 0x417537
cmp dword [esp + 0x20], 0x20
jne 0x417537
mov ecx, 0x435558
lea edx, [esp + 0x64]
mov esi, 0x1c
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x41755d
add ecx, 4
add edx, 4
sub esi, 4
jae 0x417503
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.004177f9
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.004177f9
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.004177f9
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.004177f9
mov esp, ebp
pop ebp
ret