Function at 0x100052af
Capabilities:
Get common file path

Disassembly:
push 0x388
mov eax, 0x100a1a3e
call fcn.10078d8e
mov esi, ecx
mov dword [ebp - 0x314], esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x254]
xor ebx, ebx
mov dword [ebp - 0x310], eax
push ebx
mov dword [ebp - 0x254], ebx
push 0x100a667c
mov dword [ebp - 0x318], eax
mov byte [esi + 4], bl
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], 0xf
mov byte [ebp - 0x254], bl
call fcn.10008930
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
call dword [eax + 8]
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esi + 0x120]
mov ecx, 0x100ccb00
mov eax, dword [eax]
add eax, 0x168
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.10008d87
lea eax, [ebp - 0x284]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.10001fb9
add esp, 0xc
cmp dword [ebp - 0x228], 8
lea ecx, [ebp - 0x2fc]
push ebx
push ecx
lea ecx, [ebp - 0x300]
mov byte [ebp - 4], 3
push ecx
push ebx
push ebx
push ebx
push ebx
push 2
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x300], ebx
cmovae eax, dword [ebp - 0x23c]
push 0x400
push eax
push 1
mov dword [ebp - 0x2fc], ebx
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
mov esi, dword [sym.imp.CRYPT32.dll_CryptMsgGetParam]
lea eax, [ebp - 0x304]
push eax
push ebx
push ebx
push 6
push dword [ebp - 0x2fc]
call esi
push dword [ebp - 0x304]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call ebx
lea ecx, [ebp - 0x304]
mov dword [ebp - 0x2f8], eax
push ecx
push eax
xor edi, edi
push edi
push 6
push dword [ebp - 0x2fc]
call esi
mov edx, dword [ebp - 0x2f8]
push edi
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x2d8], ecx
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x2f0], eax
lea eax, [ebp - 0x2f4]
push eax
push 0xb0000
push edi
push 0x10001
push dword [ebp - 0x300]
mov dword [ebp - 0x2ec], ecx
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
push edi
push edi
push edi
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CertGetNameStringW]
push 4
push eax
mov dword [ebp - 0x224], eax
call edi
mov esi, eax
lea eax, [esi + esi]
push eax
push 0x40
call ebx
push esi
push eax
xor ebx, ebx
mov dword [ebp - 0x30c], eax
push ebx
push ebx
push 4
push dword [ebp - 0x224]
call edi
mov esi, dword [ebp - 0x314]
mov ecx, 0x100ccb00
mov eax, dword [esi + 0x120]
mov eax, dword [eax]
add eax, 0x1e4
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.10008d87
mov edi, dword [ebp - 0x30c]
lea ecx, [ebp - 0x26c]
push edi
mov byte [ebp - 4], 4
call fcn.10007499
mov byte [ebp - 0x21d], al
test al, al
jne 0x1000559f
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x334]
push str.Fallback_verification_failed_..._expected:_
push eax
call fcn.10001fb9
add esp, 0xc
push 0x100a6ad4
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.1000888a
push eax
lea ecx, [ebp - 0x37c]
call fcn.10003775
push edi
lea ecx, [ebp - 0x37c]
mov byte [ebp - 4], 6
call fcn.1000888a
push eax
lea ecx, [ebp - 0x364]
call fcn.10003775
push 0x100a6ad0
lea ecx, [ebp - 0x364]
mov byte [ebp - 4], 7
call fcn.1000888a
push eax
lea ecx, [ebp - 0x34c]
call fcn.10003775
lea eax, [ebp - 0x34c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x394]
mov ecx, 0x100ccb00
push eax
call fcn.10009908
lea ecx, [ebp - 0x254]
cmp ecx, eax
je 0x10005564
mov byte [ebp - 0x30c], bl
push dword [ebp - 0x30c]
push eax
call fcn.10007c49
lea ecx, [ebp - 0x394]
call fcn.100084f5
lea ecx, [ebp - 0x34c]
call fcn.1000851b
lea ecx, [ebp - 0x364]
call fcn.1000851b
lea ecx, [ebp - 0x37c]
call fcn.1000851b
lea ecx, [ebp - 0x334]
call fcn.1000851b
mov byte [esi + 4], 1
mov eax, dword [ebp - 0x2f8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x100055bd
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
cmp dword [ebp - 0x300], 0
je 0x100055d3
push ebx
push dword [ebp - 0x300]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
cmp dword [ebp - 0x2fc], 0
je 0x100055e8
push dword [ebp - 0x2fc]
call dword [sym.imp.CRYPT32.dll_CryptMsgClose]
lea ecx, [ebp - 0x26c]
call fcn.1000851b
lea ecx, [ebp - 0x23c]
call fcn.1000851b
lea ecx, [ebp - 0x284]
call fcn.1000851b
mov esi, dword [ebp - 0x310]
jmp 0x10005709
lea eax, [ebp - 0x254]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x21d]
mov ecx, esi
push eax
call fcn.10001a01
mov eax, dword [ebp - 0x240]
cmp eax, 0x10
jb 0x10005770
mov ecx, dword [ebp - 0x254]
inc eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x2f8], ecx
cmp eax, 0x1000
jb 0x10005767
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x2f8]
push eax
call fcn.10006abc
mov eax, dword [ebp - 0x224]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2f8]
push eax
push ecx
call fcn.1007879d
pop ecx
pop ecx
mov eax, esi
call fcn.10078ce0
ret 4