Function at 0x4615b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4990
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0xac], ebx
xor edi, edi
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xcc], edi
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0xb8], edi
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0x13c], edi
push 0x6c
push edi
lea eax, [ebp - 0x138]
push eax
call fcn.004da450
add esp, 0xc
mov dword [ebp - 0xa8], edi
push edi
lea ecx, [ebp - 0xb0]
push ecx
lea edx, [ebp - 0xb4]
push edx
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0xc8]
push ecx
lea edx, [ebp - 0xc4]
push edx
push edi
push 2
push 0x400
push esi
push 1
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
jne 0x46167d
mov dword [ebp - 0xa0], 0xfffffffd
jmp 0x461a7e
lea eax, [ebp - 0xb8]
push eax
push edi
push edi
push 6
mov ecx, dword [ebp - 0xb0]
push ecx
mov esi, dword [sym.imp.CRYPT32.dll_CryptMsgGetParam]
call esi
test eax, eax
jne 0x4616aa
mov dword [ebp - 0xa0], 0xfffffffd
jmp 0x461a7e
mov edx, dword [ebp - 0xb8]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0xc0], edi
test edi, edi
je 0x461a7c
lea eax, [ebp - 0xb8]
push eax
push edi
push 0
push 6
mov ecx, dword [ebp - 0xb0]
push ecx
call esi
test eax, eax
jne 0x4616f1
mov dword [ebp - 0xa0], 0xfffffffd
jmp 0x461a71
mov edx, dword [edi + 4]
mov dword [ebp - 0x124], edx
mov eax, dword [edi + 8]
mov dword [ebp - 0x120], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x138], ecx
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x134], edx
push 0
lea eax, [ebp - 0x13c]
push eax
push 0xb0000
push 0
push 0x10001
mov ecx, dword [ebp - 0xb4]
push ecx
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x461750
mov dword [ebp - 0xa0], 0xfffffffd
jmp 0x461a71
push 0
push 0
push 0
push 0
push 4
push eax
mov edi, dword [sym.imp.CRYPT32.dll_CertGetNameStringW]
call edi
mov esi, eax
test esi, esi
jne 0x461778
mov dword [ebp - 0xa0], 0xfffffffd
jmp 0x461a5e
lea eax, [esi + 1]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d4853
add esp, 4
mov dword [ebx + 0x38], eax
test eax, eax
je 0x461a5e
push esi
push eax
push 0
push 0
push 4
mov eax, dword [ebp - 0xa4]
push eax
call edi
test eax, eax
jne 0x4617c3
mov dword [ebp - 0xa0], 0xfffffffd
jmp 0x461a5e
mov dword [ebp - 0xa0], 1
mov eax, dword [ebx + 0x38]
call fcn.00461080
xor esi, esi
mov dword [ebp - 4], esi
mov eax, ebx
call fcn.00401d30
mov dword [ebp - 0xbc], esi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ecx]
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ecx + 0xc]
cmp esi, dword [edx + 4]
jae 0x461852
xor eax, eax
mov word [ebp - 0x9c], ax
push 0x7e
push eax
lea ecx, [ebp - 0x9a]
push ecx
call fcn.004da450
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 8]
add ecx, dword [eax + 4]
sub ecx, esi
movzx edx, byte [ecx - 1]
push edx
push 0x518e74
lea eax, [ebp - 0x9c]
push eax
call edi
add esp, 0x18
push ebx
lea eax, [ebp - 0x9c]
call fcn.00401d00
inc esi
mov dword [ebp - 0xbc], esi
jmp 0x4617f0
mov dword [ebp - 4], 0xffffffff
jmp 0x461879
cmp dword [ebp + 8], 0
je 0x461a12
mov dword [ebp - 0xac], 0
lea ecx, [ebp - 0xac]
push ecx
push 0
push 0
mov edx, dword [ebp - 0xa4]
push edx
mov esi, dword [sym.imp.CRYPT32.dll_CertGetEnhancedKeyUsage]
call esi
test eax, eax
je 0x461a12
mov eax, dword [ebp - 0xac]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea ecx, [ebp - 0xac]
push ecx
push edi
push 0
mov edx, dword [ebp - 0xa4]
push edx
call esi
test eax, eax
je 0x461a18
mov dword [ebp - 0xa8], 0
cmp dword [edi], 0
jbe 0x461a18
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0xa8]
mov esi, dword [eax + ecx*4]
mov ecx, str.1.3.6.1.4.1.311.10.3.6
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x461921
test dl, dl
je 0x46191d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x461921
add eax, 2
add ecx, 2
test dl, dl
jne 0x461901
xor eax, eax
jmp 0x461926
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x461934
mov eax, str.EKU:_Windows_System_Component_Verification__1.3.6.1.4.1.311.10.3.6_
jmp 0x4619ee
mov ecx, str.1.3.6.1.4.1.311.10.3.21
mov eax, esi
jmp 0x461940
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x461960
test dl, dl
je 0x46195c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x461960
add eax, 2
add ecx, 2
test dl, dl
jne 0x461940
xor eax, eax
jmp 0x461965
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x461974
lea eax, [ebx + 0x1c]
push eax
mov eax, str.EKU:_Windows_RT_Verification__1.3.6.1.4.1.311.10.3.21_
jmp 0x4619f2
mov ecx, str.1.3.6.1.4.1.311.76.8.1
mov eax, esi
jmp 0x461980
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4619a0
test dl, dl
je 0x46199c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4619a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x461980
xor eax, eax
jmp 0x4619a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4619b4
lea ecx, [ebx + 0x1c]
push ecx
mov eax, str.EKU:_Microsoft_Publisher__1.3.6.1.4.1.311.76.8.1_
jmp 0x4619f2
mov ecx, str.1.3.6.1.4.1.311.76.5.1
mov eax, esi
jmp 0x4619c0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4619e0
test dl, dl
je 0x4619dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4619e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4619c0
xor eax, eax
jmp 0x4619e5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4619fb
mov eax, str.EKU:_Dynamic_Code_Generator__1.3.6.1.4.1.311.76.5.1_
lea edx, [ebx + 0x1c]
push edx
mov byte [ebx + 0x5c], 1
call fcn.00401cd0
mov eax, dword [ebp - 0xa8]
inc eax
mov dword [ebp - 0xa8], eax
cmp eax, dword [edi]
jb 0x4618ee
jmp 0x461a18
mov edi, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ecx + 0xc]
mov edx, dword [eax + 0x20]
mov dword [ebx + 0x4c], edx
mov eax, dword [eax + 0x24]
mov dword [ebx + 0x50], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + 0x28]
mov dword [ebx + 0x54], ecx
mov edx, dword [eax + 0x2c]
mov dword [ebx + 0x58], edx
push str._Going_To_print_wstrSrNo_in_GetProgCertInfo
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
mov eax, ebx
call fcn.00402450
push eax
call esi
test edi, edi
je 0x461a5e
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov edi, dword [ebp - 0xc0]
test edi, edi
je 0x461a7c
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor edi, edi
mov eax, dword [ebp - 0xb0]
cmp eax, edi
je 0x461a8f
push eax
call dword [sym.imp.CRYPT32.dll_CryptMsgClose]
mov eax, dword [ebp - 0xb4]
cmp eax, edi
je 0x461aa2
push 1
push eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret