Function at 0x40cae0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47e97c
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x49d4b0]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x49d4b0]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov edi, ecx
push 4
lea ecx, [edi + 0x370]
push 0x48e8ac
call fcn.004070e0
push 9
lea ebx, [edi + 0x388]
push 0x48e8b4
mov ecx, ebx
call fcn.004070e0
push 0xc
push str.FeiRar__Inc.
lea ecx, [edi + 0x3a0]
call fcn.004070e0
push 0x12
push str.https:__FeiRar.com
lea ecx, [edi + 0x3b8]
call fcn.004070e0
push 0xa
lea ecx, [edi + 0x400]
push str.FeiRar.exe
call fcn.004070e0
push 0xa
push str.uninst.exe
lea ecx, [edi + 0x418]
call fcn.004070e0
push 6
lea ecx, [edi + 0x430]
push str.FeiRar
call fcn.004070e0
lea ecx, [esp + 0x1c]
call fcn.0041ad60
lea esi, [edi + 0x288]
mov dword [esp + 0x14], eax
cmp esi, eax
je 0x40cbe6
cmp dword [esi + 0x14], 0x10
jb 0x40cbcd
push dword [esi]
call fcn.0045f8c1
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push eax
mov byte [esi], 0
call fcn.00407290
cmp dword [esp + 0x30], 0x10
jb 0x40cbf9
push dword [esp + 0x1c]
call fcn.0045f8c1
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x280], 0
push eax
push 0x488c20
mov edx, str.SOFTWAREFeiRar
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.004136f0
add esp, 8
mov dword [esp + 0x280], 0xffffffff
test al, al
sete al
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x1b], al
jb 0x40cc60
push dword [esp + 0x1c]
call fcn.0045f8c1
mov al, byte [esp + 0x1f]
add esp, 4
lea ecx, [edi + 0x2ac]
mov byte [edi + 0x2a8], al
cmp ecx, ebx
je 0x40cc7a
push 0xffffffffffffffff
push 0
push ebx
call fcn.00406d70
push 0
call fcn.0045f8c6
add esp, 4
mov dword [edi + 0x2a0], eax
lea ecx, [edi + 0x2c4]
mov dword [edi + 0x2a4], edx
push 7
push str.BZD6964
call fcn.004070e0
lea ecx, [esp + 0x1c]
call fcn.00401620
mov ebx, eax
lea esi, [edi + 0x2dc]
cmp esi, ebx
je 0x40cce0
cmp dword [esi + 0x14], 0x10
jb 0x40ccc7
push dword [esi]
call fcn.0045f8c1
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push ebx
mov byte [esi], 0
call fcn.00407290
cmp dword [esp + 0x30], 0x10
jb 0x40ccf3
push dword [esp + 0x1c]
call fcn.0045f8c1
add esp, 4
push 6
push str.silent
lea ecx, [edi + 0x324]
call fcn.004070e0
push 0xd
push str.192.168.1.102
lea ecx, [edi + 0x33c]
call fcn.004070e0
push 0xc
push str.bzdownloader
lea ecx, [edi + 0x354]
call fcn.004070e0
lea eax, [edi + 0x400]
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_
push eax
lea ecx, [esp + 0x20]
call fcn.004046e0
mov ebx, eax
lea esi, [edi + 0x3e8]
add esp, 4
cmp esi, ebx
je 0x40cd76
cmp dword [esi + 0x14], 0x10
jb 0x40cd5d
push dword [esi]
call fcn.0045f8c1
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push ebx
mov byte [esi], 0
call fcn.00407290
cmp dword [esp + 0x30], 0x10
jb 0x40cd89
push dword [esp + 0x1c]
call fcn.0045f8c1
add esp, 4
lea eax, [edi + 0x370]
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push eax
lea ecx, [esp + 0x20]
call fcn.004046e0
mov ebx, eax
lea esi, [edi + 0x3d0]
add esp, 4
cmp esi, ebx
je 0x40cdd6
cmp dword [esi + 0x14], 0x10
jb 0x40cdbd
push dword [esi]
call fcn.0045f8c1
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push ebx
mov byte [esi], 0
call fcn.00407290
cmp dword [esp + 0x30], 0x10
jb 0x40cde9
push dword [esp + 0x1c]
call fcn.0045f8c1
add esp, 4
mov ecx, dword [0x4a0ed4]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
call fcn.004153e0
push dword [edi + 4]
lea esi, [edi + 0x550]
mov ecx, esi
call fcn.004154a0
test byte [esi + 0xc], 2
mov ebx, dword [sym.imp.USER32.dll_GetParent]
mov byte [esi + 0xf], 6
je 0x40ce36
push dword [esi + 4]
call ebx
push eax
mov ecx, esi
call fcn.00415720
test byte [esi + 0xc], 2
mov word [esi + 0x10], 0
je 0x40ce4f
push dword [esi + 4]
call ebx
push eax
mov ecx, esi
call fcn.00415720
test byte [esi + 0xc], 2
mov byte [esi + 0xd], 0x32
je 0x40ce66
push dword [esi + 4]
call ebx
push eax
mov ecx, esi
call fcn.00415720
push 0
push 0x1c
lea eax, [esp + 0x6c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [esp + 0x64], 0
jne 0x40ce83
xor ecx, ecx
jmp 0x40ce9f
lea ecx, [esp + 0x64]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ce90
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x68]
push eax
lea ecx, [edi + 0x570]
call fcn.00406b00
push 6
push str.TEMP_
lea ecx, [edi + 0x570]
call fcn.00403a80
lea ecx, [edi + 0x570]
call fcn.00401880
push str.feirar.zip
lea edx, [edi + 0x570]
lea ecx, [esp + 0x20]
call fcn.00404870
mov ebx, eax
lea esi, [edi + 0x588]
add esp, 4
cmp esi, ebx
je 0x40cf1b
cmp dword [esi + 0x14], 8
jb 0x40cf00
push dword [esi]
call fcn.0045f8c1
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push ebx
mov word [esi], ax
call fcn.00406610
cmp dword [esp + 0x30], 8
jb 0x40cf2e
push dword [esp + 0x1c]
call fcn.0045f8c1
add esp, 4
lea ebx, [edi + 0x5a0]
mov ecx, ebx
call fcn.00402070
push 0x488554
sub esp, 0x18
lea esi, [edi + 0x430]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push esi
mov byte [ecx], 0
call fcn.00406d70
xor edx, edx
lea ecx, [esp + 0x68]
call fcn.00401a90
add esp, 0x18
mov edx, eax
mov dword [esp + 0x284], 1
lea ecx, [esp + 0x20]
call fcn.00404960
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
mov byte [esp + 0x28c], 2
call fcn.004039b0
cmp dword [esp + 0x30], 8
jb 0x40cfb4
push dword [esp + 0x1c]
call fcn.0045f8c1
add esp, 4
xor eax, eax
mov dword [esp + 0x280], 0xffffffff
cmp dword [esp + 0x60], 8
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
jb 0x40cfe9
push dword [esp + 0x4c]
call fcn.0045f8c1
add esp, 4
push esi
mov edx, str.SOFTWARE_
lea ecx, [esp + 0x50]
call fcn.004046e0
lea esi, [edi + 0x538]
mov dword [esp + 0x18], eax
add esp, 4
cmp esi, eax
je 0x40d036
cmp dword [esi + 0x14], 0x10
jb 0x40d01d
push dword [esi]
call fcn.0045f8c1
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push eax
mov byte [esi], 0
call fcn.00407290
cmp dword [esp + 0x60], 0x10
jb 0x40d049
push dword [esp + 0x4c]
call fcn.0045f8c1
add esp, 4
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
mov dword [esp + 0x280], 3
cmp dword [esi + 0x14], 0x10
jb 0x40d073
mov edx, dword [esi]
jmp 0x40d075
mov edx, esi
lea eax, [esp + 0x34]
mov ecx, SysReAllocString
push eax
push str.InstallPath
call fcn.004136f0
add esp, 8
test al, al
je 0x40d0fa
cmp dword [esp + 0x44], 0
je 0x40d0fa
lea ecx, [esp + 0x34]
call fcn.00401e60
test al, al
je 0x40d0fa
sub esp, 0x18
lea eax, [esp + 0x4c]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00406d70
xor edx, edx
lea ecx, [esp + 0x64]
call fcn.00401a90
add esp, 0x18
mov ecx, ebx
push eax
call fcn.004034a0
cmp dword [esp + 0x60], 8
jb 0x40d1be
push dword [esp + 0x4c]
call fcn.0045f8c1
add esp, 4
jmp 0x40d1be
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push ebx
mov word [ecx], ax
call fcn.00406790
xor edx, edx
lea ecx, [esp + 0x64]
call fcn.00401c00
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2c], eax
add esp, 0x18
cmp ecx, eax
je 0x40d16b
cmp dword [esp + 0x48], 0x10
jb 0x40d14c
push dword [esp + 0x34]
call fcn.0045f8c1
mov eax, dword [esp + 0x18]
add esp, 4
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
call fcn.00407290
cmp dword [esp + 0x60], 0x10
jb 0x40d17e
push dword [esp + 0x4c]
call fcn.0045f8c1
add esp, 4
sub esp, 0x18
lea eax, [esp + 0x4c]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00406d70
cmp dword [esi + 0x14], 0x10
jb 0x40d1aa
mov esi, dword [esi]
push str.InstallPath
mov edx, esi
mov ecx, SysReAllocString
call fcn.00413860
add esp, 0x1c
push 1
lea esi, [edi + 0x158]
push str.stepTabLayout
mov ecx, esi
call fcn.0041dec0
mov dword [edi + 0x5b8], eax
test eax, eax
je 0x40d1ed
lea ecx, [eax + 0x4a0]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [edi + 0x608], eax
push 1
push str.btn_install_start
mov ecx, esi
call fcn.0041dec0
push 1
push str.btn_usercustom
mov ecx, esi
mov dword [edi + 0x5c4], eax
call fcn.0041dec0
push 1
push str.opt_usercustom
mov ecx, esi
mov dword [edi + 0x5c8], eax
call fcn.0041dec0
push 1
push str.hor_userdefine
mov ecx, esi
mov dword [edi + 0x5cc], eax
call fcn.0041dec0
push 1
push str.btn_browsepath
mov ecx, esi
mov dword [edi + 0x5d0], eax
call fcn.0041dec0
push 1
push str.btn_userprot
mov ecx, esi
mov dword [edi + 0x5d4], eax
call fcn.0041dec0
push 1
push str.edit_installpath
mov ecx, esi
mov dword [edi + 0x5c0], eax
call fcn.0041dec0
mov ecx, eax
mov dword [edi + 0x5d8], ecx
test ecx, ecx
je 0x40d28d
cmp dword [ebx + 0x14], 8
jb 0x40d287
mov ebx, dword [ebx]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x2c]
push 1
push str.tab_install_view
mov ecx, esi
call fcn.0041dec0
push 1
push str.lab_install_tip
mov ecx, esi
mov dword [edi + 0x5bc], eax
call fcn.0041dec0
push 1
push str.pro_install
mov ecx, esi
mov dword [edi + 0x5f0], eax
call fcn.0041dec0
mov dword [edi + 0x5f4], eax
test eax, eax
je 0x40d2f9
cmp dword [eax + 0x594], 0
je 0x40d2f9
cmp dword [eax + 0x590], 0
jg 0x40d2f9
cmp dword [eax + 0x58c], 0
jl 0x40d2f9
mov ecx, eax
mov dword [eax + 0x594], 0
call fcn.0042de30
push 1
push str.btn_open
mov ecx, esi
call fcn.0041dec0
push 1
push str.check_userprot
mov ecx, esi
mov dword [edi + 0x5f8], eax
call fcn.0041dec0
push 1
push str.check_desktop
mov ecx, esi
mov dword [edi + 0x5e8], eax
call fcn.0041dec0
push 1
push str.check_task
mov ecx, esi
mov dword [edi + 0x5dc], eax
call fcn.0041dec0
push 1
push str.check_program
mov ecx, esi
mov dword [edi + 0x5e0], eax
call fcn.0041dec0
push 1
push str.check_autoupdate
mov ecx, esi
mov dword [edi + 0x5e4], eax
call fcn.0041dec0
push 1
push str.check_qq
mov ecx, esi
mov dword [edi + 0x5ec], eax
call fcn.0041dec0
push 1
push str.check_cqss
mov ecx, esi
mov dword [edi + 0x5fc], eax
call fcn.0041dec0
push 0
push 0xbb8
push 0x3e8
push dword [edi + 4]
mov dword [edi + 0x600], eax
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [esp + 0x48], 0x10
jb 0x40d3c1
push dword [esp + 0x34]
call fcn.0045f8c1
add esp, 4
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0045f8b2
mov esp, ebp
pop ebp
ret