Function at 0x1007bfd8
Capabilities:
Set environment variable

Disassembly:
push 0x4fc
mov eax, 0x100f4918
call fcn.100cca34
mov ebx, ecx
xor ecx, ecx
xor eax, eax
push 7
pop esi
mov dword [ebp - 0x4e0], ecx
mov dword [ebp - 0x4dc], ecx
mov dword [ebp - 0x4e0], ecx
mov dword [ebp - 0x4dc], esi
mov word [ebp - 0x4f0], ax
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x488]
push 0x60
pop eax
mov word [ebp - 0x488], ax
push 0x51
pop eax
mov word [ebp - 0x486], ax
push 0x4f
pop eax
mov word [ebp - 0x484], ax
push 0x56
pop eax
mov word [ebp - 0x482], ax
push 0x4b
pop eax
mov word [ebp - 0x480], ax
push 0x57
pop eax
mov word [ebp - 0x47e], ax
push 0x4c
pop eax
mov word [ebp - 0x47c], ax
push 0x4d
pop eax
mov word [ebp - 0x47a], ax
push 0x3b
pop eax
mov word [ebp - 0x478], ax
xor eax, eax
mov word [ebp - 0x476], ax
mov ax, word [ebp - 0x488]
call fcn.1007dba0
push eax
lea ecx, [ebp - 0x508]
call fcn.10011b36
mov byte [ebp - 4], 1
mov eax, dword [0x10201ab4]
push 0x33
pop edx
push 0x31
mov edi, dword [eax + 0xa8]
mov dword [ebp - 0x464], 0x3564
mov eax, dword [ebp - 0x464]
xor eax, 0x7b
mov word [ebp - 0x460], ax
mov eax, dword [ebp - 0x464]
inc eax
xor eax, edx
mov word [ebp - 0x45e], ax
mov eax, dword [ebp - 0x464]
add eax, 2
xor eax, edx
mov word [ebp - 0x45c], ax
mov eax, dword [ebp - 0x464]
add eax, 3
pop ecx
xor eax, ecx
mov word [ebp - 0x45a], ax
mov eax, dword [ebp - 0x464]
add eax, 4
xor eax, edx
mov word [ebp - 0x458], ax
mov eax, dword [ebp - 0x464]
push 0x45
add eax, 5
pop ecx
xor eax, ecx
mov word [ebp - 0x456], ax
mov eax, dword [ebp - 0x464]
add eax, 6
push 0x43
pop ecx
xor eax, ecx
mov word [ebp - 0x454], ax
mov eax, dword [ebp - 0x464]
add eax, esi
push 0x44
pop esi
xor eax, esi
mov word [ebp - 0x452], ax
mov eax, dword [ebp - 0x464]
add eax, 8
xor eax, 0x31
mov word [ebp - 0x450], ax
mov eax, dword [ebp - 0x464]
add eax, 9
push 0x2d
pop ecx
xor eax, ecx
mov word [ebp - 0x44e], ax
mov eax, dword [ebp - 0x464]
add eax, 0xa
xor eax, 0x30
mov word [ebp - 0x44c], ax
mov eax, dword [ebp - 0x464]
add eax, 0xb
xor eax, esi
mov word [ebp - 0x44a], ax
mov eax, dword [ebp - 0x464]
add eax, 0xc
xor eax, 0x36
mov word [ebp - 0x448], ax
mov eax, dword [ebp - 0x464]
add eax, 0xd
xor eax, 0x43
mov word [ebp - 0x446], ax
mov eax, dword [ebp - 0x464]
add eax, 0xe
xor eax, ecx
mov word [ebp - 0x444], ax
mov eax, dword [ebp - 0x464]
add eax, 0xf
xor eax, 0x34
mov word [ebp - 0x442], ax
mov eax, dword [ebp - 0x464]
add eax, 0x10
xor eax, edx
mov word [ebp - 0x440], ax
mov eax, dword [ebp - 0x464]
add eax, 0x11
push 0x39
pop edx
xor eax, edx
mov word [ebp - 0x43e], ax
mov eax, dword [ebp - 0x464]
add eax, 0x12
xor eax, edx
mov word [ebp - 0x43c], ax
mov eax, dword [ebp - 0x464]
add eax, 0x13
xor eax, ecx
mov word [ebp - 0x43a], ax
mov eax, dword [ebp - 0x464]
add eax, 0x14
xor eax, 0x41
mov word [ebp - 0x438], ax
mov eax, dword [ebp - 0x464]
add eax, 0x15
push 0x43
pop edx
xor eax, edx
mov word [ebp - 0x436], ax
mov eax, dword [ebp - 0x464]
add eax, 0x16
xor eax, 0x30
mov word [ebp - 0x434], ax
mov eax, dword [ebp - 0x464]
add eax, 0x17
xor eax, 0x46
mov word [ebp - 0x432], ax
mov eax, dword [ebp - 0x464]
add eax, 0x18
xor eax, ecx
mov word [ebp - 0x430], ax
mov eax, dword [ebp - 0x464]
add eax, 0x19
xor eax, 0x41
mov word [ebp - 0x42e], ax
mov eax, dword [ebp - 0x464]
add eax, 0x1a
xor eax, 0x41
mov word [ebp - 0x42c], ax
mov eax, dword [ebp - 0x464]
add eax, 0x1b
xor eax, 0x30
mov word [ebp - 0x42a], ax
mov eax, dword [ebp - 0x464]
add eax, 0x1c
xor eax, edx
mov word [ebp - 0x428], ax
mov eax, dword [ebp - 0x464]
add eax, 0x1d
push 0x42
pop ecx
xor eax, ecx
mov word [ebp - 0x426], ax
mov eax, dword [ebp - 0x464]
add eax, 0x1e
push 0x32
pop ecx
xor eax, ecx
mov word [ebp - 0x424], ax
mov eax, dword [ebp - 0x464]
add eax, 0x1f
xor eax, 0x36
mov word [ebp - 0x422], ax
mov eax, dword [ebp - 0x464]
add eax, 0x20
xor eax, 0x31
mov word [ebp - 0x420], ax
mov eax, dword [ebp - 0x464]
add eax, 0x21
xor eax, ecx
mov word [ebp - 0x41e], ax
mov eax, dword [ebp - 0x464]
add eax, 0x22
xor eax, esi
mov word [ebp - 0x41c], ax
mov eax, dword [ebp - 0x464]
add eax, 0x23
xor eax, edx
mov word [ebp - 0x41a], ax
mov eax, dword [ebp - 0x464]
add eax, 0x24
push 0x34
pop ecx
xor eax, ecx
mov word [ebp - 0x418], ax
mov eax, dword [ebp - 0x464]
push 0x7d
add eax, 0x25
pop ecx
xor eax, ecx
lea ecx, [ebp - 0x464]
mov word [ebp - 0x416], ax
xor eax, eax
mov word [ebp - 0x414], ax
mov ax, word [ebp - 0x460]
mov esi, dword [edi]
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.1000b49e
push eax
push edi
call dword [esi + 0x60]
test eax, eax
js 0x1007c3d6
lea eax, [ebp - 0x410]
push eax
call fcn.100ddd9c
pop ecx
push eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x508]
call fcn.1000b38e
mov eax, dword [0x10201ab4]
push 0x7c
mov edi, dword [eax + 0xa8]
pop eax
mov word [ebp - 0x4d8], ax
push 0x38
pop eax
push 0x46
pop esi
mov word [ebp - 0x4d6], ax
push 0x36
pop eax
push 0x33
mov word [ebp - 0x4d4], si
mov word [ebp - 0x4d2], ax
pop eax
mov word [ebp - 0x4d0], ax
push 0x37
pop eax
mov word [ebp - 0x4ce], ax
push 0x45
pop eax
mov word [ebp - 0x4cc], ax
push 0x39
pop eax
push 0x2e
pop edx
mov word [ebp - 0x4ca], ax
mov word [ebp - 0x4c8], ax
push 0x44
pop eax
push 0x47
pop ecx
push 0x43
mov word [ebp - 0x4c6], dx
mov word [ebp - 0x4c4], ax
pop eax
mov word [ebp - 0x4c2], cx
mov word [ebp - 0x4c0], ax
push 0x35
mov word [ebp - 0x4be], si
pop esi
push 0x65
pop eax
push 0x31
mov word [ebp - 0x4bc], dx
mov word [ebp - 0x4ba], si
mov word [ebp - 0x4b8], ax
pop eax
mov word [ebp - 0x4b6], ax
push 0x39
pop eax
mov word [ebp - 0x4b4], ax
push 0x42
pop eax
push 0x44
mov word [ebp - 0x4b2], dx
mov word [ebp - 0x4b0], ax
pop eax
mov word [ebp - 0x4ae], ax
push 0x38
pop eax
mov word [ebp - 0x4ac], ax
push 0x32
mov word [ebp - 0x4aa], cx
pop eax
push 0x37
mov word [ebp - 0x4a8], dx
mov word [ebp - 0x4a6], ax
pop eax
push 0x43
pop ecx
mov word [ebp - 0x4a4], ax
mov word [ebp - 0x4a2], ax
mov word [ebp - 0x4a0], cx
push 0x42
pop ecx
mov word [ebp - 0x49e], cx
push 0x31
pop ecx
mov word [ebp - 0x49c], cx
push 0x33
pop ecx
mov word [ebp - 0x49a], cx
push 0x34
pop edx
mov word [ebp - 0x498], dx
push 0x44
pop edx
mov word [ebp - 0x496], dx
mov word [ebp - 0x494], si
mov word [ebp - 0x492], cx
lea ecx, [ebp - 0x4d8]
mov word [ebp - 0x490], ax
push 0x7e
pop eax
mov word [ebp - 0x48e], ax
xor eax, eax
mov word [ebp - 0x48c], ax
mov ax, word [ebp - 0x4d8]
mov esi, dword [edi]
call fcn.10039cbf
push eax
push edi
call dword [esi + 0x110]
test eax, eax
je 0x1007c5fc
mov eax, dword [0x10201ab4]
lea esi, [ebp - 0x508]
cmp dword [ebp - 0x4f4], 8
push 0x2f
cmovae esi, dword [ebp - 0x508]
mov ecx, dword [eax + 0xa8]
pop edx
push 0x76
pop eax
mov word [ebp - 0x474], dx
mov word [ebp - 0x472], ax
push 0x7d
pop eax
mov word [ebp - 0x470], ax
push 0x2a
pop eax
mov word [ebp - 0x46e], ax
push 0x6e
mov word [ebp - 0x46c], dx
pop eax
mov word [ebp - 0x46a], ax
xor eax, eax
mov word [ebp - 0x468], ax
mov ax, word [ebp - 0x474]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x174]
push eax
push esi
lea ecx, [ebp - 0x474]
call fcn.1007dbb9
push eax
lea eax, [ebp - 0x4f0]
push eax
call fcn.10004b9e
add esp, 0x10
jmp 0x1007c60e
lea eax, [ebp - 0x508]
push eax
lea ecx, [ebp - 0x4f0]
call fcn.1003fedf
cmp dword [ebp - 0x4dc], 8
lea eax, [ebp - 0x4f0]
cmovae eax, dword [ebp - 0x4f0]
push eax
push str.TrayMsg
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x508]
call fcn.1000b2cc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4f0]
call fcn.1000b2cc
mov eax, ebx
call fcn.100cc9de
ret