Function at 0x4aa670
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579845
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x5f7448]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x170], edi
movq xmm0, qword [str.CertsIE.dat]
mov eax, dword [0x58b598]
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x13c], 0xf
mov dword [ebp - 0x140], 0
mov byte [ebp - 0x150], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x120]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [ebp - 0x120], 0
jne 0x4aa710
xor ecx, ecx
jmp 0x4aa729
lea ecx, [ebp - 0x120]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4aa720
sub ecx, edx
push ecx
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x150]
call fcn.004059b0
cmp byte [ebp - 0x1c], 0
jne 0x4aa746
xor ecx, ecx
jmp 0x4aa759
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4aa750
sub ecx, edx
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x150]
call fcn.00405750
cmp dword [ebp - 0x13c], 0x10
lea eax, [ebp - 0x150]
cmovae eax, dword [ebp - 0x150]
push 0x58b59c
push eax
call fcn.004b22ab
mov ebx, eax
add esp, 8
mov dword [ebp - 0x16c], ebx
test ebx, ebx
jne 0x4aa7d1
push 0x2f
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
push str.CCertManager::LoadIEStore___Failed_to_open_file
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x124], 0xf
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x138], al
call fcn.004059b0
mov byte [ebp - 4], 1
jmp 0x4aa801
push str.ROOT
push 0
call dword [sym.imp.CRYPT32.dll_CertOpenSystemStoreA]
mov esi, eax
test esi, esi
jne 0x4aa84f
push ebx
call fcn.004ad256
add esp, 4
lea ecx, [ebp - 0x138]
push str.CCertManager::LoadIEStore___Failed_to_open_store
call fcn.00405090
mov byte [ebp - 4], 2
lea eax, [ebp - 0x138]
push 1
push eax
call fcn.00448660
add esp, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x124], 0x10
jb 0x4aa82d
push dword [ebp - 0x138]
call fcn.004ad196
add esp, 4
mov byte [ebp - 0x138], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0xf
xor bl, bl
jmp 0x4aab05
lea ecx, [ebp - 0x15c]
mov byte [ebp - 0x151], 1
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
call fcn.0043b0a0
mov dword [ebp - 0x15c], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x151]
push eax
push ebx
push esi
mov ecx, edi
call fcn.004aaeb0
push 0
push esi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0
mov byte [ebp - 4], 8
push 0
lea eax, [ebp - 0x12c]
push eax
mov ecx, edi
call fcn.004a9dc0
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x168]
call fcn.0042c580
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x4aa92d
push dword [ebp - 0x128]
lea ecx, [ebp - 0x12c]
push eax
call fcn.0040c6a0
push dword [ebp - 0x12c]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov ecx, dword [ebp - 0x164]
mov esi, dword [ebp - 0x168]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
je 0x4aaa48
push 0xffffffffffffffff
push 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
push esi
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x124], 0xf
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x138], 0
call fcn.00405880
mov byte [ebp - 4], 0xa
push 5
push str.Root
lea ecx, [ebp - 0x138]
call fcn.00405750
cmp dword [ebp - 0x124], 0x10
lea eax, [ebp - 0x138]
cmovae eax, dword [ebp - 0x138]
push eax
push 0x60000
push 0
push 0
push 9
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov ebx, eax
test ebx, ebx
je 0x4aa9fc
mov ecx, dword [ebp - 0x170]
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x151]
push eax
push dword [ebp - 0x16c]
push ebx
call fcn.004aaeb0
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov byte [ebp - 4], 8
cmp dword [ebp - 0x124], 0x10
jb 0x4aaa17
push dword [ebp - 0x138]
call fcn.004ad196
add esp, 4
add esi, 0x18
mov dword [ebp - 0x124], 0xf
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x138], 0
dec edi
jne 0x4aa952
mov ebx, dword [ebp - 0x16c]
mov esi, dword [ebp - 0x168]
push ebx
call fcn.004ad256
add esp, 4
lea eax, [ebp - 0x150]
push eax
push 0
push 0
call fcn.004a5c80
add esp, 8
mov ecx, eax
call fcn.004a61d0
test al, al
je 0x4aaa91
lea eax, [ebp - 0x150]
push eax
push 1
push 0
call fcn.004a5c80
add esp, 8
mov ecx, eax
call fcn.004a61d0
test al, al
je 0x4aaa91
mov bl, 1
jmp 0x4aaa93
xor bl, bl
mov byte [ebp - 4], 7
test esi, esi
je 0x4aaad4
push dword [ebp - 0x164]
lea ecx, [ebp - 0x168]
push esi
call fcn.0040c6a0
push esi
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x15c]
push eax
push dword [eax]
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x15c]
call fcn.004a78c0
mov byte [ebp - 4], 0
push dword [ebp - 0x15c]
call fcn.004ad196
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x13c], 0x10
jb 0x4aab23
push dword [ebp - 0x150]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x13c], 0xf
mov dword [ebp - 0x140], 0
mov byte [ebp - 0x150], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004adbd4
mov esp, ebp
pop ebp
ret