Function at 0x40d4a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47dbac
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x49c4b0]
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 0x48d83c
call fcn.00406930
push 0xa
lea ebx, [edi + 0x388]
push 0x48d844
mov ecx, ebx
call fcn.00406930
push 0xc
push str.FeiRar__Inc.
lea ecx, [edi + 0x3a0]
call fcn.00406930
push 0x12
push str.https:__FeiRar.com
lea ecx, [edi + 0x3b8]
call fcn.00406930
push 0xa
lea ecx, [edi + 0x400]
push str.FeiRar.exe
call fcn.00406930
push 0xa
push str.uninst.exe
lea ecx, [edi + 0x418]
call fcn.00406930
push 6
lea ecx, [edi + 0x430]
push str.FeiRar
call fcn.00406930
lea ecx, [ebp - 0x230]
call fcn.00419fb0
lea esi, [edi + 0x288]
mov dword [ebp - 0x264], eax
cmp esi, eax
je 0x40d59a
cmp dword [esi + 0x14], 0x10
jb 0x40d581
push dword [esi]
call fcn.0045eb11
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.00406ae0
cmp dword [ebp - 0x21c], 0x10
jb 0x40d5b1
push dword [ebp - 0x230]
call fcn.0045eb11
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 0x487bb4
mov edx, str.SOFTWAREFeiRar
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.004129b0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test al, al
sete al
cmp dword [ebp - 0x21c], 0x10
mov byte [ebp - 0x265], al
jb 0x40d620
push dword [ebp - 0x230]
call fcn.0045eb11
mov al, byte [ebp - 0x265]
add esp, 4
lea ecx, [edi + 0x2ac]
mov byte [edi + 0x2a8], al
cmp ecx, ebx
je 0x40d63a
push 0xffffffffffffffff
push 0
push ebx
call fcn.004065c0
push 0
call fcn.0045eb16
add esp, 4
mov dword [edi + 0x2a0], eax
lea ecx, [edi + 0x2c4]
mov dword [edi + 0x2a4], edx
push 6
push str.feirar
call fcn.00406930
lea ecx, [ebp - 0x230]
call fcn.00401620
mov ebx, eax
lea esi, [edi + 0x2dc]
cmp esi, ebx
je 0x40d6a2
cmp dword [esi + 0x14], 0x10
jb 0x40d689
push dword [esi]
call fcn.0045eb11
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push ebx
mov byte [esi], 0
call fcn.00406ae0
cmp dword [ebp - 0x21c], 0x10
jb 0x40d6b9
push dword [ebp - 0x230]
call fcn.0045eb11
add esp, 4
push 8
push str.standard
lea ecx, [edi + 0x324]
call fcn.00406930
push 0xd
push str.192.168.1.102
lea ecx, [edi + 0x33c]
call fcn.00406930
push 6
push str.feirar
lea ecx, [edi + 0x354]
call fcn.00406930
lea eax, [edi + 0x400]
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_
push eax
lea ecx, [ebp - 0x230]
call fcn.00404040
mov ebx, eax
lea esi, [edi + 0x3e8]
add esp, 4
cmp esi, ebx
je 0x40d73e
cmp dword [esi + 0x14], 0x10
jb 0x40d725
push dword [esi]
call fcn.0045eb11
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push ebx
mov byte [esi], 0
call fcn.00406ae0
cmp dword [ebp - 0x21c], 0x10
jb 0x40d755
push dword [ebp - 0x230]
call fcn.0045eb11
add esp, 4
lea eax, [edi + 0x370]
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push eax
lea ecx, [ebp - 0x230]
call fcn.00404040
mov ebx, eax
lea esi, [edi + 0x3d0]
add esp, 4
cmp esi, ebx
je 0x40d7a4
cmp dword [esi + 0x14], 0x10
jb 0x40d78b
push dword [esi]
call fcn.0045eb11
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push ebx
mov byte [esi], 0
call fcn.00406ae0
cmp dword [ebp - 0x21c], 0x10
jb 0x40d7bb
push dword [ebp - 0x230]
call fcn.0045eb11
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 0x40d7dc
xor ecx, ecx
jmp 0x40d7f4
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d7e5
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [edi + 0x540]
call fcn.00406350
push 6
push str.TEMP_
lea ecx, [edi + 0x540]
call fcn.00403ad0
lea ecx, [edi + 0x540]
call fcn.00401880
push ecx
lea edx, [edi + 0x540]
lea ecx, [ebp - 0x230]
call fcn.004041d0
mov ebx, eax
lea esi, [edi + 0x558]
add esp, 4
cmp esi, ebx
je 0x40d870
cmp dword [esi + 0x14], 8
jb 0x40d855
push dword [esi]
call fcn.0045eb11
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.00405e60
cmp dword [ebp - 0x21c], 8
jb 0x40d887
push dword [ebp - 0x230]
call fcn.0045eb11
add esp, 4
lea ebx, [edi + 0x570]
mov ecx, ebx
call fcn.00402070
push 0x487534
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.004065c0
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.00404290
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00403bb0
cmp dword [ebp - 0x21c], 8
jb 0x40d90d
push dword [ebp - 0x230]
call fcn.0045eb11
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 0x40d948
push dword [ebp - 0x260]
call fcn.0045eb11
add esp, 4
push esi
mov edx, str.SOFTWARE_
lea ecx, [ebp - 0x260]
call fcn.00404040
lea esi, [edi + 0x508]
mov dword [ebp - 0x264], eax
add esp, 4
cmp esi, eax
je 0x40d99b
cmp dword [esi + 0x14], 0x10
jb 0x40d982
push dword [esi]
call fcn.0045eb11
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.00406ae0
cmp dword [ebp - 0x24c], 0x10
jb 0x40d9b2
push dword [ebp - 0x260]
call fcn.0045eb11
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 0x40d9de
mov edx, dword [esi]
jmp 0x40d9e0
mov edx, esi
lea eax, [ebp - 0x248]
mov ecx, SysReAllocString
push eax
push str.InstallPath
call fcn.004129b0
add esp, 8
test al, al
je 0x40da73
cmp dword [ebp - 0x238], 0
je 0x40da73
lea ecx, [ebp - 0x248]
call fcn.00401e60
test al, al
je 0x40da73
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.004065c0
xor edx, edx
lea ecx, [ebp - 0x260]
call fcn.00401a90
add esp, 0x18
mov ecx, ebx
push eax
call fcn.00403020
cmp dword [ebp - 0x24c], 8
jb 0x40db47
push dword [ebp - 0x260]
call fcn.0045eb11
add esp, 4
jmp 0x40db47
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.00405fe0
xor edx, edx
lea ecx, [ebp - 0x260]
call fcn.00401c00
mov edi, eax
add esp, 0x18
lea eax, [ebp - 0x248]
cmp eax, edi
je 0x40daee
cmp dword [ebp - 0x234], 0x10
jb 0x40dac7
push dword [ebp - 0x248]
call fcn.0045eb11
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.00406ae0
cmp dword [ebp - 0x24c], 0x10
jb 0x40db05
push dword [ebp - 0x260]
call fcn.0045eb11
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.004065c0
cmp dword [esi + 0x14], 0x10
jb 0x40db33
mov esi, dword [esi]
push str.InstallPath
mov edx, esi
mov ecx, SysReAllocString
call fcn.00412ab0
add esp, 0x1c
cmp dword [ebp - 0x234], 0x10
jb 0x40db5e
push dword [ebp - 0x248]
call fcn.0045eb11
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.0045eb02
mov esp, ebp
pop ebp
ret