Function at 0x40dfc0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43282b
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x446054]
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 esi, ecx
push 0x8001
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetSearchPathMode]
test eax, eax
je 0x40e6b3
push 0x44074c
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
test eax, eax
je 0x40e6cc
push 0x440768
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40e6e5
push 0x44079c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40e05f
push 0x800
mov ecx, edi
call dword [0x4341b4]
call edi
test eax, eax
je 0x40e6fe
push 0
push 0x4407d8
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x40e717
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x40e730
push 0
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
test eax, eax
je 0x40e749
jmp 0x40e33f
xorps xmm0, xmm0
mov dword [ebp - 4], 0xa
movlpd qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.0040e8c0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x24]
call fcn.0040e950
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x24]
push dword [esi]
call fcn.0040e9f0
mov esi, dword [esi + 4]
test esi, esi
je 0x40e3c0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0xc
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40e771
cmp esi, 1
jne 0x40e790
cmp dword [ebp - 0x1c], 0
jne 0x40e790
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40e3ce
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40e3dc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040f030
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.00414aa1
mov esp, ebp
pop ebp
ret
push 0x440730
lea ecx, [ebp - 0x54]
call fcn.00404628
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.0040f010
push 0x440750
lea ecx, [ebp - 0x54]
call fcn.00404628
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.0040f010
push 0x440784
lea ecx, [ebp - 0x54]
call fcn.00404628
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.0040f010
push 0x4407b8
lea ecx, [ebp - 0x54]
call fcn.00404628
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.0040f010
push 0x43ff44
lea ecx, [ebp - 0x54]
call fcn.00404628
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.0040f010
push 0x4406fc
lea ecx, [ebp - 0x54]
call fcn.00404628
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 6
call fcn.0040f010
push 0x440714
lea ecx, [ebp - 0x54]
call fcn.00404628
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 7
call fcn.0040f010
call fcn.00402529
call fcn.00402479
call fcn.004192df
push 0x4406ac
lea ecx, [ebp - 0xa4]
call fcn.00404628
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xd
call fcn.0040e860
push 0x4406d8
lea ecx, [ebp - 0xb0]
call fcn.00402649
push 0x444c6c
lea eax, [ebp - 0xb0]
push eax
call fcn.004163e1
call fcn.00402529
call fcn.00402479
int3