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

Disassembly:
push ebp
lea ebp, [esp - 0xa0c]
sub esp, 0xa0c
push 0xfffffffffffffffe
push 0x477a38
push 0x43d900
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x483ca0]
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 - 0x1c], eax
mov dword [ebp - 0x20], eax
mov esi, dword [ebp + 0xa18]
test esi, esi
jne 0x411113
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
jmp 0x411160
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x411160
mov ecx, 6
mov esi, 0x4643e8
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 0x411281
lea eax, [ebp + 0x800]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp + 0x800]
add ecx, 0xfffffffe
lea esp, [esp]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4111b0
mov eax, dword [str.TMPlaying]
mov dword [ecx], eax
mov eax, dword [0x464408]
mov dword [ecx + 4], eax
mov eax, dword [0x46440c]
mov dword [ecx + 8], eax
mov eax, dword [0x464410]
mov dword [ecx + 0xc], eax
mov eax, dword [0x464414]
mov dword [ecx + 0x10], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call ebx
push eax
push 0x464418
lea eax, [ebp]
push eax
call fcn.0043a14b
add esp, 0xc
lea edx, [ebp]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x411202
sub edx, esi
lea edi, [ebp + 0x800]
add edi, 0xfffffffe
jmp 0x411220
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x411220
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 0x411243
mov ecx, 6
mov esi, 0x4643e8
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 0x411287
push str.dbghelp.dll
call edi
mov esi, eax
test esi, esi
je 0x4112bd
jmp 0x411287
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 0x4112b6
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
push dword [0x483700]
push dword [ebp - 0x1c]
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.004396df
lea esp, [ebp + 0xa0c]
pop ebp
ret