Function at 0x1988d70
Capabilities:
Check for peb beingdebugged flag
Check mutex on windows
Get number of processors
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1a1d65a
mov eax, dword fs:[0]
push eax
sub esp, 0x7fc
mov eax, dword [0x1a3df40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x115], 1
call fcn.019ca0b0
call fcn.01986ea0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
add ecx, 1
mov dword [ebp - 0x11c], ecx
mov edx, dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x11c], eax
mov ecx, dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11c]
add edx, 1
mov dword [ebp - 0x11c], edx
push 0x19879a0
call fcn.019ddfee
add esp, 4
mov eax, dword [0x1a580e8]
mov ecx, dword [0x1a580e8]
mov edx, dword [eax + 0x50]
xor edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._X::DA_08X
push 0x104
lea eax, [ebp - 0x224]
push eax
call fcn.019dcf74
add esp, 0x14
lea ecx, [ebp - 0x224]
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x1988e5a
mov byte [ebp - 0x115], 0
movzx edx, byte [ebp - 0x115]
test edx, edx
je 0x1989032
mov eax, dword [0x1a580e8]
mov ecx, dword [0x1a580e8]
mov edx, dword [eax + 0x48]
xor edx, dword [ecx + 0x6c]
mov eax, dword [0x1a580e8]
xor edx, dword [eax + 0x64]
and edx, 0x20
je 0x1989032
mov ecx, dword [0x1a580e8]
mov edx, dword [0x1a580e8]
mov eax, dword [ecx + 0x84]
xor eax, dword [edx + 8]
mov ecx, dword [0x1a580e8]
xor eax, dword [ecx + 0x50]
push eax
push str.RN_08X
push 0x104
lea edx, [ebp - 0x224]
push edx
call fcn.019dcf74
add esp, 0x10
lea eax, [ebp - 0x224]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x1989032
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1989032
push 0x7530
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
je 0x1988f29
cmp dword [ebp - 0x230], 0x80
jne 0x1989028
mov edx, dword [0x1a580e8]
mov eax, dword [0x1a580e8]
mov ecx, dword [edx + 0x84]
xor ecx, dword [eax + 8]
mov edx, dword [0x1a580e8]
xor ecx, dword [edx + 0x50]
push ecx
push str._08X
push 0x104
lea eax, [ebp - 0x224]
push eax
call fcn.019dcf74
add esp, 0x10
mov dword [ebp - 0x238], 0
jmp 0x1988f7b
mov ecx, dword [ebp - 0x238]
add ecx, 1
mov dword [ebp - 0x238], ecx
cmp dword [ebp - 0x238], 0x12c
jge 0x1988fb4
lea edx, [ebp - 0x224]
push edx
push str.MainClass
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
je 0x1988faa
jmp 0x1988fb4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1988f6c
cmp dword [ebp - 0x234], 0
je 0x198901b
mov eax, dword [0x1a580e8]
mov ecx, dword [0x1a580e8]
mov edx, dword [eax + 0x84]
xor edx, dword [ecx + 8]
mov eax, dword [0x1a580e8]
xor edx, dword [eax + 0x50]
mov dword [ebp - 0x244], edx
mov ecx, dword [0x1a57e60]
push ecx
call fcn.019d89f0
add esp, 4
add eax, 1
mov dword [ebp - 0x240], eax
mov edx, dword [0x1a57e60]
mov dword [ebp - 0x23c], edx
lea eax, [ebp - 0x244]
push eax
push 0
push 0x4a
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
jmp 0x1989619
push 1
call fcn.01989640
add esp, 4
movzx eax, byte [ebp - 0x115]
test eax, eax
je 0x19893b5
mov ecx, dword [0x1a580e8]
mov edx, dword [0x1a580e8]
mov eax, dword [ecx + 0x48]
xor eax, dword [edx + 0x6c]
mov ecx, dword [0x1a580e8]
xor eax, dword [ecx + 0x64]
and eax, 0x40
jne 0x19893b5
push 0x200
lea edx, [ebp - 0x444]
push edx
push str._PAD64
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x19893b5
push 0xc8
push 0x23
lea eax, [ebp - 0x444]
push eax
call fcn.019d9c70
add esp, 0xc
mov byte [ebp - 0x37c], 0
mov dword [ebp - 0x548], 1
jmp 0x19890c6
mov ecx, dword [ebp - 0x548]
add ecx, 1
mov dword [ebp - 0x548], ecx
cmp dword [ebp - 0x548], 0x40
jg 0x1989105
mov edx, dword [ebp - 0x548]
push edx
push str._PAD_d
push 0x100
lea eax, [ebp - 0x544]
push eax
call fcn.019dcf74
add esp, 0x10
lea ecx, [ebp - 0x444]
push ecx
lea edx, [ebp - 0x544]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x19890b7
mov eax, dword [0x1a580e8]
mov ecx, dword [0x1a580e8]
mov edx, dword [eax + 0x48]
xor edx, dword [ecx + 0x6c]
mov eax, dword [0x1a580e8]
xor edx, dword [eax + 0x64]
and edx, 0x10
jne 0x19893b5
lea ecx, [ebp - 0x724]
push ecx
call fcn.019bdea0
add esp, 4
mov dword [ebp - 4], 0
lea edx, [ebp - 0x30]
push edx
call fcn.0196eae0
add esp, 4
mov dword [ebp - 0x7fc], eax
mov eax, dword [ebp - 0x7fc]
mov dword [ebp - 0x800], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x800]
push ecx
lea ecx, [ebp - 0x5ac]
call fcn.019b7ca0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.01972ec0
cmp dword [0x1a57e58], 1
jne 0x19891b2
cmp dword [ebp - 0x718], 0
jne 0x19891b2
lea ecx, [ebp - 0x5ac]
call fcn.019b89a0
movzx edx, al
test edx, edx
jne 0x19891b2
lea ecx, [ebp - 0x5ac]
call fcn.019b8540
mov dword [ebp - 0x718], eax
push 0
lea eax, [ebp - 0x744]
push eax
call fcn.019bd770
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x744]
call fcn.01972f50
movzx ecx, al
test ecx, ecx
je 0x198921e
mov dword [ebp - 0x7ec], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x744]
call fcn.01972ec0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5ac]
call fcn.0196f2d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x724]
call fcn.01972a40
mov eax, dword [ebp - 0x7ec]
jmp 0x1989619
lea edx, [ebp - 0xb0]
push edx
call fcn.019be0d0
add esp, 4
mov dword [ebp - 0x804], eax
mov eax, dword [ebp - 0x804]
mov dword [ebp - 0x808], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x808]
push ecx
lea ecx, [ebp - 0x94]
call fcn.0196f250
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x744]
call fcn.01972f10
push eax
lea ecx, [ebp - 0x114]
call fcn.0196f250
mov byte [ebp - 4], 7
lea edx, [ebp - 0x5bc]
push edx
lea eax, [ebp - 0x724]
push eax
push 0x1a58c48
push 0x1a58c48
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x94]
push ecx
lea edx, [ebp - 0x114]
push edx
call fcn.019bd9d0
add esp, 0x28
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x7ed], al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x114]
call fcn.0196f2d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x94]
call fcn.0196f2d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb0]
call fcn.0197fc20
movzx eax, byte [ebp - 0x7ed]
test eax, eax
je 0x198935e
mov dword [0x1a57fa8], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Location_XEB__error_code__d_
push 0x100
push 0x1a57fb0
call fcn.019dcf74
add esp, 0x10
mov dword [ebp - 0x7f4], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x744]
call fcn.01972ec0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5ac]
call fcn.0196f2d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x724]
call fcn.01972a40
mov eax, dword [ebp - 0x7f4]
jmp 0x1989619
push 0x2710
mov ecx, dword [ebp - 0x5bc]
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov dword [ebp - 0x7f8], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x744]
call fcn.01972ec0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5ac]
call fcn.0196f2d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x724]
call fcn.01972a40
mov eax, dword [ebp - 0x7f8]
jmp 0x1989619
mov edx, dword [0x1a580e8]
mov eax, dword [0x1a580e8]
mov ecx, dword [edx + 0x48]
xor ecx, dword [eax + 0x6c]
mov edx, dword [0x1a580e8]
xor ecx, dword [edx + 0x64]
and ecx, 0x10
je 0x198956f
mov eax, dword [0x1a580e8]
mov ecx, dword [0x1a580e8]
mov edx, dword [eax + 0x50]
xor edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._X::DA_08X
push 0x104
lea eax, [ebp - 0x224]
push eax
call fcn.019dcf74
add esp, 0x14
lea ecx, [ebp - 0x224]
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x198956d
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [ebp - 0x745], 0
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x74c], eax
cmp dword [ebp - 0x74c], 0
je 0x1989488
push 0x1a41190
mov edx, dword [ebp - 0x74c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x7e8], eax
cmp dword [ebp - 0x7e8], 0
je 0x1989488
call dword [ebp - 0x7e8]
test eax, eax
je 0x1989488
mov byte [ebp - 0x745], 1
mov dword [ebp - 0x7e4], 0x94
lea eax, [ebp - 0x7e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x7d4], 2
jne 0x19894ba
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
jne 0x19894c6
jmp 0x19894cd
mov eax, dword fs:[0x20]
or eax, eax
jne 0x19894c6
jmp 0x19894cd
mov byte [0x1a57e8c], 1
movzx ecx, byte [ebp - 0x745]
test ecx, ecx
je 0x198950b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._X:DAF
push 0x104
lea edx, [ebp - 0x224]
push edx
call fcn.019dcf74
add esp, 0x10
lea eax, [ebp - 0x224]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x198956d
cmp dword [0x1a57e58], 0
sete cl
movzx edx, cl
push edx
call fcn.01971e50
add esp, 4
movzx eax, al
test eax, eax
jne 0x1989559
mov dword [0x1a57fa8], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Error_code__d_
push 0x100
push 0x1a57fb0
call fcn.019dcf74
add esp, 0x10
xor eax, eax
jmp 0x1989619
push 0
call fcn.01989640
add esp, 4
mov eax, 1
jmp 0x1989619
jmp 0x19895a1
push 0
push 0x1a408c4
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov ecx, dword [0x1a580e8]
mov edx, dword [0x1a580e8]
mov eax, dword [ecx + 0x38]
xor eax, dword [edx + 0x6c]
mov ecx, dword [0x1a580e8]
xor eax, dword [ecx + 0x64]
and eax, 2
je 0x19895a1
call fcn.019adf00
call fcn.019879d0
mov dword [ebp - 0x228], eax
push 0
call fcn.01989640
add esp, 4
push 0
call fcn.019ddfee
add esp, 4
cmp dword [ebp - 0x228], 1
jne 0x19895dd
push 0x1a57e58
call dword [0x1a57e88]
add esp, 4
mov dword [ebp - 0x228], eax
push 0x19879a0
call fcn.019ddfee
add esp, 4
cmp dword [0x1a57e84], 0
je 0x19895f9
call dword [0x1a57e84]
cmp dword [0x1a57fa0], 0
je 0x1989613
push 0
push 0
mov edx, dword [0x1a57f9c]
push edx
call dword [0x1a57fa0]
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.019d90da
mov esp, ebp
pop ebp
ret