Function at 0x4e07e7
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x516114
call fcn.00484660
sub esp, 0x420
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], edi
push eax
call dword [sym.imp.BasicCtrlDll.dll_void___cdecl_CreateQQData_struct_IQQData___]
mov dword [esp], str.12tracymutex200212131100
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, edi
mov dword [0x57a57c], eax
je 0x4e0ae6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4e084b
push dword [0x57a57c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4e0ae6
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x4e085b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x10], edi
lea edx, [ebp - 0x42c]
mov eax, dword [ebx + 0x3c]
push edx
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x10]
push edx
push dword [ebx + 0x20]
push 0x3e8
push eax
call dword [ecx + 0xc]
cmp dword [ebp - 0x28], edi
jle 0x4e0a9e
mov eax, dword [ebx + 0x38]
lea esi, [ebx + 0x38]
cmp eax, edi
je 0x4e0896
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], edi
mov eax, dword [ebp - 0x10]
push esi
push str.arCrtData
push eax
mov ecx, dword [eax]
call dword [ecx + 0x6c]
mov eax, dword [ebp - 0x10]
lea edx, [ebx + 0x40]
push edx
push 0x533520
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetExeFolder_void_]
mov dword [esp], str.ADcrtlog.txt
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
call sub.MFC42.DLL_operator_3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x44]
call fcn.004840b8
push edi
lea ecx, [ebp - 0x44]
push dword [ebp - 0x24]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CFileFind::FindFile
push dword [ebp - 0x28]
mov esi, eax
neg esi
sbb esi, esi
lea eax, [ebp - 0x42c]
and esi, 0x50
push eax
inc esi
lea ecx, [ebp - 0x14]
inc esi
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
mov eax, dword [eax - 8]
add eax, 2
push eax
mov dword [ebp - 0x18], eax
call sub.MFC42.DLL_operatornew
mov edi, eax
pop ecx
test edi, edi
jne 0x4e0966
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFileFind::CFileFind
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
jmp 0x4e0aef
mov eax, dword [ebp - 0x14]
push dword [eax - 8]
call sub.WSOCK32.dll_htons
mov word [edi], ax
mov eax, dword [ebp - 0x14]
push dword [eax - 8]
push eax
lea eax, [edi + 2]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0x14]
push 0
push 0
mov eax, dword [eax - 8]
lea eax, [eax + edi + 2]
push eax
call sub.MSVCRT.dll_memcpy
push 0
call sub.MFC42.DLL_operatordelete
add esp, 0x1c
lea ecx, [ebp - 0x14]
push dword [ebp - 0x18]
push edi
push dword [ebp - 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call sub.MSVCRT.dll_memcpy
push edi
call sub.MFC42.DLL_operatordelete
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 6
push eax
call dword [sym.imp.BasicCtrlDll.dll_void___cdecl_CreateQQData_struct_IQQData___]
mov eax, dword [ebp - 0x1c]
add esp, 0x14
mov ecx, dword [eax]
push 0x1a
push 0x533594
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x1c]
push esi
push 0x53371c
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x18]
mov ecx, dword [eax]
push 0x533728
push eax
call dword [ecx + 0x24]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
and dword [ebp - 0x20], 0
mov eax, dword [ebx + 0x48]
lea edx, [ebp - 0x20]
push edx
push 0x51ab68
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 7
call dword [ecx + 0x1c]
test eax, eax
mov eax, dword [ebp - 0x20]
jne 0x4e0a57
test eax, eax
je 0x4e0a57
mov edx, dword [eax]
mov esi, dword [ebp - 0x1c]
push 0x51ab48
mov ecx, ebx
mov edi, eax
mov dword [ebp - 0x18], edx
call sub.MFC42.DLL_CCmdTarget::GetInterface
push eax
mov eax, dword [ebp - 0x18]
push esi
push edi
call dword [eax + 0x24]
mov eax, dword [ebp - 0x20]
test eax, eax
mov byte [ebp - 4], 6
je 0x4e0a65
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 5
test eax, eax
je 0x4e0a76
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFileFind::CFileFind
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
xor edi, edi
jmp 0x4e0ae6
cmp dword [ebx + 0x20], edi
jne 0x4e0acb
mov dword [ebx + 0x20], 1
push dword [0x57a57c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [0x57a57c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call fcn.004e07e7
jmp 0x4e0ae6
push dword [0x57a57c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [0x57a57c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x20], edi
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, edi
je 0x4e0af7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret