Function at 0x679940
Capabilities:
Check if file exists
Get common file path
Get file version info
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74a270
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x857060]
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 dword [ebp - 0x2ec], ecx
xor eax, eax
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x29c], 7
mov word [ebp - 0x2b0], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x284], 7
mov word [ebp - 0x298], ax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], 7
mov word [ebp - 0x280], ax
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2b4], 7
mov word [ebp - 0x2c8], ax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 4
call fcn.00663a50
lea ecx, [ebp - 0x22c]
call fcn.0065a8b0
lea edx, [ebp - 0x298]
lea ecx, [ebp - 0x22c]
call fcn.0065ac50
lea edx, [ebp - 0x2b0]
lea ecx, [ebp - 0x22c]
call fcn.0065b390
lea edx, [ebp - 0x2cc]
lea ecx, [ebp - 0x2f0]
call fcn.0065a6f0
push dword [ebp - 0x2f0]
lea eax, [ebp - 0x210]
push 0x805c78
push 0x100
push eax
call fcn.004b21c0
add esp, 0x10
mov dword [ebp - 0x2f8], 0
xor eax, eax
mov dword [ebp - 0x2f4], 7
lea ecx, [ebp - 0x210]
mov word [ebp - 0x308], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x679a82
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x308]
call fcn.00426d40
lea ecx, [ebp - 0x308]
call fcn.00426ce0
xor eax, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
xor edi, edi
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], edi
mov word [ebp - 0x238], ax
lea edx, [ebp - 0x2cc]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x21c]
call fcn.0065a6f0
cmp dword [ebp - 0x2cc], 2
jne 0x679b10
lea ecx, [ebp - 0x250]
call fcn.00650fa0
jmp 0x679b64
push 0
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x679b64
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x679b30
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x250]
call fcn.00426d40
push 0x1b
push 0x7ea598
lea ecx, [ebp - 0x250]
call fcn.0044a2e0
push 0x16
xor eax, eax
mov dword [ebp - 0x2d8], 0
push str.ACCCreative_Cloud.exe
lea ecx, [ebp - 0x2e8]
mov dword [ebp - 0x2d4], 7
mov word [ebp - 0x2e8], ax
call fcn.00426d40
push ecx
lea edx, [ebp - 0x2e8]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x250]
call fcn.00651b80
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2e8]
call fcn.00426ce0
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
cmovae eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x679dbc
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x2e8]
call fcn.00449230
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x220]
xor bl, bl
mov dword [ebp - 0x220], 0
cmp dword [ebp - 0x2d4], 8
lea eax, [ebp - 0x2e8]
push ecx
cmovae eax, dword [ebp - 0x2e8]
push eax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x2cc], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push 0x208
mov esi, eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.006e9470
add esp, 0xc
test esi, esi
je 0x679d2a
push esi
call fcn.006d0f4b
add esp, 4
lea ecx, [ebp - 0x2e8]
cmp dword [ebp - 0x2d4], 8
mov edi, eax
cmovae ecx, dword [ebp - 0x2e8]
push edi
push esi
push dword [ebp - 0x220]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x679d1b
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 0x79a7b0
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x679d1b
cmp dword [ebp - 0x21c], 0
je 0x679d1b
mov eax, dword [ebp - 0x2cc]
cmp dword [eax], 0xfeef04bd
jne 0x679d1b
movzx esi, word [eax + 0xa]
movzx edx, word [eax + 8]
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
push eax
push ecx
push edx
push esi
push str._d._d._d._d
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004b21c0
lea ecx, [ebp - 0x218]
add esp, 0x1c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x679cf7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00426d40
mov bl, 1
push edi
call fcn.006d0c28
mov edi, dword [ebp - 0x228]
add esp, 4
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 6
call fcn.00426ce0
test bl, bl
je 0x679dbc
push 0xd
xor eax, eax
mov dword [ebp - 0x2d8], 0
push str.ACC_Version:
lea ecx, [ebp - 0x2e8]
mov dword [ebp - 0x2d4], 7
mov word [ebp - 0x2e8], ax
call fcn.00426d40
mov ecx, dword [ebp - 0x2ec]
lea eax, [ebp - 0x2e8]
push eax
add ecx, 0xac
mov byte [ebp - 4], 9
call fcn.005541a0
lea ecx, [ebp - 0x238]
cmp eax, ecx
je 0x679dad
cmp dword [ebp - 0x224], 8
push edi
cmovae ecx, dword [ebp - 0x238]
push ecx
mov ecx, eax
call fcn.00426d40
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 6
call fcn.00426ce0
mov edi, dword [ebp - 0x2ec]
push 0x4e
push 0x80da30
lea ecx, [edi + 0x94]
call fcn.00426d40
push 9
xor eax, eax
mov dword [ebp - 0x2d8], 0
push str.OS_Name:
lea ecx, [ebp - 0x2e8]
mov dword [ebp - 0x2d4], 7
mov word [ebp - 0x2e8], ax
call fcn.00426d40
mov byte [ebp - 4], 0xa
lea esi, [ebp - 0x298]
cmp dword [ebp - 0x284], 8
lea eax, [ebp - 0x2e8]
push eax
cmovae esi, dword [ebp - 0x298]
add edi, 0xac
mov ecx, edi
call fcn.005541a0
mov edx, esi
lea ebx, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x679e34
sub edx, ebx
mov ecx, eax
sar edx, 1
push edx
push esi
call fcn.00426d40
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 6
call fcn.00426ce0
push 0xc
xor eax, eax
mov dword [ebp - 0x2d8], 0
push str.OS_Version:
lea ecx, [ebp - 0x2e8]
mov dword [ebp - 0x2d4], 7
mov word [ebp - 0x2e8], ax
call fcn.00426d40
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x2e8]
cmp dword [ebp - 0x29c], 8
lea esi, [ebp - 0x2b0]
push eax
cmovae esi, dword [ebp - 0x2b0]
mov ecx, edi
call fcn.005541a0
mov edx, esi
lea ebx, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x679eb5
sub edx, ebx
mov ecx, eax
sar edx, 1
push edx
push esi
call fcn.00426d40
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 6
call fcn.00426ce0
push 0xb
xor eax, eax
mov dword [ebp - 0x2d8], 0
push str.OS_Locale:
lea ecx, [ebp - 0x2e8]
mov dword [ebp - 0x2d4], 7
mov word [ebp - 0x2e8], ax
call fcn.00426d40
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x2e8]
cmp dword [ebp - 0x26c], 8
lea esi, [ebp - 0x280]
push eax
cmovae esi, dword [ebp - 0x280]
mov ecx, edi
call fcn.005541a0
mov edx, esi
lea ebx, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x679f36
sub edx, ebx
mov ecx, eax
sar edx, 1
push edx
push esi
call fcn.00426d40
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 6
call fcn.00426ce0
push 5
xor eax, eax
mov dword [ebp - 0x2f8], 0
push 0x80db4c
lea ecx, [ebp - 0x308]
mov dword [ebp - 0x2f4], 7
mov word [ebp - 0x308], ax
call fcn.00426d40
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x210]
push dword [ebp - 0x2f0]
push 0x805c78
push 0x100
push eax
call fcn.004b21c0
add esp, 0x10
mov dword [ebp - 0x2d8], 0
xor eax, eax
mov dword [ebp - 0x2d4], 7
lea ecx, [ebp - 0x210]
mov word [ebp - 0x2e8], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x679fd5
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2e8]
call fcn.00426d40
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x308]
cmp dword [ebp - 0x2d4], 8
lea esi, [ebp - 0x2e8]
push eax
cmovae esi, dword [ebp - 0x2e8]
mov ecx, edi
call fcn.005541a0
mov edx, esi
lea ebx, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x67a022
sub edx, ebx
mov ecx, eax
sar edx, 1
push edx
push esi
call fcn.00426d40
lea ecx, [ebp - 0x2e8]
call fcn.00426ce0
lea ecx, [ebp - 0x308]
mov byte [ebp - 4], 6
call fcn.00426ce0
lea ecx, [ebp - 0x268]
call fcn.0065aae0
push 0x12
xor eax, eax
mov dword [ebp - 0x2f8], 0
push str.OS_Build_Version:
lea ecx, [ebp - 0x308]
mov dword [ebp - 0x2f4], 7
mov word [ebp - 0x308], ax
call fcn.00426d40
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x308]
cmp dword [ebp - 0x254], 8
lea esi, [ebp - 0x268]
push eax
cmovae esi, dword [ebp - 0x268]
mov ecx, edi
call fcn.005541a0
mov edx, esi
lea edi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x67a0c0
sub edx, edi
mov ecx, eax
sar edx, 1
push edx
push esi
call fcn.00426d40
lea ecx, [ebp - 0x308]
mov byte [ebp - 4], 6
call fcn.00426ce0
mov ecx, dword [ebp - 0x2ec]
push 0x4e
push 0x80da30
add ecx, 0xb4
call fcn.00426d40
lea ecx, [ebp - 0x238]
call fcn.00426ce0
lea ecx, [ebp - 0x250]
call fcn.00426ce0
lea ecx, [ebp - 0x268]
call fcn.00426ce0
lea ecx, [ebp - 0x2c8]
call fcn.00426ce0
lea ecx, [ebp - 0x280]
call fcn.00426ce0
lea ecx, [ebp - 0x298]
call fcn.00426ce0
lea ecx, [ebp - 0x2b0]
call fcn.00426ce0
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.006d0965
mov esp, ebp
pop ebp
ret