Function at 0x4ac950
Capabilities:
Get common file path

Disassembly:
sub esp, 0x634
mov eax, dword [0x5b3890]
xor eax, esp
mov dword [esp + 0x630], eax
mov eax, dword [esp + 0x638]
push ebx
push ebp
mov ebp, dword [esp + 0x644]
push esi
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
xor eax, eax
jmp 0x4ac990
movzx ecx, word [eax + str.SOFTWAREClassesApplications_]
mov word [esp + eax + 0x438], cx
add eax, 2
test cx, cx
jne 0x4ac990
mov eax, edx
mov esi, edx
jmp 0x4ac9b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ac9b0
lea edi, [esp + 0x438]
sub eax, esi
add edi, 0xfffffffe
jmp 0x4ac9d0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4ac9d0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x10]
push edx
push 1
mov ecx, eax
push 0
lea eax, [esp + 0x444]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp], 1
call edi
test eax, eax
jne 0x4acb7d
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
push str.DefaultIcon
push edx
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4aca69
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebp
push 0
push 0x56ba1c
push edx
mov dword [esp + 0x30], 0x208
call fcn.004b42b0
mov esi, eax
mov eax, dword [esp + 0x2c]
add esp, 0x18
push eax
call ebx
test esi, esi
je 0x4aca94
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebp
push 0
push str.TaskbarGroupIcon
push eax
mov dword [esp + 0x30], 0x208
call fcn.004b42b0
add esp, 0x18
test eax, eax
jne 0x4acb09
mov ecx, dword [esp + 0x10]
push ecx
call ebx
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4acaa2
sub eax, edx
sar eax, 1
mov esi, eax
je 0x4acacc
mov eax, 0x2c
lea ebx, [ebx]
dec esi
cmp word [esp + esi*2 + 0x28], ax
je 0x4acaed
test esi, esi
jne 0x4acac0
dec esi
cmp esi, 0xffffffff
je 0x4acdc5
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
lea edx, [esp + 0x2c]
push edx
call fcn.00406a80
mov al, 1
jmp 0x4acdc7
lea eax, [esp + esi*2 + 0x2a]
xor edx, edx
push eax
mov word [esp + esi*2 + 0x2c], dx
call fcn.0051a0de
mov ecx, dword [esp + 0x24]
add esp, 4
mov dword [ecx], eax
jmp 0x4acacd
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 1
push 0
push str.shellopencommand
push ecx
call edi
mov esi, eax
test esi, esi
je 0x4acb3b
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 1
push 0
push str.shelleditcommand
push eax
call edi
mov esi, eax
mov dword [esp + 0x18], 0x208
test esi, esi
jne 0x4acb6e
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebp
push esi
push 0x56ba1c
push eax
call fcn.004b42b0
mov ecx, dword [esp + 0x2c]
add esp, 0x18
push ecx
mov esi, eax
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebx
test esi, esi
je 0x4acc9e
push 0x104
lea eax, [esp + 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [esp + 0x230]
add edi, 0xfffffffe
lea edx, [edi + 2]
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4acba0
mov ebx, dword [esp + 0x24]
mov ecx, dword [0x56b9a8]
mov eax, ebx
mov dword [edi], ecx
mov esi, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4acbc0
sub eax, esi
add edx, 0xfffffffe
mov edi, edx
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4acbd2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x230]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.004ba280
add esp, 4
test eax, eax
jne 0x4acc84
push 0x104
lea eax, [esp + 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edi, [esp + 0x230]
add edi, 0xfffffffe
lea edx, [edi + 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4acc24
mov ecx, dword [0x56b9a8]
mov eax, ebx
mov dword [edi], ecx
mov esi, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4acc40
sub eax, esi
add edx, 0xfffffffe
mov edi, edx
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4acc52
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x230]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.004ba280
add esp, 4
test eax, eax
je 0x4acdc5
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
lea eax, [esp + 0x234]
push eax
call fcn.00406a80
mov al, 1
jmp 0x4acdc7
mov cx, word [esp + 0x28]
cmp cx, 0x22
jne 0x4acce1
lea ebx, [esp + 0x2a]
mov eax, ebx
cmp word [esp + 0x2a], cx
je 0x4accc9
cmp word [eax], 0
je 0x4acdc5
add eax, 2
cmp word [eax], 0x22
jne 0x4accb6
xor ecx, ecx
push 0xffffffffffffffff
mov word [eax], cx
mov ecx, dword [esp + 0x20]
push ebx
call fcn.00406a80
mov al, 1
jmp 0x4acdc7
lea ebx, [esp + 0x28]
mov eax, ebx
cmp cx, 0x20
je 0x4acd03
lea ecx, [ecx]
cmp word [eax], 0
je 0x4acdc5
add eax, 2
cmp word [eax], 0x20
jne 0x4accf0
xor edx, edx
mov word [eax], dx
mov ax, word [esp + 0x28]
lea ecx, [esp + 0x28]
test ax, ax
je 0x4acd36
movzx eax, ax
lea esp, [esp]
cmp ax, 0x5c
je 0x4acdb5
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x4acd20
push 0x104
lea eax, [esp + 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [esp + 0x230]
add edi, 0xfffffffe
lea edx, [edi + 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4acd56
mov ecx, dword [0x56b9a8]
lea eax, [esp + 0x28]
mov dword [edi], ecx
mov esi, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4acd70
sub eax, esi
add edx, 0xfffffffe
mov edi, edx
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4acd82
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov edi, edi
movzx ecx, word [esp + eax + 0x230]
mov word [esp + eax + 0x28], cx
add eax, 2
test cx, cx
jne 0x4acda0
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ebx
call fcn.00406a80
mov al, 1
jmp 0x4acdc7
xor al, al
mov ecx, dword [esp + 0x640]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051916c
add esp, 0x634
ret