Function at 0x4db1c0
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 0x6bbc46
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x78efc4]
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.00677616
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 0x4db23b
mov byte [ebp - 0x5d], 0
jmp 0x4db626
lock inc dword [edi + 0xc0]
lea eax, [ebp - 0x5c]
mov ecx, edi
push eax
call fcn.004db850
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4c], 0
jne 0x4db2e2
call fcn.004486f0
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.0044d800
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.0044fb00
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.004dd4f0
lea ecx, [ebp - 0x38]
call fcn.0044d720
push fcn.0044bb60
push 1
push 0x18
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
call fcn.00677646
mov byte [ebp - 0x5d], 0
jmp 0x4db5d9
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 0x4db54f
mov eax, dword [eax]
test eax, eax
je 0x4db54f
cmp eax, 0xffffffff
je 0x4db54f
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 0x4db4c0
mov eax, dword [ecx]
push 0x744c50
mov eax, dword [eax + 4]
call eax
test al, al
je 0x4db4c0
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.0044d800
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 0x4db437
call fcn.004486f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.00531420
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.00454910
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4db437
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4db42d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4db65a
push edx
push ecx
call fcn.006779b1
add esp, 8
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x4db475
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4db46b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4db65a
push edx
push ecx
call fcn.006779b1
add esp, 8
call fcn.004486f0
lea ecx, [ebp - 0x5c]
push ecx
push str.Connected_to_a_new_monitor__communication_id__0_
push 1
mov ecx, eax
call fcn.0044f2f0
lea eax, [ebp - 0x6c]
push eax
lea ecx, [edi + 0xc]
call fcn.005378c0
lea eax, [ebp - 0x74]
push eax
lea ecx, [edi + 0xe4]
call fcn.004b7f30
lea ecx, [ebp - 0x6c]
mov byte [ebp - 0x5d], 1
call fcn.0044ca20
lea ecx, [ebp - 0x74]
call fcn.0044b460
jmp 0x4db5d1
call fcn.004486f0
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.0044d800
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.0044fb00
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.004dd4f0
lea ecx, [ebp - 0x38]
call fcn.0044d720
push fcn.0044bb60
push 1
push 0x18
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 9
push eax
call fcn.00677646
lea ecx, [ebp - 0x74]
mov byte [ebp - 0x5d], 0
call fcn.0044b460
jmp 0x4db5d1
call fcn.004486f0
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.0044d800
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.0044fb00
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.004dd4f0
lea ecx, [ebp - 0x38]
call fcn.0044d720
push fcn.0044bb60
push 1
push 0x18
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
push eax
call fcn.00677646
mov byte [ebp - 0x5d], 0
lea ecx, [ebp - 0x64]
call fcn.00464c60
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x4db60f
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4db605
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4db65f
push edx
push ecx
call fcn.006779b1
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.006779b1
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.006773ff
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00682da2
call fcn.00682da2
int3