Function at 0x7187f5
Capabilities:
Accept command line arguments
Check for trap flag exception
Check mutex on windows
Create process on windows
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7275b0
push 0x71d3d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffff8c8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x20], 1
mov eax, dword [0x724228]
xor eax, dword [0x724258]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x72444c
lea ecx, [ebp - 0x124]
push ecx
call fcn.0071d1ff
add esp, 0x10
lea edx, [ebp - 0x124]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x718865
mov byte [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
and eax, 0xff
test eax, eax
je 0x718a0c
mov ecx, dword [0x724268]
xor ecx, dword [0x724234]
xor ecx, dword [0x724254]
and ecx, 0x20
test ecx, ecx
je 0x718a0c
mov edx, dword [0x724264]
xor edx, dword [0x724248]
xor edx, dword [0x724228]
push edx
push str.RN_08X
lea eax, [ebp - 0x124]
push eax
call fcn.0071d1ff
add esp, 0xc
lea ecx, [ebp - 0x124]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x718a0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x718a0c
push 0x7530
mov edx, dword [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x71891f
cmp dword [ebp - 0x12c], 0x80
jne 0x718a02
mov eax, dword [0x724264]
xor eax, dword [0x724248]
xor eax, dword [0x724228]
push eax
push 0x724460
lea ecx, [ebp - 0x124]
push ecx
call fcn.0071d1ff
add esp, 0xc
mov dword [ebp - 0x134], 0
jmp 0x718960
mov edx, dword [ebp - 0x134]
add edx, 1
mov dword [ebp - 0x134], edx
cmp dword [ebp - 0x134], 0x12c
jge 0x718999
lea eax, [ebp - 0x124]
push eax
push str.MainClass
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x71898f
jmp 0x718999
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x718951
cmp dword [ebp - 0x130], 0
je 0x7189f5
mov ecx, dword [0x724264]
xor ecx, dword [0x724248]
xor ecx, dword [0x724228]
mov dword [ebp - 0x140], ecx
mov edx, dword [0x727a78]
push edx
call fcn.0071d260
add esp, 4
add eax, 1
mov dword [ebp - 0x13c], eax
mov eax, dword [0x727a78]
mov dword [ebp - 0x138], eax
lea ecx, [ebp - 0x140]
push ecx
push 0
push 0x4a
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
jmp 0x718e1a
push 1
call fcn.00718e2b
add esp, 4
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
test ecx, ecx
je 0x718bf5
mov edx, dword [0x724268]
xor edx, dword [0x724234]
xor edx, dword [0x724254]
and edx, 0x40
test edx, edx
jne 0x718bf5
push 0x200
lea eax, [ebp - 0x340]
push eax
push str._PAD64
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x718bf5
push 0xc8
push 0x23
lea ecx, [ebp - 0x340]
push ecx
call fcn.0071d170
add esp, 0xc
mov byte [ebp - 0x278], 0
mov dword [ebp - 0x444], 1
jmp 0x718a9b
mov edx, dword [ebp - 0x444]
add edx, 1
mov dword [ebp - 0x444], edx
cmp dword [ebp - 0x444], 0x40
jg 0x718ad5
mov eax, dword [ebp - 0x444]
push eax
push str._PAD_d
lea ecx, [ebp - 0x440]
push ecx
call fcn.0071d1ff
add esp, 0xc
lea edx, [ebp - 0x340]
push edx
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x718a8c
mov ecx, dword [0x724268]
xor ecx, dword [0x724234]
xor ecx, dword [0x724254]
and ecx, 0x10
test ecx, ecx
jne 0x718bf5
lea edx, [ebp - 0x59c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov al, byte [0x727db0]
mov byte [ebp - 0x6a0], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x69f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov cl, byte [0x727db4]
mov byte [ebp - 0x558], cl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x557]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [0x727a70], 1
jne 0x718b70
cmp dword [ebp - 0x590], 0
jne 0x718b70
lea edx, [ebp - 0x6a0]
push edx
call fcn.0071a2e2
add esp, 4
and eax, 0xff
test eax, eax
je 0x718b70
lea eax, [ebp - 0x6a0]
mov dword [ebp - 0x590], eax
push 0x104
lea ecx, [ebp - 0x558]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x718b8f
xor eax, eax
jmp 0x718e1a
lea edx, [ebp - 0x454]
push edx
lea eax, [ebp - 0x59c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0x558]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x718beb
mov dword [0x727ca4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Location_XEB__error_code__d_
push 0x727ca8
call fcn.0071d1ff
add esp, 0xc
xor eax, eax
jmp 0x718e1a
mov eax, 1
jmp 0x718e1a
mov edx, dword [0x724268]
xor edx, dword [0x724234]
xor edx, dword [0x724254]
and edx, 0x10
test edx, edx
je 0x718dd7
mov eax, dword [0x724228]
xor eax, dword [0x724258]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x7244a4
lea ecx, [ebp - 0x124]
push ecx
call fcn.0071d1ff
add esp, 0x10
lea edx, [ebp - 0x124]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x718dd7
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [ebp - 0x6a4], 0
push 0x7244b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x6a8], eax
cmp dword [ebp - 0x6a8], 0
je 0x718cb7
push 0x7244bc
mov eax, dword [ebp - 0x6a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x740], eax
cmp dword [ebp - 0x740], 0
je 0x718cb7
call dword [ebp - 0x740]
test eax, eax
je 0x718cb7
mov byte [ebp - 0x6a4], 1
mov dword [ebp - 0x73c], 0x94
lea ecx, [ebp - 0x73c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x72c], 2
je 0x718d44
mov byte [ebp - 0x744], 0
mov dword [ebp - 4], 0
pushf
pop eax
or eax, 0x100
push eax
popf
nop
mov dword [ebp - 4], 0xffffffff
jmp 0x718d2d
mov edx, dword [ebp - 0x744]
and edx, 0xff
test edx, edx
jne 0x718d44
mov byte [0x727df4], 1
mov eax, dword [ebp - 0x6a4]
and eax, 0xff
test eax, eax
je 0x718d81
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x7244d0
lea ecx, [ebp - 0x124]
push ecx
call fcn.0071d1ff
add esp, 0xc
lea edx, [ebp - 0x124]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x718dd7
xor eax, eax
cmp dword [0x727a70], 0
sete al
push eax
call fcn.0071a54f
add esp, 4
and eax, 0xff
test eax, eax
jne 0x718dc6
mov dword [0x727ca4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Error_code__d_
push 0x727ca8
call fcn.0071d1ff
add esp, 0xc
xor eax, eax
jmp 0x718e1a
push 0
call fcn.00718e2b
add esp, 4
mov eax, 1
jmp 0x718e1a
call fcn.00717bad
mov dword [ebp - 0x1c], eax
push 0
call fcn.00718e2b
add esp, 4
cmp dword [ebp - 0x1c], 1
jne 0x718e00
push 0x727a70
call dword [0x727a98]
add esp, 4
mov dword [ebp - 0x1c], eax
call dword [0x727a94]
push 0
push 0
mov ecx, dword [0x727c9c]
push ecx
call dword [0x727ca0]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret