Function at 0x40185f
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0xa0
mov ebx, ecx
call sym.___main
mov dword [esp + 8], str.UpdateGibLab
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateMutexA_12
sub esp, 0xc
test eax, eax
setne al
test al, al
je 0x4018e5
call sym._GetLastError_0
cmp eax, 0xb7
sete al
test al, al
je 0x4018e5
mov dword [esp + 0xc], 0x50010
mov dword [esp + 8], 0x40a0bc
mov dword [esp + 4], 0x40a0cc
mov dword [esp], 0
call sym._MessageBoxW_16
sub esp, 0x10
mov eax, 0
jmp 0x401de3
mov dword [esp], str.GibLabLocal.exe
call sym.IsProcessPresent_char_const_
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4019de
mov dword [esp + 0xc], 0x50024
mov dword [esp + 8], 0x40a10e
mov dword [esp + 4], 0x40a124
mov dword [esp], 0
call sym._MessageBoxW_16
sub esp, 0x10
cmp eax, 6
sete al
test al, al
je 0x4019ad
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym.childProcess_unsigned_long_
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._TerminateProcess_8
sub esp, 8
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._TerminateProcess_8
sub esp, 8
jmp 0x4019de
mov dword [esp + 0xc], 0x50030
mov dword [esp + 8], 0x40a10e
mov dword [esp + 4], 0x40a188
mov dword [esp], 0
call sym._MessageBoxW_16
sub esp, 0x10
mov eax, 0
jmp 0x401de3
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov dword [esp], eax
call sym._strlen
dec eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
jmp 0x4019fc
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
js 0x401a12
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x20]
mov al, byte [eax]
cmp al, 0x5c
je 0x401a12
mov al, 1
jmp 0x401a14
mov al, 0
test al, al
jne 0x4019f9
cmp dword [ebp - 0xc], 0
jle 0x401a3d
mov eax, dword [ebp - 0xc]
inc eax
mov edx, eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0x40c020
call sym._memcpy
mov eax, dword [ebp - 0xc]
add eax, 2
mov byte [eax + 0x40c020], 0
mov dword [esp], 0x40c020
call sym.msvcr_char_
mov dword [esp], 0x40c854
call sym.create_vm_JavaVM__
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x401a75
mov eax, 1
jmp 0x401de3
mov dword [esp], 0x45
call sym.str_int_
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.FindClass_char_const_
mov dword [ebp - 0x28], eax
mov dword [esp], 0x47
call sym.str_int_
mov ebx, eax
mov dword [esp], 0x46
call sym.str_int_
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.GetStaticMethodID__jclass__char_const__char_const_
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.CallStaticObjectMethod__jclass___jmethodID__..._
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.NewGlobalRef__jobject_
mov dword [ebp - 0x30], eax
mov dword [esp + 0x10], 0x59b
mov dword [esp + 0xc], 0x4060c0
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40a1c8
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.DefineClass_char_const___jobject__signed_char_const__long_
mov dword [ebp - 0x34], eax
mov dword [esp + 0x10], 0x530
mov dword [esp + 0xc], 0x406660
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40a1cc
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.DefineClass_char_const___jobject__signed_char_const__long_
mov dword [ebp - 0x38], eax
mov dword [esp + 0x10], 0x25f
mov dword [esp + 0xc], 0x406ba0
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40a1d0
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.DefineClass_char_const___jobject__signed_char_const__long_
mov dword [ebp - 0x3c], eax
mov dword [esp + 0x10], 0xd24
mov dword [esp + 0xc], 0x406e00
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], str.z_cl
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.DefineClass_char_const___jobject__signed_char_const__long_
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.NewGlobalRef__jobject_
mov dword [ebp - 0x44], eax
mov dword [esp], 0x43
call sym.str_int_
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.FindClass_char_const_
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.NewGlobalRef__jobject_
mov dword [ebp - 0x4c], eax
mov dword [esp], 0x49
call sym.str_int_
mov ebx, eax
mov dword [esp], 0x48
call sym.str_int_
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.GetMethodID__jclass__char_const__char_const_
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x50]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.CallObjectMethod__jobject___jmethodID__..._
mov dword [ebp - 0x84], 0x40a1d9
mov dword [esp], 0x4a
call sym.str_int_
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], sym.s_JNIEnv____jclass_
mov dword [esp + 0xc], 1
lea eax, [ebp - 0x84]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.RegisterNatives__jclass__JNINativeMethod_const__long_
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.ExceptionCheck__
test al, al
setne al
test al, al
je 0x401cb5
mov dword [esp], str.ERR_RegisterNatives_LOADER
call sym._puts
mov eax, 0
jmp 0x401de3
mov dword [esp + 0xc], 0x40a1f6
mov dword [esp + 8], str._init_
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.GetMethodID__jclass__char_const__char_const_
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.NewObject__jclass___jmethodID__..._
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.NewGlobalRef__jobject_
mov dword [ebp - 0x5c], eax
mov dword [esp + 0xc], str._Ljava_lang_String__Ljava_lang_Class_
mov dword [esp + 8], str.loadClass
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.GetMethodID__jclass__char_const__char_const_
mov dword [ebp - 0x60], eax
mov dword [esp + 4], str.xsmp.giblab.update.Update
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.NewStringUTF_char_const_
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.CallObjectMethod__jobject___jmethodID__..._
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x401d88
cmp dword [ebp - 0x50], 0
je 0x401d88
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x50]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.CallObjectMethod__jobject___jmethodID__..._
mov dword [esp], 0x51
call sym.str_int_
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.main
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.GetStaticMethodID__jclass__char_const__char_const_
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call method.JNIEnv_.CallStaticVoidMethod__jclass___jmethodID__..._
mov eax, dword [0x40c854]
mov dword [esp], eax
call method.JavaVM_.DestroyJavaVM__
mov dword [ebp - 0x6c], eax
mov eax, 0
lea esp, [ebp - 8]
add esp, 0
pop ecx
pop ebx
leave
lea esp, [ecx - 4]
ret