Function at 0x1007a960
Capabilities:
Set environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1029d046
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x10373f78]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 4
lea esi, [edi + 0x24]
call fcn.10264bfb
add esp, 4
mov dword [ebp - 0x68], eax
mov dword [eax], esi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x78], esi
mov dword [ebp - 4], 0
mov eax, dword [edi + 0xd8]
nop
cmp eax, 1
je 0x1007a9db
mov byte [ebp - 0x5d], 0
jmp 0x1007adc6
lock inc dword [edi + 0xc0]
lea eax, [ebp - 0x5c]
mov ecx, edi
push eax
call fcn.1007aff0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4c], 0
jne 0x1007aa82
call fcn.10048fd0
mov esi, eax
mov dword [ebp - 0x2c], 0
push 0x21
xor eax, eax
mov dword [ebp - 0x1c], 0
push str.cant_generate_a_communication_id
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 1
call fcn.1004f0f0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
push ecx
lea eax, [ebp - 0x14]
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.10051dd0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 4
push eax
push str.Unable_to_run_an_out_of_process_handling._Error:__0
push 3
mov ecx, esi
call fcn.10080640
lea ecx, [ebp - 0x38]
call fcn.1004eed0
push fcn.1004a960
push 1
push 0x18
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
call fcn.10264c2b
mov byte [ebp - 0x5d], 0
jmp 0x1007ad79
mov ecx, dword [edi + 0xec]
push dword [edi + 0xa4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
lea eax, [edi + 0x8c]
push eax
lea eax, [edi + 0x58]
push eax
lea eax, [edi + 0xfc]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [edi + 0xa8]
push eax
lea eax, [ebp - 0x64]
push eax
call edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x1007acef
mov eax, dword [eax]
test eax, eax
je 0x1007acef
cmp eax, 0xffffffff
je 0x1007acef
mov ecx, dword [edi + 0xec]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
lea eax, [edi + 0x3c]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x74]
push eax
call edx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x1007ac60
mov eax, dword [ecx]
push 0x1032d518
mov eax, dword [eax + 4]
call eax
test al, al
je 0x1007ac60
mov dword [ebp - 0x44], 0
push 0x19
xor eax, eax
mov dword [ebp - 0x34], 0
push str.cat_process_tree_ipc_guid
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 9
call fcn.1004f0f0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x5c]
cmp dword [ebp - 0x30], 8
push ecx
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x1007abd7
call fcn.10048fd0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.100882e0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
push str.Unable_to_write_env_variable_name____0__._Error:__1
push 2
call fcn.10051390
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x1007abd7
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1007abcd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007adfa
push edx
push ecx
call fcn.1026505f
add esp, 8
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x1007ac15
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1007ac0b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007adfa
push edx
push ecx
call fcn.1026505f
add esp, 8
call fcn.10048fd0
lea ecx, [ebp - 0x5c]
push ecx
push str.Connected_to_a_new_monitor__communication_id__0_
push 1
mov ecx, eax
call fcn.10071280
lea eax, [ebp - 0x6c]
push eax
lea ecx, [edi + 0xc]
call fcn.10087110
lea eax, [ebp - 0x74]
push eax
lea ecx, [edi + 0xe4]
call fcn.1007c470
lea ecx, [ebp - 0x6c]
mov byte [ebp - 0x5d], 1
call fcn.1004c7c0
lea ecx, [ebp - 0x74]
call fcn.1004c7e0
jmp 0x1007ad71
call fcn.10048fd0
mov esi, eax
mov dword [ebp - 0x2c], 0
push 0x1c
xor eax, eax
mov dword [ebp - 0x1c], 0
push str.cant_connect_to_the_monitor
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 9
call fcn.1004f0f0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
push ecx
lea eax, [ebp - 0x14]
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.10051dd0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xc
push eax
push str.Unable_to_run_an_out_of_process_handling._Error:__0
push 3
mov ecx, esi
call fcn.10080640
lea ecx, [ebp - 0x38]
call fcn.1004eed0
push fcn.1004a960
push 1
push 0x18
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 9
push eax
call fcn.10264c2b
lea ecx, [ebp - 0x74]
mov byte [ebp - 0x5d], 0
call fcn.1004c7e0
jmp 0x1007ad71
call fcn.10048fd0
mov esi, eax
mov dword [ebp - 0x2c], 0
push 0x17
xor eax, eax
mov dword [ebp - 0x1c], 0
push str.cant_start_the_monitor
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 5
call fcn.1004f0f0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
push ecx
lea eax, [ebp - 0x14]
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.10051dd0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 8
push eax
push str.Unable_to_run_an_out_of_process_handling._Error:__0
push 3
mov ecx, esi
call fcn.10080640
lea ecx, [ebp - 0x38]
call fcn.1004eed0
push fcn.1004a960
push 1
push 0x18
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
push eax
call fcn.10264c2b
mov byte [ebp - 0x5d], 0
lea ecx, [ebp - 0x64]
call fcn.1007c3a0
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x1007adaf
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1007ada5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007adff
push edx
push ecx
call fcn.1026505f
add esp, 8
mov esi, dword [ebp - 0x68]
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 4
push esi
call fcn.1026505f
mov al, byte [ebp - 0x5d]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.102649e4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10275373
call fcn.10275373
int3