Function at 0x40ac10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2b
push 0
push 0
dec ecx
jne 0x40ac18
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
call fcn.00404208
mov eax, dword [ebp + 0x10]
call fcn.00404208
mov eax, dword [ebp + 0x14]
call fcn.00404208
xor eax, eax
push ebp
push 0x40af6e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x118]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 8]
mov edx, 0x40af88
call fcn.00403e28
lea edx, [ebp - 0xc]
mov eax, 5
call fcn.0040a2bc
lea eax, [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404064
mov eax, dword [ebp - 0x11c]
call fcn.00404218
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00403f88
lea eax, [ebp - 0x120]
lea edx, [ebp - 0x118]
mov ecx, pe_nt_image_headers32
call fcn.00404000
push dword [ebp - 0x120]
lea edx, [ebp - 0x124]
mov eax, 5
call fcn.0040a2bc
push dword [ebp - 0x124]
push 0x40af9c
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004040d8
lea eax, [ebp - 0x128]
lea edx, [ebp - 0x118]
mov ecx, pe_nt_image_headers32
call fcn.00404000
push dword [ebp - 0x128]
lea edx, [ebp - 0x12c]
mov eax, 5
call fcn.0040a2bc
push dword [ebp - 0x12c]
push 0x40afa8
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004040d8
xor eax, eax
push ebp
push 0x40af2c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call fcn.00404218
mov edx, eax
lea eax, [ebp - 0x130]
call fcn.00403f88
mov eax, dword [ebp - 0x130]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00404218
mov edx, eax
lea eax, [ebp - 0x134]
call fcn.00403f88
mov eax, dword [ebp - 0x134]
push eax
push esi
call fcn.0040aa2c
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404218
push eax
push 0x80000001
call sub.advapi32.dll_RegCreateKeyA
mov ebx, 5
mov eax, dword [ebp - 0x14]
call fcn.00404218
mov edx, eax
lea eax, [ebp - 0x138]
call fcn.00403f88
mov eax, dword [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404218
mov edx, eax
lea eax, [ebp - 0x13c]
call fcn.00403f88
mov eax, dword [ebp - 0x13c]
push eax
push 0x80000001
call fcn.0040aae8
dec ebx
jne 0x40ad8c
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0x80000001
call fcn.0040a964
mov eax, dword [ebp - 0x18]
call fcn.00404218
mov edx, eax
lea eax, [ebp - 0x140]
call fcn.00403f88
mov eax, dword [ebp - 0x140]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404218
mov edx, eax
lea eax, [ebp - 0x144]
call fcn.00403f88
mov eax, dword [ebp - 0x144]
push eax
push 0x80000001
call fcn.0040aa2c
mov ebx, 5
mov eax, dword [ebp - 0x18]
call fcn.00404218
mov edx, eax
lea eax, [ebp - 0x148]
call fcn.00403f88
mov eax, dword [ebp - 0x148]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00404218
mov edx, eax
lea eax, [ebp - 0x14c]
call fcn.00403f88
mov eax, dword [ebp - 0x14c]
push eax
push esi
call fcn.0040aae8
dec ebx
jne 0x40ae2e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40af36
mov eax, dword [ebp - 0xc]
call fcn.00404218
push eax
mov eax, dword [ebp - 8]
call fcn.00404218
mov edx, eax
mov eax, 0x80000001
pop ecx
call fcn.0040a944
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 0x14]
call fcn.00404218
mov edx, eax
lea eax, [ebp - 0x150]
call fcn.00403f88
mov eax, dword [ebp - 0x150]
call fcn.00405ba8
test al, al
je 0x40aee7
mov eax, dword [ebp - 0x14]
call fcn.00404218
mov edx, eax
lea eax, [ebp - 0x154]
call fcn.00403f88
mov eax, dword [ebp - 0x154]
call fcn.00405d14
mov eax, dword [ebp - 0x18]
call fcn.00404218
mov edx, eax
lea eax, [ebp - 0x158]
call fcn.00403f88
mov eax, dword [ebp - 0x158]
call fcn.00405ba8
test al, al
je 0x40af2b
mov eax, dword [ebp - 0x18]
call fcn.00404218
mov edx, eax
lea eax, [ebp - 0x15c]
call fcn.00403f88
mov eax, dword [ebp - 0x15c]
call fcn.00405d14
ret