Function at 0x4a6fd0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524641
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x569564]
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 esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x454], 0
cmp dword [esi + 0x14], 2
jbe 0x4a705a
mov eax, dword [esi + 0x14]
lea ecx, [esi + 4]
push 2
add eax, 0xfffffffe
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00412dd0
mov dword [ebp - 0x454], 1
cmp dword [eax + 0x14], 8
lea ecx, [eax + 0x10]
jb 0x4a7040
mov eax, dword [eax]
push 2
push 0x536d64
push dword [ecx]
push eax
call fcn.004129e0
add esp, 0x10
test eax, eax
jne 0x4a705a
mov bl, 1
jmp 0x4a705c
xor bl, bl
test byte [ebp - 0x454], 1
je 0x4a7083
mov eax, dword [ebp - 0x43c]
cmp eax, 8
jb 0x4a7083
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.00409960
test bl, bl
je 0x4a7269
cmp dword [esi + 0xc0], 8
lea eax, [esi + 0xac]
jb 0x4a709c
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.005162f0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004e9750
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x4a70e5
mov eax, dword [esi]
jmp 0x4a70e7
mov eax, esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
cmp dword [ebp - 0x43c], 0x10
lea eax, [ebp - 0x450]
push 0
cmovae eax, dword [ebp - 0x450]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00443b88
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004e9750
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [esi + 0x14], 8
jb 0x4a7159
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x420]
push eax
call ebx
push str..dll
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a71b5
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4a71ae
push str.Install_7z
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a71ae
call eax
movzx edi, al
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x450]
push eax
call fcn.00516a00
xor eax, eax
mov dword [ebp - 0x424], 7
add esp, 4
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
cmp word [ebp - 0x218], ax
jne 0x4a71ee
xor ecx, ecx
jmp 0x4a7206
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a71f7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.00408e30
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 1
push eax
call fcn.00516970
mov eax, dword [ebp - 0x424]
add esp, 4
cmp eax, 8
jb 0x4a724a
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00409960
mov ecx, dword [ebp - 0x43c]
cmp ecx, 0x10
jb 0x4a72da
inc ecx
push ecx
push dword [ebp - 0x450]
lea ecx, [ebp - 0x450]
jmp 0x4a72d5
cmp dword [esi + 0x90], 8
lea eax, [esi + 0x7c]
jb 0x4a7277
mov eax, dword [eax]
add esi, 0xac
cmp dword [esi + 0x14], 8
jb 0x4a7287
mov ecx, dword [esi]
jmp 0x4a7289
mov ecx, esi
push 0
push eax
push ecx
call fcn.004a5f70
add esp, 0xc
mov edi, eax
cmp dword [esi + 0x14], 8
jb 0x4a729f
mov esi, dword [esi]
lea eax, [ebp - 0x438]
push esi
push eax
call fcn.005162f0
push eax
mov dword [ebp - 4], 2
call fcn.00516a00
mov eax, dword [ebp - 0x424]
add esp, 0xc
cmp eax, 0x10
jb 0x4a72da
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.0040550e
mov eax, edi
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.004ac267
mov esp, ebp
pop ebp
ret