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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511dac
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x5524b4]
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 + 0xd0], 2
jbe 0x452083
mov eax, dword [esi + 0xd0]
lea ecx, [esi + 0xc0]
push 2
add eax, 0xfffffffe
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.00415aa0
mov dword [ebp - 0x454], 1
cmp dword [eax + 0x14], 8
lea ecx, [eax + 0x10]
jb 0x452069
mov eax, dword [eax]
push 2
push 0x51f610
push dword [ecx]
push eax
call fcn.00415720
add esp, 0x10
test eax, eax
jne 0x452083
mov bl, 1
jmp 0x452085
xor bl, bl
test byte [ebp - 0x454], 1
je 0x4520ac
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x4520ac
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00408870
test bl, bl
je 0x4522b0
cmp dword [esi + 0xa4], 8
lea eax, [esi + 0x90]
jb 0x4520c5
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.004024f0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004ab2f0
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add esi, 0xc0
cmp dword [esi + 0x14], 8
jb 0x452111
mov eax, dword [esi]
jmp 0x452113
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 - 0x424], 0x10
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00418220
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004ab2f0
add esp, 0x14
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 0x452183
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 0x4521df
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4521d8
push str.Install_7z
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4521d8
call eax
movzx edi, al
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x438]
push eax
call fcn.00401b50
xor eax, eax
mov dword [ebp - 0x43c], 7
add esp, 4
mov dword [ebp - 0x440], 0
mov word [ebp - 0x450], ax
cmp word [ebp - 0x218], ax
jne 0x452218
xor ecx, ecx
jmp 0x452230
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452221
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x450]
call fcn.004079e0
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 1
push eax
call fcn.00401c40
mov eax, dword [ebp - 0x43c]
add esp, 4
cmp eax, 8
jb 0x452274
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.00408870
mov ecx, dword [ebp - 0x424]
cmp ecx, 0x10
jb 0x452292
inc ecx
push ecx
push dword [ebp - 0x438]
lea ecx, [ebp - 0x438]
call fcn.004092a0
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.004a4bd0
mov esp, ebp
pop ebp
ret
push esi
call fcn.00452860
add esp, 4
test eax, eax
je 0x452292
push esi
call fcn.004523a0
add esp, 4
test eax, eax
jne 0x452330
cmp dword [esi + 0x10c], 8
lea eax, [esi + 0xf8]
jb 0x4522db
mov eax, dword [eax]
add esi, 0x90
cmp dword [esi + 0x14], 8
jb 0x4522eb
mov ecx, dword [esi]
jmp 0x4522ed
mov ecx, esi
push 0
push eax
push ecx
call fcn.004504b0
add esp, 0xc
mov edi, eax
cmp dword [esi + 0x14], 8
jb 0x452303
mov esi, dword [esi]
lea eax, [ebp - 0x438]
push esi
push eax
call fcn.004024f0
push eax
mov dword [ebp - 4], 2
call fcn.00401b50
add esp, 0xc
lea ecx, [ebp - 0x438]
call fcn.00408cf0
jmp 0x452292
push esi
call fcn.00452600
add esp, 4
test eax, eax
jne 0x452292
cmp dword [0x556e04], 0x10
mov eax, 0x556df0
cmovae eax, dword [0x556df0]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00402620
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 8
mov dword [ebp - 4], 3
jb 0x452375
mov edx, dword [edx]
lea eax, [esi + 0xf8]
push eax
lea ecx, [esi + 0x90]
push ecx
push edx
call fcn.004505b0
add esp, 0xc
lea ecx, [ebp - 0x450]
mov esi, eax
call fcn.00408940
mov eax, esi
jmp 0x452294