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

Disassembly:
push ebp
lea ebp, [esp - 0xa0c]
sub esp, 0xa0c
push 0xfffffffffffffffe
push 0x49a7a0
push 0x447ac0
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 0x417b13
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 0x417b60
mov ecx, 6
mov esi, 0x47f92c
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 0x417c81
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 0x417bb0
mov eax, dword [str.TMPlaying]
mov dword [ecx], eax
mov eax, dword [0x47f94c]
mov dword [ecx + 4], eax
mov eax, dword [0x47f950]
mov dword [ecx + 8], eax
mov eax, dword [0x47f954]
mov dword [ecx + 0xc], eax
mov eax, dword [0x47f958]
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 0x417c02
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 0x417c20
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 0x417c43
mov ecx, 6
mov esi, 0x47f92c
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 0x417c87
push str.dbghelp.dll
call edi
mov esi, eax
test esi, esi
je 0x417cbd
jmp 0x417c87
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 0x417cb6
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.004440d2
lea esp, [ebp + 0xa0c]
pop ebp
ret