Function at 0x410340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb6ac
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x4f96c0]
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 + 0x374]
push 0x4e82e0
call fcn.004018d0
push 9
lea ebx, [edi + 0x38c]
push 0x4e81d0
mov ecx, ebx
call fcn.004018d0
push 0xc
push str.FeiRar__Inc.
lea ecx, [edi + 0x3a4]
call fcn.004018d0
push 0x18
push str.https:__feirar.softbd.cn
lea ecx, [edi + 0x3bc]
call fcn.004018d0
push 0xa
lea ecx, [edi + 0x404]
push str.FeiRar.exe
call fcn.004018d0
push 0xa
push str.uninst.exe
lea ecx, [edi + 0x41c]
call fcn.004018d0
push 6
lea ecx, [edi + 0x434]
push str.FeiRar
call fcn.004018d0
lea ecx, [ebp - 0x230]
call fcn.0041f6b0
lea esi, [edi + 0x288]
mov dword [ebp - 0x264], eax
cmp esi, eax
je 0x41043a
cmp dword [esi + 0x14], 0x10
jb 0x410421
push dword [esi]
call fcn.004a8256
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.004022c0
cmp dword [ebp - 0x21c], 0x10
jb 0x410451
push dword [ebp - 0x230]
call fcn.004a8256
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 0x4e7ddc
mov edx, str.SOFTWAREFeiRar
mov ecx, reloc.WS2_32.dll_bind
call fcn.00416250
add esp, 8
mov dword [ebp - 4], 0xffffffff
test al, al
sete al
cmp dword [ebp - 0x21c], 0x10
mov byte [ebp - 0x265], al
jb 0x4104c0
push dword [ebp - 0x230]
call fcn.004a8256
mov al, byte [ebp - 0x265]
add esp, 4
lea ecx, [edi + 0x2ac]
mov byte [edi + 0x2a8], al
cmp ecx, ebx
je 0x4104da
push 0xffffffffffffffff
push 0
push ebx
call fcn.00401720
push 0
call fcn.004a87e9
add esp, 4
mov dword [edi + 0x2a0], eax
mov dword [edi + 0x2a4], edx
lea ecx, [edi + 0x2c4]
cmp dword [0x4fa71c], 0
je 0x410517
cmp ecx, 0x4fa70c
je 0x410523
push 0xffffffffffffffff
push 0
push 0x4fa70c
call fcn.00401720
jmp 0x410523
push 5
push str.blank
call fcn.004018d0
lea ecx, [ebp - 0x230]
call fcn.00403530
mov ebx, eax
lea esi, [edi + 0x2dc]
cmp esi, ebx
je 0x410563
cmp dword [esi + 0x14], 0x10
jb 0x41054a
push dword [esi]
call fcn.004a8256
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push ebx
mov byte [esi], 0
call fcn.004022c0
cmp dword [ebp - 0x21c], 0x10
jb 0x41057a
push dword [ebp - 0x230]
call fcn.004a8256
add esp, 4
push 8
push str.standard
lea ecx, [edi + 0x328]
call fcn.004018d0
push 0xd
push str.192.168.1.102
lea ecx, [edi + 0x340]
call fcn.004018d0
push 6
push str.feirar
lea ecx, [edi + 0x358]
call fcn.004018d0
lea eax, [edi + 0x404]
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_
push eax
lea ecx, [ebp - 0x230]
call fcn.00406740
mov ebx, eax
lea esi, [edi + 0x3ec]
add esp, 4
cmp esi, ebx
je 0x4105ff
cmp dword [esi + 0x14], 0x10
jb 0x4105e6
push dword [esi]
call fcn.004a8256
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push ebx
mov byte [esi], 0
call fcn.004022c0
cmp dword [ebp - 0x21c], 0x10
jb 0x410616
push dword [ebp - 0x230]
call fcn.004a8256
add esp, 4
lea eax, [edi + 0x374]
mov edx, 0x4e838c
push eax
lea ecx, [ebp - 0x230]
call fcn.00406740
mov ebx, eax
lea esi, [edi + 0x3d4]
add esp, 4
cmp esi, ebx
je 0x410665
cmp dword [esi + 0x14], 0x10
jb 0x41064c
push dword [esi]
call fcn.004a8256
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push ebx
mov byte [esi], 0
call fcn.004022c0
cmp dword [ebp - 0x21c], 0x10
jb 0x41067c
push dword [ebp - 0x230]
call fcn.004a8256
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 0x41069d
xor ecx, ecx
jmp 0x4106b5
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4106a6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [edi + 0x574]
call fcn.00408930
push 6
push str.TEMP_
lea ecx, [edi + 0x574]
call fcn.00405a50
lea ecx, [edi + 0x574]
call fcn.00403790
push str.feirar.zip
lea edx, [edi + 0x574]
lea ecx, [ebp - 0x230]
call fcn.00406830
mov ebx, eax
lea esi, [edi + 0x58c]
add esp, 4
cmp esi, ebx
je 0x410735
cmp dword [esi + 0x14], 8
jb 0x41071a
push dword [esi]
call fcn.004a8256
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.00408440
cmp dword [ebp - 0x21c], 8
jb 0x41074c
push dword [ebp - 0x230]
call fcn.004a8256
add esp, 4
lea ebx, [edi + 0x5a4]
mov ecx, ebx
call fcn.00403f80
push 0x4e7770
sub esp, 0x18
lea esi, [edi + 0x434]
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.00401720
xor edx, edx
lea ecx, [ebp - 0x260]
call fcn.004039a0
add esp, 0x18
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00406920
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00405980
cmp dword [ebp - 0x21c], 8
jb 0x4107d2
push dword [ebp - 0x230]
call fcn.004a8256
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 0x41080d
push dword [ebp - 0x260]
call fcn.004a8256
add esp, 4
push esi
mov edx, str.SOFTWARE_
lea ecx, [ebp - 0x260]
call fcn.00406740
lea esi, [edi + 0x53c]
mov dword [ebp - 0x264], eax
add esp, 4
cmp esi, eax
je 0x410860
cmp dword [esi + 0x14], 0x10
jb 0x410847
push dword [esi]
call fcn.004a8256
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.004022c0
cmp dword [ebp - 0x24c], 0x10
jb 0x410877
push dword [ebp - 0x260]
call fcn.004a8256
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 0x4108a3
mov edx, dword [esi]
jmp 0x4108a5
mov edx, esi
lea eax, [ebp - 0x248]
mov ecx, reloc.WS2_32.dll_accept
push eax
push str.InstallPath
call fcn.00416250
add esp, 8
test al, al
je 0x410938
cmp dword [ebp - 0x238], 0
je 0x410938
lea ecx, [ebp - 0x248]
call fcn.00403d70
test al, al
je 0x410938
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.00401720
xor edx, edx
lea ecx, [ebp - 0x260]
call fcn.004039a0
add esp, 0x18
mov ecx, ebx
push eax
call fcn.004053c0
cmp dword [ebp - 0x24c], 8
jb 0x410a0c
push dword [ebp - 0x260]
call fcn.004a8256
add esp, 4
jmp 0x410a0c
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.004085c0
xor edx, edx
lea ecx, [ebp - 0x260]
call fcn.00403b10
mov edi, eax
add esp, 0x18
lea eax, [ebp - 0x248]
cmp eax, edi
je 0x4109b3
cmp dword [ebp - 0x234], 0x10
jb 0x41098c
push dword [ebp - 0x248]
call fcn.004a8256
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.004022c0
cmp dword [ebp - 0x24c], 0x10
jb 0x4109ca
push dword [ebp - 0x260]
call fcn.004a8256
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.00401720
cmp dword [esi + 0x14], 0x10
jb 0x4109f8
mov esi, dword [esi]
push str.InstallPath
mov edx, esi
mov ecx, reloc.WS2_32.dll_accept
call fcn.004163c0
add esp, 0x1c
cmp dword [ebp - 0x234], 0x10
jb 0x410a23
push dword [ebp - 0x248]
call fcn.004a8256
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.004a79be
mov esp, ebp
pop ebp
ret