Function at 0x4131a0
Capabilities:
Check mutex on windows
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4543bd
mov eax, dword fs:[0]
push eax
sub esp, 0x324
mov eax, dword [0x468080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1b0], eax
xor edi, edi
mov dword [ebp - 0x19c], edi
push 0x402ad0
call fcn.0042f6bf
add esp, 4
mov dword [ebp - 4], edi
push str.roroengine
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x1a0], eax
test eax, eax
je 0x413b13
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x413b13
push 0xa0
push edi
lea eax, [ebp - 0x104]
push eax
call fcn.0042fea0
add esp, 0xc
lea ecx, [ebp - 0x104]
call fcn.0040f840
mov byte [ebp - 4], 1
push edi
push str.localAppData
lea ecx, [ebp - 0x330]
call fcn.0040f470
mov byte [ebp - 4], 2
push str.roro
push str.projectCode
lea ecx, [ebp - 0x300]
call fcn.0040f470
mov byte [ebp - 4], 3
push str.engine
push str.projectModule
lea ecx, [ebp - 0x2d0]
call fcn.0040f470
mov byte [ebp - 4], 4
push str.RoRo
push str.projectName
lea ecx, [ebp - 0x2a0]
call fcn.0040f470
mov byte [ebp - 4], 5
lea eax, [ebp - 0x330]
mov dword [ebp - 0x1a8], eax
lea eax, [ebp - 0x270]
mov dword [ebp - 0x1a4], eax
push str.engine.json
lea ecx, [ebp - 0x4c]
call fcn.004045f0
mov byte [ebp - 4], 6
mov edx, eax
lea ecx, [ebp - 0x1d8]
call fcn.0040d190
mov esi, eax
mov byte [ebp - 4], 7
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x198], esp
push ecx
push dword [ebp - 0x1a4]
push dword [ebp - 0x1a8]
call fcn.00414a20
mov byte [ebp - 4], 8
push esi
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x104]
call fcn.0040fed0
mov byte [ebp - 0x18], al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1d8]
call fcn.0040e7b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4c]
call fcn.00405960
mov byte [ebp - 4], 1
push 0x410ec0
push 4
push 0x30
lea eax, [ebp - 0x330]
push eax
call fcn.0042e5e7
cmp byte [ebp - 0x18], 0
je 0x413adf
cmp dword [ebp - 0xf4], edi
je 0x413380
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x198], esp
lea eax, [ebp - 0x104]
push eax
call fcn.00404660
mov byte [ebp - 4], 9
mov byte [ebp - 4], 1
call fcn.00412680
add esp, 0x18
mov ecx, dword [ebp - 0xe8]
sub ecx, dword [ebp - 0xec]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x1e0], eax
cmp eax, 1
jle 0x413524
mov ecx, dword [ebp - 0xdc]
sub ecx, dword [ebp - 0xe0]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x1dc], eax
je 0x413524
push 0x38
push 0
lea eax, [ebp - 0x13c]
push eax
call fcn.0042fea0
add esp, 0xc
lea ecx, [ebp - 0x13c]
call fcn.00410820
mov byte [ebp - 4], 0xa
push dword [ebp - 0xec]
lea ecx, [ebp - 0x13c]
call fcn.00408f20
mov dword [ebp - 0x1c], eax
mov esi, 1
mov dword [ebp - 0x1b8], esi
mov ecx, dword [ebp - 0x1a4]
dec ecx
mov dword [ebp - 0x1a4], ecx
nop
test eax, eax
je 0x413511
lea ecx, [esi + esi*2]
mov eax, dword [ebp - 0xec]
lea edx, [eax + ecx*8]
lea ecx, [ebp - 0x4c]
call fcn.0040d3a0
mov byte [ebp - 4], 0xb
cmp esi, dword [ebp - 0x1a4]
jne 0x413718
xorps xmm0, xmm0
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 0xf
cmova eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x64]
push ecx
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00408d20
test al, al
je 0x4134f9
xor esi, esi
mov dword [ebp - 0x1b4], esi
cmp esi, dword [ebp - 0x198]
jge 0x4134f3
lea edi, [esi + esi*2]
shl edi, 4
add edi, dword [ebp - 0xe0]
push edi
lea ecx, [ebp - 0x64]
call fcn.00414b90
test eax, eax
jne 0x413712
sub esp, 0x18
mov dword [ebp - 0x198], esp
lea edx, [edi + 0x18]
mov ecx, esp
call fcn.0040d3a0
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0xc
call fcn.00412680
add esp, 0x18
mov edi, dword [ebp - 0x19c]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x64]
call fcn.00405960
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x4c]
call fcn.00405960
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.00410c90
mov byte [ebp - 0x191], 1
cmp byte [ebp - 0xd4], 0
je 0x4135d9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x198], eax
test eax, eax
je 0x4135d9
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042e94d
add esp, 4
mov esi, eax
push esi
push dword [ebp - 0x198]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4135c3
xor ecx, ecx
mov edx, 0xff
mov dword [ebp - 0x1bc], ecx
cmp ecx, eax
jae 0x4135c3
cmp word [esi + ecx*2], dx
jbe 0x41374a
sub esp, 0x18
mov dword [ebp - 0x198], esp
mov edx, 4
mov ecx, esp
call fcn.004127b0
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 1
call fcn.00412e70
add esp, 0x18
mov byte [ebp - 0x191], 0
push esi
call fcn.0042e49c
add esp, 4
cmp byte [ebp - 0x191], 0
je 0x413b04
push 0x44
push 0
lea eax, [ebp - 0x180]
push eax
call fcn.0042fea0
add esp, 0xc
mov dword [ebp - 0x180], 0x44
xorps xmm0, xmm0
movups xmmword [ebp - 0x190], xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x34]
push eax
xor edx, edx
lea ecx, [ebp - 0xd0]
call fcn.00412f30
lea eax, [ebp - 0x34]
push eax
mov edx, str._classpath
lea ecx, [ebp - 0xb8]
call fcn.00412f30
lea eax, [ebp - 0x34]
push eax
mov edx, 0x45fbe4
lea ecx, [ebp - 0xb8]
call fcn.00412f30
lea eax, [ebp - 0x34]
push eax
mov edx, str.__add_modules
lea ecx, [ebp - 0xa0]
call fcn.00412f30
lea eax, [ebp - 0x88]
push eax
mov edx, str.__m_roro.engine_roro.engine.Launcher_2_
lea ecx, [ebp - 0x1d8]
call fcn.0040e980
add esp, 0x14
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x34]
call fcn.0040dfb0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x1d8]
call fcn.00405960
mov ecx, dword [ebp - 0x6c]
sub ecx, dword [ebp - 0x70]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [ebp - 0x1a4], ecx
xor eax, eax
mov dword [ebp - 0x1ac], eax
cmp eax, ecx
jge 0x413802
lea esi, [eax + eax*2]
shl esi, 4
add esi, dword [ebp - 0x70]
lea edx, [esi + 0x18]
lea ecx, [ebp - 0x1f8]
call fcn.0040d3a0
mov dword [ebp - 0x198], eax
mov byte [ebp - 4], 0x12
mov byte [ebp - 0x18], 0x20
mov byte [ebp - 4], 0x13
mov ecx, dword [esi + 0x10]
cmp ecx, 0x7fffffff
je 0x413b49
jmp 0x413750
inc esi
jmp 0x4134a5
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 0xf
cmova eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00408c30
mov dword [ebp - 0x1c], eax
inc esi
mov dword [ebp - 0x1b8], esi
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x4c]
call fcn.00405960
mov eax, dword [ebp - 0x1c]
jmp 0x413430
inc ecx
jmp 0x413583
cmp dword [esi + 0x14], 0xf
jbe 0x413758
mov esi, dword [esi]
push ecx
push esi
push 1
lea eax, [ebp - 0x18]
push eax
push ecx
push dword [ebp - 0x1a0]
lea ecx, [ebp - 0x4c]
call fcn.0040f300
or edi, 1
mov dword [ebp - 0x19c], edi
push ecx
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x64]
call fcn.0040ea20
mov byte [ebp - 4], 0x14
push dword [ebp - 0x198]
mov edx, eax
lea ecx, [ebp - 0x1d8]
call fcn.0040e920
add esp, 8
mov byte [ebp - 4], 0x15
push eax
lea ecx, [ebp - 0x34]
call fcn.0040dfb0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1d8]
call fcn.00405960
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x64]
call fcn.00405960
and edi, 0xfffffffe
mov dword [ebp - 0x19c], edi
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x4c]
call fcn.00405960
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x1f8]
call fcn.00405960
mov eax, dword [ebp - 0x1ac]
inc eax
mov dword [ebp - 0x1ac], eax
mov ecx, dword [ebp - 0x1a4]
jmp 0x4136d0
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c0], esi
cmp esi, edi
jge 0x413866
mov eax, dword [ebp - 0x1b0]
push dword [eax + esi*4]
lea ecx, [ebp - 0x1d8]
call fcn.004045f0
mov byte [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0x1f8]
call fcn.004152c0
add esp, 4
mov byte [ebp - 4], 0x19
push eax
lea ecx, [ebp - 0x34]
call fcn.0040dfb0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x1f8]
call fcn.00405960
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x1d8]
call fcn.00405960
inc esi
jmp 0x413807
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 0xf
cmova eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x190]
push ecx
lea ecx, [ebp - 0x180]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push str.jre_binjavaw.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x413aac
push 0xffffffffffffffff
push dword [ebp - 0x190]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x190]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x413a91
cmp dword [ebp - 0x1c], 0
je 0x413a4e
push ecx
lea ecx, [ebp - 0x320]
call fcn.00414650
mov edi, eax
mov byte [ebp - 4], 0x1a
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [edx + edi + 0x24]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [edx + edi + 0x24], eax
push dword [ebp - 0x1c]
lea ecx, [edi + 0x10]
call fcn.00415900
mov byte [ebp - 4], 0x1b
lea ecx, [edi + 0x18]
lea eax, [ebp - 0x1d8]
push eax
call fcn.00415090
mov edi, dword [ebp - 0x19c]
or edi, 2
mov dword [ebp - 0x19c], edi
xor edx, edx
lea ecx, [ebp - 0x270]
call fcn.004127b0
mov esi, eax
mov byte [ebp - 4], 0x1c
mov edx, 5
lea ecx, [ebp - 0x258]
call fcn.004127b0
mov byte [ebp - 4], 0x1d
push 0x45fc4c
mov edx, eax
lea ecx, [ebp - 0x240]
call fcn.00415400
mov byte [ebp - 4], 0x1e
push esi
mov edx, eax
lea ecx, [ebp - 0x228]
call fcn.00415510
mov byte [ebp - 4], 0x1f
push str.:_0x
mov edx, eax
lea ecx, [ebp - 0x210]
call fcn.00415400
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x1d8]
push ecx
mov edx, eax
lea ecx, [ebp - 0x1f8]
call fcn.00415510
mov byte [ebp - 4], 0x21
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x1b0], esp
push 0x45fc38
mov edx, eax
call fcn.00415400
add esp, 4
mov byte [ebp - 4], 0x22
mov byte [ebp - 4], 0x21
call fcn.00412e70
add esp, 0x18
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x1f8]
call fcn.0040e7b0
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x210]
call fcn.0040e7b0
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x228]
call fcn.0040e7b0
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x240]
call fcn.0040e7b0
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x258]
call fcn.0040e7b0
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x270]
call fcn.0040e7b0
and edi, 0xfffffffd
mov dword [ebp - 0x19c], edi
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x1d8]
call fcn.0040e7b0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x320]
call fcn.00413c00
push dword [ebp - 0x190]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18c]
call esi
push dword [ebp - 0x1a0]
call esi
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00405960
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x104]
call fcn.00413b50
mov eax, esi
jmp 0x413b2d
sub esp, 0x18
mov dword [ebp - 0x1a0], esp
mov edx, 1
mov ecx, esp
call fcn.004127b0
mov byte [ebp - 4], 0x23
jmp 0x413ac5
sub esp, 0x18
mov dword [ebp - 0x1a0], esp
mov edx, 3
mov ecx, esp
call fcn.004127b0
mov byte [ebp - 4], 0x24
mov byte [ebp - 4], 0x10
call fcn.00412e70
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00405960
jmp 0x413b04
sub esp, 0x18
mov dword [ebp - 0x1a0], esp
mov edx, 2
mov ecx, esp
call fcn.004127b0
mov byte [ebp - 4], 0x25
mov byte [ebp - 4], 1
call fcn.00412e70
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x104]
call fcn.00413b50
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x413b2d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042e48e
mov esp, ebp
pop ebp
ret
call fcn.004015b0
int3