Function at 0x4c8440
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c75e
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x61308c]
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 ebx, ecx
mov dword [ebp - 0x444], ebx
push 0x240
call fcn.005120b2
add esp, 4
mov dword [ebp - 0x440], eax
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.00441eb0
mov esi, eax
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x61e7e8]
test ecx, ecx
jne 0x4c84dd
push 0x68
call fcn.005120b2
add esp, 4
mov dword [ebp - 0x440], eax
mov dword [ebp - 4], 1
mov ecx, eax
call fcn.0043f680
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x61e7e8], ecx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov edi, dword [ebx + 0x1c]
cmp eax, ecx
je 0x4c8508
nop dword [eax]
mov edx, dword [eax]
cmp edi, dword [edx + 4]
je 0x4c8500
add eax, 4
cmp eax, ecx
jne 0x4c84f0
jmp 0x4c8508
push edx
mov ecx, esi
call fcn.00441900
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0052d340
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0052d340
add esp, 0x18
lea eax, [ebp - 0x438]
add ebx, 0x2c
mov ecx, ebx
push 4
push eax
call fcn.0040cfc0
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x4c8555
mov ecx, dword [eax]
jmp 0x4c8557
mov ecx, eax
mov edx, dword [eax + 0x10]
push 4
push str..exe
call fcn.0040d870
add esp, 8
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x424]
cmp ecx, 8
jb 0x4c8590
inc ecx
push ecx
push dword [ebp - 0x438]
lea ecx, [ebp - 0x438]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
test edi, edi
jne 0x4c85d6
cmp dword [ebx + 0x14], 8
jb 0x4c85b9
mov ebx, dword [ebx]
lea ecx, [ebp - 0x218]
nop
movzx eax, word [ebx]
lea ebx, [ebx + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4c85c0
jmp 0x4c86f0
push 4
lea eax, [ebp - 0x438]
mov ecx, ebx
push eax
call fcn.0040cfc0
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x4c85f7
mov ecx, dword [eax]
jmp 0x4c85f9
mov ecx, eax
mov edx, dword [eax + 0x10]
push 4
push str..msi
call fcn.0040d870
add esp, 8
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x424]
cmp ecx, 8
jb 0x4c8632
inc ecx
push ecx
push dword [ebp - 0x438]
lea ecx, [ebp - 0x438]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
test edi, edi
jne 0x4c87ec
push 0x104
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
nop dword [eax + eax]
movzx eax, word [ebp + ecx - 0x420]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x21a], ax
test ax, ax
jne 0x4c8670
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4c8691
cmp dword [ebx + 0x14], 8
mov ecx, 8
mov esi, str.msiexec.exe__i
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jb 0x4c86b3
mov ebx, dword [ebx]
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4c86b5
lea edi, [ebp - 0x218]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4c86d0
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x43c]
mov eax, dword [ebp - 0x444]
mov eax, dword [eax + 0x1c]
cmp eax, 0x4a96
je 0x4c8707
cmp eax, 0x4a9f
jne 0x4c8719
push 7
push str._silent
lea ecx, [esi + 0x210]
call fcn.00404d30
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4c8722
mov eax, dword [0x5c3368]
lea edx, [esi + 0x210]
mov dword [edi], eax
cmp dword [edx + 0x14], 8
jb 0x4c8743
mov edx, dword [edx]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4c8745
lea edi, [ebp - 0x218]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4c8760
mov ecx, edx
xor eax, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0xffffffffffffffff
sub esp, 0x1c
mov ecx, edx
mov edx, esp
mov dword [ebp - 0x440], esp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
cmp word [ebp - 0x218], ax
jne 0x4c87a7
xor ecx, ecx
jmp 0x4c87bf
lea ecx, [ebp - 0x218]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c87b0
sub ecx, esi
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, edx
push eax
call fcn.00404d30
mov dword [ebp - 4], 6
mov esi, dword [ebp - 0x43c]
push dword [esi + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004c8830
jmp 0x4c87f0
test esi, esi
je 0x4c8805
mov ecx, esi
call fcn.0043fcc0
push 0x240
push esi
call fcn.00512108
add esp, 8
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.005120a1
mov esp, ebp
pop ebp
ret