Function at 0x41e510
Capabilities:
Check mutex on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x4931e0]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x493200
push 0x494f74
push str._kugoo__v:_d_d
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.MSVCR120.dll_swscanf_s]
add esp, 0x10
test eax, eax
je 0x41e600
xor ebx, ebx
push str._KGDEAMON_MUTEX_
push ebx
push ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x41e77f
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41e775
push eax
push 0x1a
push 0x494d68
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x41e5c4
push 0x104
push eax
push 0x494d68
call sub.MSVCR120.dll_memset
jmp 0x41e5d9
push str.Kugou8_
push 0x104
push 0x494d68
call dword [sym.imp.MSVCR120.dll_wcscat_s]
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00455380
mov ecx, esi
call fcn.0041e800
mov ecx, esi
call fcn.0041e870
test eax, eax
jne 0x41e619
lea ecx, [esp + 0x30]
call fcn.00455400
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0047259d
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
call fcn.004549b0
add esp, 8
lea ecx, [esp + 0x14]
call fcn.0044ab50
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], str.kugou.daemon.log
mov dword [esp + 0x24], ebx
call fcn.0044af90
add esp, 4
lea ecx, [esp + 0x60]
push 1
call fcn.004484f0
mov dword [esp + 0x60], 0x483f7c
call fcn.0044a420
mov esi, dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
push 0x2c
mov dword [0x494d60], eax
call esi
add esp, 4
test eax, eax
je 0x41e68c
mov ecx, eax
call fcn.0041ee44
mov ebx, eax
jmp 0x41e68e
xor ebx, ebx
push 0x20
call esi
mov edi, eax
add esp, 4
test edi, edi
je 0x41e6b3
mov eax, dword [0x494d64]
lea ecx, [edi + 8]
mov dword [edi], 0x483f90
mov dword [edi + 4], eax
call fcn.00450f60
jmp 0x41e6b5
xor edi, edi
push 0x18
call esi
add esp, 4
test eax, eax
je 0x41e6ca
push edi
mov ecx, eax
call fcn.00404ca0
jmp 0x41e6cc
xor eax, eax
mov ecx, eax
mov dword [esp + 0xc], eax
call fcn.00404e50
mov ecx, dword [0x494d60]
call fcn.00449c00
lea ecx, [edi + 8]
call fcn.00450f90
lea ecx, [edi + 8]
mov dword [edi + 4], 0
call fcn.00450fa0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41e715
mov ecx, eax
call fcn.00404d40
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea ecx, [edi + 8]
mov dword [edi], 0x483f90
mov dword [edi + 4], 0
call fcn.00450f80
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
push edi
call esi
add esp, 4
test ebx, ebx
je 0x41e747
mov ecx, ebx
call fcn.0041eea1
push ebx
call esi
add esp, 4
lea ecx, [esp + 0x60]
call fcn.004487f0
mov ecx, dword [0x494d64]
test ecx, ecx
je 0x41e76a
push ecx
call fcn.0041e7a0
mov dword [0x494d64], 0
lea ecx, [esp + 0x30]
call fcn.00455400
xor ebx, ebx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x11c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047259d
mov esp, ebp
pop ebp
ret 0x10