Function at 0x40de30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47eaac
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x49d4b0]
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
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, [ebp - 0x230]
call fcn.0041ad60
lea esi, [edi + 0x288]
mov dword [ebp - 0x264], eax
cmp esi, eax
je 0x40df2a
cmp dword [esi + 0x14], 0x10
jb 0x40df11
push dword [esi]
call fcn.0045f8c1
mov eax, dword [ebp - 0x264]
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 [ebp - 0x21c], 0x10
jb 0x40df41
push dword [ebp - 0x230]
call fcn.0045f8c1
add esp, 4
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
push 0x488c20
mov edx, str.SOFTWAREFeiRar
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.004136f0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test al, al
sete al
cmp dword [ebp - 0x21c], 0x10
mov byte [ebp - 0x265], al
jb 0x40dfb0
push dword [ebp - 0x230]
call fcn.0045f8c1
mov al, byte [ebp - 0x265]
add esp, 4
lea ecx, [edi + 0x2ac]
mov byte [edi + 0x2a8], al
cmp ecx, ebx
je 0x40dfca
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, [ebp - 0x230]
call fcn.00401620
mov ebx, eax
lea esi, [edi + 0x2dc]
cmp esi, ebx
je 0x40e032
cmp dword [esi + 0x14], 0x10
jb 0x40e019
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 [ebp - 0x21c], 0x10
jb 0x40e049
push dword [ebp - 0x230]
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, [ebp - 0x230]
call fcn.004046e0
mov ebx, eax
lea esi, [edi + 0x3e8]
add esp, 4
cmp esi, ebx
je 0x40e0ce
cmp dword [esi + 0x14], 0x10
jb 0x40e0b5
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 [ebp - 0x21c], 0x10
jb 0x40e0e5
push dword [ebp - 0x230]
call fcn.0045f8c1
add esp, 4
lea eax, [edi + 0x370]
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push eax
lea ecx, [ebp - 0x230]
call fcn.004046e0
mov ebx, eax
lea esi, [edi + 0x3d0]
add esp, 4
cmp esi, ebx
je 0x40e134
cmp dword [esi + 0x14], 0x10
jb 0x40e11b
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 [ebp - 0x21c], 0x10
jb 0x40e14b
push dword [ebp - 0x230]
call fcn.0045f8c1
add esp, 4
push 0
push 0x1c
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x218], 0
jne 0x40e16c
xor ecx, ecx
jmp 0x40e184
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e175
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
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, [ebp - 0x230]
call fcn.00404870
mov ebx, eax
lea esi, [edi + 0x588]
add esp, 4
cmp esi, ebx
je 0x40e204
cmp dword [esi + 0x14], 8
jb 0x40e1e9
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 [ebp - 0x21c], 8
jb 0x40e21b
push dword [ebp - 0x230]
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, [ebp - 0x260]
call fcn.00401a90
add esp, 0x18
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00404960
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004039b0
cmp dword [ebp - 0x21c], 8
jb 0x40e2a1
push dword [ebp - 0x230]
call fcn.0045f8c1
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24c], 8
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jb 0x40e2dc
push dword [ebp - 0x260]
call fcn.0045f8c1
add esp, 4
push esi
mov edx, str.SOFTWARE_
lea ecx, [ebp - 0x260]
call fcn.004046e0
lea esi, [edi + 0x538]
mov dword [ebp - 0x264], eax
add esp, 4
cmp esi, eax
je 0x40e32f
cmp dword [esi + 0x14], 0x10
jb 0x40e316
push dword [esi]
call fcn.0045f8c1
mov eax, dword [ebp - 0x264]
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 [ebp - 0x24c], 0x10
jb 0x40e346
push dword [ebp - 0x260]
call fcn.0045f8c1
add esp, 4
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x238], 0
mov byte [ebp - 0x248], 0
mov dword [ebp - 4], 3
cmp dword [esi + 0x14], 0x10
jb 0x40e372
mov edx, dword [esi]
jmp 0x40e374
mov edx, esi
lea eax, [ebp - 0x248]
mov ecx, SysReAllocString
push eax
push str.InstallPath
call fcn.004136f0
add esp, 8
test al, al
je 0x40e407
cmp dword [ebp - 0x238], 0
je 0x40e407
lea ecx, [ebp - 0x248]
call fcn.00401e60
test al, al
je 0x40e407
sub esp, 0x18
lea eax, [ebp - 0x248]
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, [ebp - 0x260]
call fcn.00401a90
add esp, 0x18
mov ecx, ebx
push eax
call fcn.004034a0
cmp dword [ebp - 0x24c], 8
jb 0x40e4db
push dword [ebp - 0x260]
call fcn.0045f8c1
add esp, 4
jmp 0x40e4db
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, [ebp - 0x260]
call fcn.00401c00
mov edi, eax
add esp, 0x18
lea eax, [ebp - 0x248]
cmp eax, edi
je 0x40e482
cmp dword [ebp - 0x234], 0x10
jb 0x40e45b
push dword [ebp - 0x248]
call fcn.0045f8c1
add esp, 4
push edi
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x238], 0
mov byte [ebp - 0x248], 0
call fcn.00407290
cmp dword [ebp - 0x24c], 0x10
jb 0x40e499
push dword [ebp - 0x260]
call fcn.0045f8c1
add esp, 4
sub esp, 0x18
lea eax, [ebp - 0x248]
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 0x40e4c7
mov esi, dword [esi]
push str.InstallPath
mov edx, esi
mov ecx, SysReAllocString
call fcn.00413860
add esp, 0x1c
cmp dword [ebp - 0x234], 0x10
jb 0x40e4f2
push dword [ebp - 0x248]
call fcn.0045f8c1
add esp, 4
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.0045f8b2
mov esp, ebp
pop ebp
ret