Function at 0x411158
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00403edc
mov eax, dword [ebp + 0x18]
call fcn.00403edc
xor eax, eax
push ebp
push 0x4115a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
call fcn.0040c5f8
push 0
call sub.KERNEL32.DLL_RtlUnwind
cmp dword [ebp + 0x14], 0
je 0x41125e
xor eax, eax
push ebp
push 0x411250
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
jne 0x4111fc
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x14]
mov eax, dword [ebp + 0x14]
call fcn.00407320
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x40f0ac]
call fcn.0040f8b4
mov ebx, eax
jmp 0x411221
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x40f0ac]
call fcn.0040f8b4
mov ebx, eax
cmp byte [ebx + 4], 0
jne 0x411246
call sub.KERNEL32.DLL_OpenMutexW
mov dword [ebp - 0x14], eax
mov eax, ebx
call fcn.00403288
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_RtlUnwind
xor ebx, ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x411260
xor ebx, ebx
test ebx, ebx
jne 0x411278
cmp dword [ebp + 0x14], 0
jne 0x41156b
cmp dword [ebp - 0xc], 0
je 0x41156b
mov byte [ebp - 0xd], 1
cmp byte [0x418b30], 0
jne 0x411296
push 0x41989c
call sub.KERNEL32.DLL_VirtualQuery
mov byte [0x418b30], 1
push 0x41989c
call sub.KERNEL32.DLL_GetTempFileNameW
xor eax, eax
push ebp
push 0x4113e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4198b4]
call fcn.00404668
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
inc eax
push eax
mov eax, 0x4198b4
mov ecx, 1
mov edx, dword [0x411008]
call fcn.00404824
add esp, 4
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*4]
mov edx, dword [0x4198b4]
mov ecx, dword [ebp - 4]
mov dword [edx + eax*8], ecx
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*4]
mov edx, dword [0x4198b4]
mov ecx, dword [ebp - 8]
mov dword [edx + eax*8 + 4], ecx
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*4]
mov edx, dword [0x4198b4]
lea eax, [edx + eax*8 + 8]
mov edx, dword [ebp - 0xc]
call fcn.00403bc4
lea ecx, [ebp - 0x20]
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.00407160
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*4]
mov ecx, dword [0x4198b4]
lea eax, [ecx + eax*8 + 0xc]
call fcn.00403bc4
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*4]
mov edx, dword [0x4198b4]
lea eax, [edx + eax*8 + 0x10]
mov edx, dword [ebp + 0x18]
call fcn.00403bc4
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*4]
mov edx, dword [0x4198b4]
mov ecx, dword [ebp + 0x14]
mov dword [edx + eax*8 + 0x14], ecx
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*4]
mov edx, dword [0x4198b4]
mov dword [edx + eax*8 + 0x18], ebx
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*4]
mov edx, dword [0x4198b4]
mov ecx, dword [ebp + 0xc]
mov dword [edx + eax*8 + 0x1c], ecx
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*4]
mov edx, dword [0x4198b4]
mov ecx, dword [ebp + 0x10]
mov dword [edx + eax*8 + 0x20], ecx
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*4]
mov edx, dword [0x4198b4]
mov ecx, dword [ebp + 8]
mov dword [edx + eax*8 + 0x24], ecx
cmp dword [ebp - 4], 0
je 0x4113c6
cmp dword [0x418b34], 0
jne 0x4113c6
cmp dword [0x418b3c], 0
je 0x4113ca
xor eax, eax
jmp 0x4113cc
mov al, 1
mov byte [ebp - 0x15], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4113ee
push 0x41989c
call sub.KERNEL32.DLL_WaitForMultipleObjects
ret
cmp byte [ebp - 0xd], 0
je 0x411578
push 0
call sub.KERNEL32.DLL_RtlUnwind
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4115aa
lea eax, [ebp - 0x2c]
mov edx, 5
call fcn.00403b94
lea eax, [ebp - 0xc]
call fcn.00403b70
lea eax, [ebp + 0x18]
call fcn.00403b70
ret