Function at 0x40a760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5934aa
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x613384]
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, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x384], edi
mov dword [ebp - 0x374], 0
mov dword [ebp - 0x370], eax
mov dword [ebp - 0x364], 0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.00546c70
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40aabc
cmp eax, 0x104
jae 0x40aabc
push 1
push 0xffffffffffffffff
push 0xfde9
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x380]
call fcn.0046c430
mov ebx, dword [ebp - 0x37c]
push 0
mov dword [ebp - 0x37c], 0
mov dword [ebp - 0x380], 0
call fcn.0054454b
add esp, 4
mov dword [ebp - 0x364], ebx
cmp byte [ebp - 0x378], 0
mov eax, dword [ebp - 0x37c]
mov byte [ebp - 4], 2
je 0x40a867
test eax, eax
je 0x40a867
push dword [ebp - 0x380]
push eax
call fcn.0045fa10
mov eax, dword [ebp - 0x37c]
add esp, 8
push eax
call fcn.0054454b
add esp, 4
mov dword [ebp - 0x368], 0
mov dword [ebp - 0x364], 0
cmp byte [ebx], 0
je 0x40a8c1
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a890
sub ecx, edx
mov al, byte [ebx + ecx - 1]
cmp al, 0x5c
je 0x40a8a5
cmp al, 0x2f
jne 0x40a8c1
push str.msiexec.exe
push ebx
lea eax, [ebp - 0x368]
push 0x5abe70
push eax
call fcn.004493c0
add esp, 0x10
jmp 0x40a8dd
push str.msiexec.exe
push 0x5c
push ebx
lea eax, [ebp - 0x368]
push str._s_c_s
push eax
call fcn.004493c0
add esp, 0x14
mov esi, dword [ebp - 0x368]
push 0
mov dword [ebp - 0x368], 0
mov dword [ebp - 0x364], 0
mov dword [ebp - 0x36c], 0
call fcn.0054454b
push dword [ebp - 0x368]
mov dword [ebp - 0x36c], esi
mov dword [ebp - 0x374], 2
call fcn.0054454b
push ebx
call fcn.0054454b
add esp, 0xc
push dword [ebp - 0x384]
lea eax, [ebp - 0x368]
mov dword [ebp - 4], 5
push eax
lea eax, [ebp - 0x36c]
mov dword [edi], 0
push eax
mov ecx, edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.00408de0
push fcn.00402d30
push 1
push 4
lea eax, [ebp - 0x36c]
mov dword [ebp - 0x374], 3
push eax
mov byte [ebp - 4], 0
call fcn.00544d69
mov ecx, 0x617048
call fcn.00404430
push dword [eax]
push edi
call fcn.00448170
push 0xffffffffffffffff
push 0x5adffc
call fcn.00448d00
mov edx, eax
add esp, 0x10
mov dword [ebp - 0x364], edx
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 6
cmp dword [edi + 8], ecx
je 0x40a9c7
xor eax, eax
mov dword [ecx], edx
add dword [edi + 4], 4
jmp 0x40a9dc
lea eax, [ebp - 0x364]
push eax
push ecx
mov ecx, edi
call fcn.00405c50
mov eax, dword [ebp - 0x364]
push eax
mov byte [ebp - 4], 0
call fcn.0054454b
push 0xffffffffffffffff
push dword [ebp - 0x370]
call fcn.00448d00
mov edx, eax
add esp, 0xc
mov dword [ebp - 0x364], edx
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 7
cmp dword [edi + 8], ecx
je 0x40aa17
xor eax, eax
mov dword [ecx], edx
add dword [edi + 4], 4
jmp 0x40aa2c
lea eax, [ebp - 0x364]
push eax
push ecx
mov ecx, edi
call fcn.00405c50
mov eax, dword [ebp - 0x364]
push eax
mov byte [ebp - 4], 0
call fcn.0054454b
add esp, 4
mov ecx, 0x6175e0
call fcn.00404430
push dword [eax]
call fcn.0046da80
add esp, 4
test eax, eax
je 0x40aa9e
push eax
lea eax, [ebp - 0x370]
push str.ProductLanguage_d
push eax
call fcn.004492a0
add esp, 0xc
mov ecx, eax
mov edx, dword [edi + 4]
mov dword [ebp - 4], 8
cmp dword [edi + 8], edx
je 0x40aa87
mov eax, dword [ecx]
mov dword [ecx], 0
mov dword [edx], eax
add dword [edi + 4], 4
jmp 0x40aa90
push ecx
push edx
mov ecx, edi
call fcn.00405c50
push dword [ebp - 0x370]
call fcn.0054454b
add esp, 4
mov eax, edi
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.00544c5a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5adfdc
lea ecx, [ebp - 0x360]
call fcn.0040a6b0
push 0x5f5000
lea eax, [ebp - 0x360]
push eax
call fcn.005461fc
int3