Function at 0x46e120
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x2f
push 0
push 0
dec ecx
jne 0x46e129
push ecx
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 0x46e609
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 1
lea eax, [ebp - 0x13c]
mov ecx, 0x46e624
mov edx, ebx
call fcn.00404a7c
mov edx, dword [ebp - 0x13c]
lea eax, [ebp - 0xc]
call fcn.00404fd4
mov eax, 1
mov edx, dword [ebp - 0xc]
dec eax
test edx, edx
je 0x46e184
cmp eax, dword [edx - 4]
jb 0x46e189
call fcn.00403960
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 0x46e4aa
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 0x46e5bd
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x14c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov edx, 8
call fcn.00408c84
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x148], eax
mov byte [ebp - 0x144], 0xb
lea edx, [ebp - 0x148]
xor ecx, ecx
mov eax, 0x46e63c
call fcn.00409ab4
mov edx, dword [ebp - 0x140]
mov eax, dword [ebp + 8]
call fcn.004047b4
mov eax, edi
call fcn.0046f6c4
test al, al
je 0x46e277
lea eax, [ebp - 0x138]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.004031c4
push pe_nt_image_headers32
lea eax, [ebp - 0x138]
push eax
push 0
push 0
push 5
mov eax, dword [ebp - 0x10]
push eax
call sub.crypt32.dll_CertGetNameStringA
lea edx, [ebp - 0x150]
lea eax, [ebp - 0x138]
call fcn.004095c4
mov edx, dword [ebp - 0x150]
mov eax, esi
call fcn.004047b4
jmp 0x46e344
mov eax, 0x800
call fcn.0040270c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x800
xor edx, edx
push ebp
push 0x46e33d
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp - 0x20]
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 - 0x20]
push eax
push 0x46e640
call sub.crypt32.dll_CertFindRDNAttr
mov edx, dword [eax + 8]
mov dword [ebp - 0x18], edx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x138]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.004031c4
push pe_nt_image_headers32
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x18]
push eax
push 5
call sub.crypt32.dll_CertRDNValueToStrA
push esi
lea edx, [ebp - 0x154]
lea eax, [ebp - 0x138]
call fcn.004095c4
mov eax, dword [ebp - 0x154]
mov ecx, 0x7fffffff
mov edx, 3
call fcn.00404c90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e344
mov eax, dword [ebp - 0x20]
call fcn.0040272c
ret
lea eax, [ebp - 0x138]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.004031c4
push pe_nt_image_headers32
lea eax, [ebp - 0x138]
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 0x46e40d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x413858]
call fcn.004039f8
mov ebx, eax
lea eax, [ebp - 0x158]
lea edx, [ebp - 0x138]
mov ecx, pe_nt_image_headers32
call fcn.004049e0
mov edx, dword [ebp - 0x158]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea ecx, [ebp - 0x15c]
mov edx, 1
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
push dword [ebp - 0x15c]
push 0x46e650
lea ecx, [ebp - 0x160]
mov edx, 3
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
push dword [ebp - 0x160]
mov eax, dword [ebp + 0x10]
mov edx, 3
call fcn.00404af0
mov eax, ebx
call fcn.00403a28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46e41f
lea eax, [ebp - 0x28]
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 - 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_FileTimeToSystemTime
lea eax, [ebp - 0x164]
push eax
movzx eax, word [ebp - 0x38]
mov dword [ebp - 0x17c], eax
mov byte [ebp - 0x178], 0
movzx eax, word [ebp - 0x36]
mov dword [ebp - 0x174], eax
mov byte [ebp - 0x170], 0
movzx eax, word [ebp - 0x32]
mov dword [ebp - 0x16c], eax
mov byte [ebp - 0x168], 0
lea edx, [ebp - 0x17c]
mov ecx, 2
mov eax, 0x46e65c
call fcn.00409ab4
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp + 0xc]
call fcn.004047b4
mov eax, dword [ebp - 0x10]
push eax
call sub.crypt32.dll_CertFreeCertificateContext
jmp 0x46e5bd
cmp byte [0x47a0c4], 0
je 0x46e5bd
push esi
mov edx, ebx
mov eax, 0x46e674
call fcn.00404d74
mov edx, eax
add edx, 3
jno 0x46e4d0
call fcn.00403968
mov ecx, 0x7fffffff
mov eax, ebx
call fcn.00404c90
push esi
mov edx, dword [esi]
mov eax, 0x46e680
call fcn.00404d74
mov ecx, eax
sub ecx, 1
jno 0x46e4f5
call fcn.00403968
mov eax, dword [esi]
mov edx, 1
call fcn.00404c90
mov eax, dword [ebp + 0x10]
push eax
mov edx, ebx
mov eax, 0x46e68c
call fcn.00404d74
mov edx, eax
add edx, 2
jno 0x46e51d
call fcn.00403968
mov ecx, 0x7fffffff
mov eax, ebx
call fcn.00404c90
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov eax, 0x46e680
call fcn.00404d74
mov ecx, eax
sub ecx, 1
jno 0x46e548
call fcn.00403968
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov edx, 1
call fcn.00404c90
lea eax, [ebp - 0x38]
push eax
call sub.kernel32.dll_GetLocalTime
lea eax, [ebp - 0x180]
push eax
movzx eax, word [ebp - 0x38]
mov dword [ebp - 0x17c], eax
mov byte [ebp - 0x178], 0
movzx eax, word [ebp - 0x36]
mov dword [ebp - 0x174], eax
mov byte [ebp - 0x170], 0
movzx eax, word [ebp - 0x32]
mov dword [ebp - 0x16c], eax
mov byte [ebp - 0x168], 0
lea edx, [ebp - 0x17c]
mov ecx, 2
mov eax, 0x46e65c
call fcn.00409ab4
mov edx, dword [ebp - 0x180]
mov eax, dword [ebp + 0xc]
call fcn.004047b4
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 0x46e610
lea eax, [ebp - 0x180]
call fcn.00404760
lea eax, [ebp - 0x164]
mov edx, 7
call fcn.00404784
lea eax, [ebp - 0x140]
mov edx, 2
call fcn.00404784
lea eax, [ebp - 0xc]
call fcn.00404e78
ret