Function at 0x4058e0
Capabilities:
Check mutex on windows
Create thread
Enumerate process modules
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x237c
call fcn.00426330
mov eax, dword [0x431040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x436a48], 0
push ebx
push esi
push edi
je 0x405c00
push 0
lea eax, [ebp - 0x150]
push eax
push 0x104
push str.GuardDetect.dll
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x405c53
lea eax, [ebp - 0x2370]
mov dword [ebp - 0x2370], 0
push eax
push 0x1000
lea eax, [ebp - 0x1360]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x405c53
mov eax, dword [ebp - 0x2370]
xor ebx, ebx
shr eax, 2
mov dword [ebp - 0x2378], eax
mov dword [ebp - 0x2374], ebx
test eax, eax
je 0x405c00
lea eax, [ebp - 0x1360]
lea ebx, [eax + ebx*4]
mov eax, dword [ebx]
mov dword [ebp - 0x2368], ebx
test eax, eax
je 0x405be7
push eax
call fcn.00405c70
test al, al
je 0x405be7
push dword [ebx]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x2364], ebx
test ebx, ebx
je 0x405be7
push 0x104
lea eax, [ebp - 0x258]
push eax
push 0
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
test eax, eax
je 0x405be0
mov ecx, str.GameServer.exe
lea eax, [ebp - 0x258]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405a00
test dl, dl
je 0x4059fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405a00
add eax, 2
add ecx, 2
test dl, dl
jne 0x4059e0
xor eax, eax
jmp 0x405a05
sbb eax, eax
or eax, 1
test eax, eax
jne 0x405be0
mov dword [ebp - 0x236c], eax
lea eax, [ebp - 0x236c]
push eax
push 0x1000
lea eax, [ebp - 0x2360]
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x405be0
mov edi, dword [ebp - 0x236c]
xor esi, esi
shr edi, 2
test edi, edi
je 0x405aa2
push 0x104
lea eax, [ebp - 0x360]
push eax
push dword [ebp + esi*4 - 0x2360]
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
je 0x405a9d
lea eax, [ebp - 0x150]
lea ecx, [ebp - 0x360]
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x405a90
test dl, dl
je 0x405a8c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x405a90
add ecx, 2
add eax, 2
test dl, dl
jne 0x405a70
xor eax, eax
jmp 0x405a95
sbb eax, eax
or eax, 1
test eax, eax
je 0x405be0
inc esi
cmp esi, edi
jl 0x405a44
lea esi, [ebp - 0x150]
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x405ab0
push 4
push 0x1000
sub esi, ecx
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x405bc2
push 0
push esi
lea eax, [ebp - 0x150]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x405afd
push 0x8000
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x405bc2
push str.LoadLibraryA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x236c], eax
test eax, eax
jne 0x405b31
push 0x8000
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x405bc2
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
lea eax, [ebp - 0x48]
push str.XTMPID_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
test ebx, ebx
jne 0x405b75
mov ebx, dword [ebp - 0x2364]
push 0x8000
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x405bc2
push 0
push 0
push edi
push dword [ebp - 0x236c]
push 0
push 0
push dword [ebp - 0x2364]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x405ba1
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405c13
push 0x8000
push esi
push edi
push dword [ebp - 0x2364]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call eax
mov ebx, dword [ebp - 0x2364]
mov eax, dword [ebp - 0x2368]
lea ecx, [ebp - 0x258]
push ecx
push dword [eax]
push str._ProcessManager___d___s__Could_not_initialize_process_
push 1
call fcn.004092b0
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x2374]
inc ebx
mov dword [ebp - 0x2374], ebx
cmp ebx, dword [ebp - 0x2378]
jl 0x405972
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040971a
mov esp, ebp
pop ebp
ret
push 0x8000
push esi
mov esi, dword [ebp - 0x2364]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 0x2368]
push dword [eax]
push str._ProcessManager___d___s__Initialization_successful_
push 3
call fcn.004092b0
add esp, 0x10
push esi
call ebx
jmp 0x405be7
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040971a
mov esp, ebp
pop ebp
ret