Function at 0x87ae40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 8], eax
lea ebx, [ebp - 4]
xor eax, eax
push ebp
push 0x87b091
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x87b0a0
push 0x87b0bc
call sub.kernel32.dll_GetModuleHandleA
push eax
call sub.kernel32.dll_GetProcAddress
mov edx, dword [ebp + 8]
mov dword [edx - 0x18], eax
push 0x87b0c8
push 0x87b0e0
call sub.kernel32.dll_LoadLibraryA
push eax
call sub.kernel32.dll_GetProcAddress
mov edx, dword [ebp + 8]
mov dword [edx - 0x1c], eax
xor eax, eax
mov dword [ebx], eax
push ebx
push 0
push 0
push 5
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call eax
xor esi, esi
cmp dword [ebx], 0
jne 0x87aefa
mov dword [ebx], 0x10000
mov eax, dword [ebx]
add eax, eax
mov dword [ebx], eax
push esi
call sub.kernel32.dll_LocalFree_2
mov eax, dword [ebx]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov esi, eax
push 0
mov eax, dword [ebx]
push eax
push esi
push 5
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call eax
test eax, eax
je 0x87af1c
cmp dword [ebx], 0x400000
jne 0x87aec4
jmp 0x87af1c
mov eax, dword [ebx]
add eax, eax
mov dword [ebx], eax
mov eax, dword [ebx]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov esi, eax
push 0
mov eax, dword [ebx]
push eax
push esi
push 5
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call eax
test eax, eax
jne 0x87b065
mov ebx, esi
mov edi, dword [ebx + 0x3c]
test edi, edi
je 0x87b03f
lea eax, [ebp - 8]
mov edx, edi
call fcn.0087363c
mov eax, dword [ebp + 8]
cmp dword [eax - 0x1c], 0
je 0x87b026
mov eax, dword [ebx + 0x44]
push eax
push 0
push 0x410
call sub.kernel32.dll_OpenProcess
mov edi, eax
test edi, edi
je 0x87b026
push 0x104
lea eax, [ebp - 0x10d]
push eax
push 0
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
call eax
test eax, eax
jbe 0x87b020
lea eax, [ebp - 8]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.00873678
mov edx, dword [ebp - 8]
mov eax, 0x87b0f4
call fcn.00875998
test al, al
je 0x87affd
push 0x104
lea eax, [ebp - 0x10d]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x114]
push eax
mov ecx, 0x7fffffff
mov edx, 0x15
mov eax, dword [ebp - 8]
call fcn.00873928
mov eax, dword [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.00873678
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 8]
pop ecx
call fcn.00873714
jmp 0x87b020
mov edx, dword [ebp - 8]
mov eax, 0x87b114
call fcn.00875928
test al, al
je 0x87b020
lea eax, [ebp - 8]
mov ecx, 4
mov edx, 1
call fcn.00873968
push edi
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebx + 0x48]
push eax
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x44]
mov eax, dword [ebp - 8]
call fcn.0087ab4c
pop ecx
jmp 0x87b058
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebx + 0x48]
push eax
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x44]
mov eax, 0x87b124
call fcn.0087ab4c
pop ecx
mov eax, dword [ebx]
test eax, eax
je 0x87b065
add ebx, eax
jmp 0x87af26
push esi
call sub.kernel32.dll_LocalFree_2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x87b098
lea eax, [ebp - 0x118]
mov edx, 2
call fcn.00873438
lea eax, [ebp - 8]
call fcn.00873414
ret