Function at 0x47240c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4727fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 1
lea eax, [ebp - 0x138]
mov ecx, 0x472818
mov edx, esi
call fcn.00404d40
mov edx, dword [ebp - 0x138]
lea eax, [ebp - 0xc]
call fcn.00405260
mov eax, 1
mov edx, dword [ebp - 0xc]
dec eax
test edx, edx
je 0x4724a0
cmp eax, dword [edx - 4]
jb 0x4724a5
call fcn.00403bcc
inc eax
lea eax, [edx + eax*2 - 2]
push eax
push 0x8000
push 0
push 0x10001
push 8
call sub.crypt32.dll_CertOpenStore
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4727ba
push 0
mov eax, dword [ebp - 8]
push eax
call sub.crypt32.dll_CertEnumCertificatesInStore
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4727ba
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x148]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov edx, 8
call fcn.004092a0
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x144], eax
mov byte [ebp - 0x140], 0xb
lea edx, [ebp - 0x144]
xor ecx, ecx
mov eax, 0x472830
call fcn.0040a198
mov edx, dword [ebp - 0x13c]
mov eax, dword [ebp + 8]
call fcn.00404a78
mov eax, ebx
call fcn.00473198
test al, al
je 0x472593
lea eax, [ebp - 0x134]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.0040358c
push pe_nt_image_headers32
lea eax, [ebp - 0x134]
push eax
push 0
push 0
push 5
mov eax, dword [ebp - 0x10]
push eax
call sub.crypt32.dll_CertGetNameStringA
lea edx, [ebp - 0x14c]
lea eax, [ebp - 0x134]
call fcn.00409c80
mov edx, dword [ebp - 0x14c]
mov eax, edi
call fcn.00404a78
jmp 0x472666
mov eax, 0x800
call fcn.00402ad8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x800
xor edx, edx
push ebp
push 0x47265f
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x24]
push edx
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x30]
push edx
mov eax, dword [eax + 0x34]
push eax
push 7
push 0x10001
call sub.crypt32.dll_CryptDecodeObject
mov eax, dword [ebp - 0x24]
push eax
push 0x472834
call sub.crypt32.dll_CertFindRDNAttr
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 8]
mov dword [ebp - 0x1c], edx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x134]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.0040358c
push pe_nt_image_headers32
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x1c]
push eax
push 5
call sub.crypt32.dll_CertRDNValueToStrA
push edi
lea edx, [ebp - 0x150]
lea eax, [ebp - 0x134]
call fcn.00409c80
mov eax, dword [ebp - 0x150]
mov ecx, 0x7fffffff
mov edx, 3
call fcn.00404f54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472666
mov eax, dword [ebp - 0x24]
call fcn.00402b08
ret
lea eax, [ebp - 0x134]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.0040358c
push pe_nt_image_headers32
lea eax, [ebp - 0x134]
push eax
push 0x8000000
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
add eax, 0x18
push eax
push 0x10001
call sub.crypt32.dll_CertNameToStrA
xor eax, eax
push ebp
push 0x47272f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41767c]
call fcn.00403c68
mov ebx, eax
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x134]
mov ecx, pe_nt_image_headers32
call fcn.00404ca4
mov edx, dword [ebp - 0x154]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea ecx, [ebp - 0x158]
mov edx, 1
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
push dword [ebp - 0x158]
push 0x472844
lea ecx, [ebp - 0x15c]
mov edx, 3
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
push dword [ebp - 0x15c]
mov eax, dword [ebp + 0x10]
mov edx, 3
call fcn.00404db4
mov eax, ebx
call fcn.00403c98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472741
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
add eax, 0x28
push eax
call sub.kernel32.dll_FileTimeToSystemTime
lea eax, [ebp - 0x160]
push eax
movzx eax, word [ebp - 0x34]
mov dword [ebp - 0x178], eax
mov byte [ebp - 0x174], 0
movzx eax, word [ebp - 0x32]
mov dword [ebp - 0x170], eax
mov byte [ebp - 0x16c], 0
movzx eax, word [ebp - 0x2e]
mov dword [ebp - 0x168], eax
mov byte [ebp - 0x164], 0
lea edx, [ebp - 0x178]
mov ecx, 2
mov eax, 0x472850
call fcn.0040a198
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp + 0xc]
call fcn.00404a78
mov eax, dword [ebp - 0x10]
push eax
call sub.crypt32.dll_CertFreeCertificateContext
push 0
mov eax, dword [ebp - 8]
push eax
call sub.crypt32.dll_CertCloseStore
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472802
lea eax, [ebp - 0x160]
mov edx, 7
call fcn.00404a48
lea eax, [ebp - 0x13c]
mov edx, 2
call fcn.00404a48
lea eax, [ebp - 0xc]
call fcn.00405114
ret