Function at 0x40ed90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5b0
push ebx
push esi
push edi
lea eax, [ebp - 0x3a4]
mov edi, ecx
push eax
push 0x105
mov dword [ebp - 0x74], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x104]
call fcn.004045f0
push str.Directory
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call fcn.00420de0
add esp, 4
lea ecx, [ebp - 0x40]
push eax
push str.Directory
call fcn.0040e2d0
push str.CrashDump
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00420de0
add esp, 4
lea ecx, [ebp - 0x20]
push eax
push str.CrashDump
call fcn.0040e2d0
lea eax, [ebp - 0x3a4]
mov dword [ebp - 0x10], 0
push eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x3a4]
push eax
call fcn.0040cc00
mov ecx, dword [edi]
call fcn.0040f960
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call fcn.0042e230
mov ecx, eax
call fcn.0040d980
push dword [ebp - 0x30]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0
push dword [ebp - 0x28]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call fcn.0040e3d0
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.00420bb0
push dword [ebp - 0xc]
lea ecx, [ebp - 4]
mov dword [ebp - 0x28], 0
push dword [ebp - 8]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
call fcn.00420bb0
push dword [ebp - 0x1c]
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x14]
push dword [ebp - 0x18]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
call fcn.00420bb0
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], 0
push dword [ebp - 0x38]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call fcn.00420bb0
mov eax, dword [ebp - 0x48]
mov ebx, 0x5b3144
test eax, eax
mov ecx, ebx
push 0x105
cmovne ecx, eax
lea eax, [ebp - 0x5b0]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
mov eax, dword [edi + 0x20]
add esp, 0xc
test eax, eax
mov esi, ebx
mov edx, ebx
mov ecx, ebx
cmovne esi, eax
mov eax, dword [ebp - 0x48]
test eax, eax
push 0
push dword [edi]
cmovne edx, eax
mov eax, dword [edi + 0x10]
test eax, eax
push esi
cmovne ecx, eax
push edx
push ecx
lea ecx, [ebp - 0x104]
call fcn.004052a0
test al, al
jne 0x40ef71
xor bl, bl
jmp 0x40f273
lea ecx, [ebp - 0x198]
call fcn.004167e0
push 0x54b64c
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x30]
push eax
push 0x54b64c
call fcn.00403040
push str.CrashServicePath
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call fcn.00420de0
add esp, 4
lea ecx, [ebp - 0x40]
push eax
push str.CrashServicePath
call fcn.0040e2d0
push str.CrashDump
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
call fcn.00420de0
add esp, 4
lea ecx, [ebp - 0x70]
push eax
push str.CrashDump
call fcn.0040e2d0
push str.debug.triongames.com
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x60]
push eax
push str.debug.triongames.com
call fcn.00403040
push str.CrashServiceServer
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00420de0
add esp, 4
lea ecx, [ebp - 0x10]
push eax
push str.CrashServiceServer
call fcn.0040e2d0
push str.CrashDump
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00420de0
add esp, 4
lea ecx, [ebp - 0x20]
push eax
push str.CrashDump
call fcn.0040e2d0
mov ecx, dword [edi]
call fcn.0040f960
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x94]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
call fcn.0042e230
mov ecx, eax
call fcn.0040e840
mov eax, dword [ebp - 0x8c]
mov edi, ebx
mov ecx, dword [ebp - 0x74]
test eax, eax
cmovne edi, eax
mov ecx, dword [ecx]
call fcn.0040f960
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call fcn.0042e230
mov ecx, eax
call fcn.0040e840
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x104]
test eax, eax
mov esi, ebx
cmovne esi, eax
call fcn.00406120
push 0
push 0
push 0
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x198]
test eax, eax
push edi
cmovne ebx, eax
push esi
push ebx
call fcn.00416df0
mov ecx, dword [ebp - 0x80]
mov bl, al
add ecx, ecx
push ecx
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x78]
call fcn.00420bb0
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x88]
add eax, eax
mov dword [ebp - 0x7c], 0
push eax
push dword [ebp - 0x8c]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x84], 0
call fcn.00420bb0
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x8c], 0
push dword [ebp - 0x18]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x94], 0
call fcn.00420bb0
push dword [ebp - 0xc]
lea ecx, [ebp - 4]
mov dword [ebp - 0x18], 0
push dword [ebp - 8]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call fcn.00420bb0
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x54]
add eax, eax
mov dword [ebp - 8], 0
push eax
push dword [ebp - 0x58]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
call fcn.00420bb0
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x58], 0
push dword [ebp - 0x68]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
call fcn.00420bb0
push dword [ebp - 0x3c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
push dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
call fcn.00420bb0
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
add eax, eax
mov dword [ebp - 0x38], 0
push eax
push dword [ebp - 0x28]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
call fcn.00420bb0
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
call fcn.004168d0
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x44]
add eax, eax
push eax
push dword [ebp - 0x48]
call fcn.00420bb0
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
call fcn.00404870
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret