Function at 0x474c3c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x30
push 0
push 0
dec ecx
jne 0x474c45
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x47512a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 1
lea eax, [ebp - 0x140]
mov ecx, 0x475148
mov edx, ebx
call fcn.00404fe8
mov edx, dword [ebp - 0x140]
lea eax, [ebp - 0xc]
call fcn.00405554
mov eax, 1
mov edx, dword [ebp - 0xc]
dec eax
test edx, edx
je 0x474c9f
cmp eax, dword [edx - 4]
jb 0x474ca4
call fcn.00403e74
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 0x474fcb
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 0x4750de
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x150]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov edx, 8
call fcn.004096c4
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x14c], eax
mov byte [ebp - 0x148], 0xb
lea edx, [ebp - 0x14c]
xor ecx, ecx
mov eax, 0x475160
call fcn.0040a958
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp + 8]
call fcn.00404d20
mov eax, edi
call fcn.004761fc
test al, al
je 0x474d92
lea eax, [ebp - 0x13c]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.004036a8
push pe_nt_image_headers32
lea eax, [ebp - 0x13c]
push eax
push 0
push 0
push 5
mov eax, dword [ebp - 0x10]
push eax
call sub.crypt32.dll_CertGetNameStringA
lea edx, [ebp - 0x154]
lea eax, [ebp - 0x13c]
call fcn.0040a0a4
mov edx, dword [ebp - 0x154]
mov eax, esi
call fcn.00404d20
jmp 0x474e65
mov eax, 0x800
call fcn.00402b00
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x800
xor edx, edx
push ebp
push 0x474e5e
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 0x475164
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 - 0x13c]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.004036a8
push pe_nt_image_headers32
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x1c]
push eax
push 5
call sub.crypt32.dll_CertRDNValueToStrA
push esi
lea edx, [ebp - 0x158]
lea eax, [ebp - 0x13c]
call fcn.0040a0a4
mov eax, dword [ebp - 0x158]
mov ecx, 0x7fffffff
mov edx, 3
call fcn.004051fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474e65
mov eax, dword [ebp - 0x24]
call fcn.00402b30
ret
lea eax, [ebp - 0x13c]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.004036a8
push pe_nt_image_headers32
lea eax, [ebp - 0x13c]
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 0x474f2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x418628]
call fcn.00403f10
mov ebx, eax
lea eax, [ebp - 0x15c]
lea edx, [ebp - 0x13c]
mov ecx, pe_nt_image_headers32
call fcn.00404f4c
mov edx, dword [ebp - 0x15c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea ecx, [ebp - 0x160]
mov edx, 1
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
push dword [ebp - 0x160]
push 0x475174
lea ecx, [ebp - 0x164]
mov edx, 3
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
push dword [ebp - 0x164]
mov eax, dword [ebp + 0x10]
mov edx, 3
call fcn.0040505c
mov eax, ebx
call fcn.00403f40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x474f40
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
add eax, 0x28
push eax
call sub.kernel32.dll_FileTimeToLocalFileTime
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_FileTimeToSystemTime
lea eax, [ebp - 0x168]
push eax
movzx eax, word [ebp - 0x3c]
mov dword [ebp - 0x180], eax
mov byte [ebp - 0x17c], 0
movzx eax, word [ebp - 0x3a]
mov dword [ebp - 0x178], eax
mov byte [ebp - 0x174], 0
movzx eax, word [ebp - 0x36]
mov dword [ebp - 0x170], eax
mov byte [ebp - 0x16c], 0
lea edx, [ebp - 0x180]
mov ecx, 2
mov eax, 0x475180
call fcn.0040a958
mov edx, dword [ebp - 0x168]
mov eax, dword [ebp + 0xc]
call fcn.00404d20
mov eax, dword [ebp - 0x10]
push eax
call sub.crypt32.dll_CertFreeCertificateContext
jmp 0x4750de
cmp byte [0x4ad134], 0
je 0x4750de
push esi
mov edx, ebx
mov eax, 0x475198
call fcn.004052e0
mov edx, eax
add edx, 3
jno 0x474ff1
call fcn.00403e7c
mov ecx, 0x7fffffff
mov eax, ebx
call fcn.004051fc
push esi
mov edx, dword [esi]
mov eax, 0x4751a4
call fcn.004052e0
mov ecx, eax
sub ecx, 1
jno 0x475016
call fcn.00403e7c
mov eax, dword [esi]
mov edx, 1
call fcn.004051fc
mov eax, dword [ebp + 0x10]
push eax
mov edx, ebx
mov eax, 0x4751b0
call fcn.004052e0
mov edx, eax
add edx, 2
jno 0x47503e
call fcn.00403e7c
mov ecx, 0x7fffffff
mov eax, ebx
call fcn.004051fc
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov eax, 0x4751a4
call fcn.004052e0
mov ecx, eax
sub ecx, 1
jno 0x475069
call fcn.00403e7c
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov edx, 1
call fcn.004051fc
lea eax, [ebp - 0x3c]
push eax
call sub.kernel32.dll_GetLocalTime
lea eax, [ebp - 0x184]
push eax
movzx eax, word [ebp - 0x3c]
mov dword [ebp - 0x180], eax
mov byte [ebp - 0x17c], 0
movzx eax, word [ebp - 0x3a]
mov dword [ebp - 0x178], eax
mov byte [ebp - 0x174], 0
movzx eax, word [ebp - 0x36]
mov dword [ebp - 0x170], eax
mov byte [ebp - 0x16c], 0
lea edx, [ebp - 0x180]
mov ecx, 2
mov eax, 0x475180
call fcn.0040a958
mov edx, dword [ebp - 0x184]
mov eax, dword [ebp + 0xc]
call fcn.00404d20
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 0x475131
lea eax, [ebp - 0x184]
call fcn.00404ccc
lea eax, [ebp - 0x168]
mov edx, 7
call fcn.00404cf0
lea eax, [ebp - 0x144]
mov edx, 2
call fcn.00404cf0
lea eax, [ebp - 0xc]
call fcn.004053f8
ret