Function at 0x40e960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a4
lea eax, [ebp - 0x498]
push esi
push edi
push 0x20a
push 0
push eax
mov edi, ecx
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [edi + 4]
add esp, 0xc
call fcn.00413cd0
push eax
push 0
push 0x450
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40e9ba
push 0x105
lea eax, [ebp - 0x498]
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x6a4]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x28c]
push eax
push 0
push 0x54b5e0
lea eax, [ebp - 0x6a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push dword [edi]
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x28c]
push eax
call fcn.00414260
push 1
push 0x493e0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0x102
jne 0x40ea15
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 4]
call fcn.00413c50
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
push 0x54b5e8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.0040e470
mov eax, dword [ebp - 0x28]
mov esi, 0x5b3144
test eax, eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
cmovne esi, eax
mov dword [ebp - 8], 0
push esi
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x10]
push eax
push esi
call fcn.00403040
push str.StackTraceHash
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x20]
push eax
push str.StackTraceHash
call fcn.00403040
mov ecx, dword [edi]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00410a10
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
add eax, eax
push eax
push dword [ebp - 0x18]
call fcn.00420bb0
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
add eax, eax
mov dword [ebp - 0x18], 0
push eax
push dword [ebp - 8]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call fcn.00420bb0
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
add eax, eax
mov dword [ebp - 8], 0
push eax
push dword [ebp - 0x28]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
call fcn.00420bb0
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0
push eax
mov dword [ebp - 0x7c], 0x10
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0x3f400000
mov dword [ebp - 0x68], 0
call fcn.004158a0
lea eax, [ebp - 0x80]
mov dword [ebp - 0x38], 0
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.00423ac0
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x40eb94
dec eax
imul eax, dword [ebp - 0x7c]
add eax, dword [ebp - 0x80]
jmp 0x40eb96
xor eax, eax
test ecx, ecx
jne 0x40eba9
cmp esi, eax
jne 0x40eba9
lea eax, [ebp - 0x80]
cmp edx, eax
je 0x40ed31
lea eax, [ecx + 8]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x38], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x10]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], 0
push eax
push str.Error_0_1
mov dword [ebp - 8], 0
call fcn.0040e520
mov eax, dword [ebp - 8]
mov esi, 0x5b3144
test eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
cmovne esi, eax
mov dword [ebp - 0x28], 0
push esi
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00403040
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
add eax, eax
push eax
push dword [ebp - 8]
call fcn.00420bb0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
add eax, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
push 0x549b0c
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call fcn.0040e470
mov eax, dword [ebp - 0x48]
mov esi, 0x5b3144
test eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
cmovne esi, eax
mov dword [ebp - 0x58], 0
push esi
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x60]
push eax
push esi
call fcn.00403040
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x44]
add eax, eax
push eax
push dword [ebp - 0x48]
call fcn.00420bb0
mov ecx, dword [edi]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x48], 0
push eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
call fcn.00410a10
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x54]
add eax, eax
push eax
push dword [ebp - 0x58]
call fcn.00420bb0
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
add eax, eax
mov dword [ebp - 0x58], 0
push eax
push dword [ebp - 0x28]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
call fcn.00420bb0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
call fcn.00423a40
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
jmp 0x40eb83
lea eax, [ebp - 0x28c]
push eax
call fcn.00420e00
add esp, 4
lea ecx, [edi + 8]
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.00403040
lea eax, [ebp - 0x498]
push eax
call fcn.00420e00
add esp, 4
lea ecx, [edi + 0x18]
push eax
lea eax, [ebp - 0x498]
push eax
call fcn.00403040
lea ecx, [ebp - 0x80]
call fcn.0040e7c0
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret