Function at 0x409c00
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0x418]
sub esp, 0x418
push 0xffffffffffffffff
push 0x47ec28
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4b445c]
xor eax, ebp
mov dword [ebp + 0x414], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x420]
mov dword [ebp - 0x20], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp + 0x310], bl
push 0x103
push ebx
lea eax, [ebp + 0x311]
push eax
call fcn.0045eb50
add esp, 0xc
lea ecx, [ebp]
call fcn.004233e0
mov byte [ebp - 4], 1
push ebx
push str.RTSClient.ini
lea ecx, [ebp]
call fcn.004234b0
push 0x48bb64
lea ecx, [ebp + 0x310]
push ecx
push str.ECharacterID
push str.RTS_Tunnel_Options
lea ecx, [ebp]
call fcn.00422f90
lea ecx, [ebp]
call fcn.00423230
push eax
lea ecx, [ebp - 0x14]
call fcn.00407010
mov byte [ebp - 4], 2
lea edx, [ebp + 0x310]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004095c0
add esp, 0xc
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x14]
call fcn.00409680
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00401ab0
push 0x48bb3c
push 0x48b9c4
lea ecx, [ebp - 0x14]
call fcn.004093b0
push 0x48bb64
lea edx, [ebp + 0x310]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x409d5c
cmp edi, ebx
je 0x409d1c
push str.RTSClientLite.exe_read_EuCharacterId_return_0__exit.
push edi
call fcn.00430fd0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401ab0
mov byte [ebp - 4], bl
lea ecx, [ebp]
call fcn.00422f00
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x414]
xor ecx, ebp
call fcn.0045e17e
add ebp, 0x418
mov esp, ebp
pop ebp
ret 4
cmp edi, ebx
je 0x409d84
lea eax, [ebp + 0x310]
push eax
push str.RTSClientLite.exe_read_EuCharacterId:__s
push edi
call fcn.00430fd0
mov ecx, dword [ebp - 0x14]
push ecx
push str.strMutexName:__s
push edi
call fcn.00430fd0
add esp, 0x18
push str.Web1800ClientLite_Win32_Instance_Mutex
lea ecx, [ebp - 0x18]
call fcn.00407010
mov byte [ebp - 4], 4
lea edx, [ebp + 0x310]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004095c0
add esp, 0xc
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x18]
call fcn.00409680
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00401ab0
mov edx, dword [ebp - 0x18]
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebx
je 0x409e42
cmp eax, 0xb7
jne 0x409e15
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x409e04
push str.RTSClient_had_been_started.
push edi
call fcn.00430fd0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00401ab0
jmp 0x409d1c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00401ab0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401ab0
mov byte [ebp - 4], bl
lea ecx, [ebp]
call fcn.00422f00
mov eax, 1
jmp 0x409d35
cmp edi, ebx
je 0x409e58
mov eax, dword [ebp - 0x14]
push eax
push str.Create_mutex_for_RTSClient_failed__MutexName:__s
push edi
call fcn.00430fd0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00401ab0
jmp 0x409d1c