Function at 0x417ae0
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0xa0c]
sub esp, 0xa0c
push 0xfffffffffffffffe
push 0x49a818
push 0x447bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4a6c44]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0xa08], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0xa14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 0xa18]
test esi, esi
jne 0x417b83
mov dword [ebp - 4], esi
push str.raising_exception_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
push esi
push esi
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.KERNEL32.dll_RaiseException]
push str.writing_minidump_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0
push 0x104
lea eax, [ebp + 0x800]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x800]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edi, [ebp + 0x800]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x417bd0
mov ecx, 6
mov esi, 0x47f98c
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp + 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x417cf1
lea eax, [ebp + 0x800]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp + 0x800]
add ecx, 0xfffffffe
nop dword [eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x417c20
mov eax, dword [str.TMPlaying]
mov dword [ecx], eax
mov eax, dword [0x47f9ac]
mov dword [ecx + 4], eax
mov eax, dword [0x47f9b0]
mov dword [ecx + 8], eax
mov eax, dword [0x47f9b4]
mov dword [ecx + 0xc], eax
mov eax, dword [0x47f9b8]
mov dword [ecx + 0x10], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call ebx
push eax
push 0x47bcf4
lea eax, [ebp]
push eax
call fcn.00402ee7
add esp, 0xc
lea edx, [ebp]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x417c72
sub edx, esi
lea edi, [ebp + 0x800]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x417c90
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp + 0x800]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x417cb3
mov ecx, 6
mov esi, 0x47f98c
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp + 0x800]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call edi
mov esi, eax
test esi, esi
jne 0x417cf7
push str.dbghelp.dll
call edi
mov esi, eax
test esi, esi
je 0x417d2d
jmp 0x417cf7
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push str.MiniDumpWriteDump
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x417d26
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
push dword [0x4a66fc]
push dword [ebp - 0x20]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa08]
xor ecx, ebp
call fcn.00444138
lea esp, [ebp + 0xa0c]
pop ebp
ret