Function at 0x4085c0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x683cc4
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x468
mov eax, dword [0x748068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x450], edi
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x45c], eax
xor eax, eax
push 0xa
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
push str.2345PCSafe
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 7
mov word [ebp - 0x448], ax
call fcn.00405ec0
lea esi, [edi + 0x2a4]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x448]
cmp esi, eax
je 0x408688
cmp dword [ebp - 0x434], 8
mov ecx, esi
push dword [ebp - 0x438]
cmovae eax, dword [ebp - 0x448]
push eax
call fcn.00405ec0
lea ecx, [ebp - 0x448]
mov dword [ebp - 4], 1
call fcn.00405e50
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.004326e0
test al, al
je 0x4087fb
lea eax, [ebp - 0x474]
mov ecx, esi
push eax
call fcn.00432bf0
mov dword [ebp - 0x44c], eax
lea esi, [edi + 0x2bc]
mov dword [ebp - 4], 5
cmp esi, eax
je 0x408705
mov ecx, esi
call fcn.00405e50
mov eax, dword [ebp - 0x44c]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x474]
mov dword [ebp - 4], 6
call fcn.00405e50
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [esi + 0x10]
dec ecx
mov dword [esi + 0x10], ecx
cmp dword [esi + 0x14], 8
jb 0x40872f
mov eax, dword [esi]
xor edx, edx
push ecx
mov word [eax + ecx*2], dx
mov ecx, esi
push 0x6ccbc0
call fcn.0040c960
xor ecx, ecx
mov dword [ebp - 0x438], 0
cmp dword [esi + 0x10], eax
mov dword [ebp - 0x434], 0
cmovb eax, dword [esi + 0x10]
cmp dword [esi + 0x14], 8
mov word [ebp - 0x448], cx
mov ecx, esi
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 7
jb 0x408784
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [ebp - 0x448]
call fcn.00405ec0
lea eax, [ebp - 0x448]
mov dword [ebp - 4], 0xa
cmp esi, eax
je 0x4087dd
mov ecx, esi
call fcn.00405e50
movups xmm0, xmmword [ebp - 0x448]
xor eax, eax
mov word [ebp - 0x448], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x438]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 7
lea ecx, [ebp - 0x448]
mov dword [ebp - 4], 0xb
call fcn.00405e50
mov dword [ebp - 4], 0xffffffff
jmp 0x408982
push 0x400
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.00652810
add esp, 0xc
lea eax, [ebp - 0x418]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x408970
xor eax, eax
mov dword [ebp - 0x420], 0
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x420], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x41c], 7
mov word [ebp - 0x430], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408866
sub ecx, edx
lea eax, [ebp - 0x418]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x430]
call fcn.00405ec0
mov dword [ebp - 4], 0xf
lea ecx, [ebp - 0x448]
push 0x13
xor eax, eax
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
push str.2345Soft2345PCSafe
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 7
mov word [ebp - 0x448], ax
call fcn.00405ec0
lea eax, [ebp - 0x448]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x474]
push eax
call fcn.004354c0
add esp, 0xc
mov dword [ebp - 0x44c], eax
lea esi, [edi + 0x2bc]
mov byte [ebp - 4], 0x11
cmp esi, eax
je 0x408937
mov ecx, esi
call fcn.00405e50
mov eax, dword [ebp - 0x44c]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x474]
mov byte [ebp - 4], 0x12
call fcn.00405e50
lea ecx, [ebp - 0x448]
mov byte [ebp - 4], 0x16
call fcn.00405e50
lea ecx, [ebp - 0x430]
mov dword [ebp - 4], 0x1a
call fcn.00405e50
mov dword [ebp - 4], 0xffffffff
jmp 0x408982
push 0x24
lea ecx, [edi + 0x2bc]
push str.C:Program_Files2345Soft2345PCSafe
call fcn.00405ec0
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x67
push 0x400000
call esi
push 0x6f
push 0x400000
mov dword [edi + 0x494], eax
call esi
push 0x70
push 0x400000
mov dword [ebp - 0x44c], eax
call esi
push 0x72
push 0x400000
mov edi, eax
call esi
push 0x71
push 0x400000
mov dword [ebp - 0x454], eax
call esi
lea ecx, [ebp - 0x138]
mov esi, eax
call fcn.004361b0
mov edx, dword [ebp - 0x450]
cmp dword [ebp - 0x134], 0xa
mov eax, dword [ebp - 0x44c]
cmovae eax, edi
mov dword [edx + 0x498], eax
lea ecx, [edx + 0x2d4]
mov eax, dword [ebp - 0x454]
cmovae eax, esi
mov dword [edx + 0x49c], eax
lea eax, [edx + 0x2bc]
cmp ecx, eax
je 0x408a24
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x408a1b
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.00405ec0
push 0xf0
call fcn.0064fb19
mov edi, eax
add esp, 4
mov dword [ebp - 0x454], edi
push 0xf0
push 0
push edi
mov dword [ebp - 4], 0x1e
call fcn.00652810
add esp, 0xc
mov dword [edi], vtable.RC::ISimpleDownloadEvent.0
mov byte [ebp - 4], 0x1f
lea ecx, [edi + 8]
mov dword [edi], vtable.RC::RCSafeDownload.0
call fcn.0043b2b0
lea ecx, [edi + 0x90]
mov byte [ebp - 4], 0x20
call fcn.0043bb10
mov byte [ebp - 4], 0x21
lea ecx, [edi + 0xc4]
mov byte [edi + 0xc0], 0
call fcn.0043b350
lea ecx, [edi + 0xc8]
mov byte [ebp - 4], 0x22
call fcn.00438690
mov eax, dword [ebp - 0x450]
lea ecx, [ebp - 0x430]
mov byte [ebp - 4], 0x23
mov dword [edi + 0xe8], 0
mov dword [edi + 0xec], 0
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 0x2f0], edi
xor eax, eax
push eax
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0
push 0x6cbab0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 7
mov word [ebp - 0x430], ax
call fcn.00405ec0
push 0
push 1
lea eax, [ebp - 0x430]
mov dword [ebp - 4], 0x24
push eax
lea ecx, [edi + 0xc8]
call fcn.00438800
lea ecx, [ebp - 0x430]
mov dword [ebp - 4], 0x25
call fcn.00405e50
mov esi, dword [ebp - 0x450]
push dword [ebp - 0x45c]
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0xe8], esi
lea ecx, [esi + 0x88]
call fcn.00408c70
xor eax, eax
mov dword [ebp - 0x438], 0
push eax
mov dword [ebp - 0x434], 0
lea ecx, [ebp - 0x448]
push 0x6cbab0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 7
mov word [ebp - 0x448], ax
call fcn.00405ec0
mov dword [ebp - 4], 0x29
push 0
push 1
lea eax, [ebp - 0x448]
push eax
lea ecx, [esi + 0x2fc]
call fcn.00438800
lea ecx, [ebp - 0x448]
mov dword [ebp - 4], 0x2a
call fcn.00405e50
xor eax, eax
mov dword [ebp - 4], 0xffffffff
push eax
mov dword [ebp - 0x464], 0
lea ecx, [ebp - 0x474]
mov dword [ebp - 0x460], 0
push 0x6cbab0
mov dword [ebp - 0x464], 0
mov dword [ebp - 0x460], 7
mov word [ebp - 0x474], ax
call fcn.00405ec0
push 0
push 1
lea eax, [ebp - 0x474]
mov dword [ebp - 4], 0x2e
push eax
lea ecx, [esi + 0x31c]
call fcn.00438800
lea ecx, [ebp - 0x474]
mov dword [ebp - 4], 0x2f
call fcn.00405e50
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0064fb08
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4