Function at 0x1001e7d0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1001e98a
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x1d19
cmp dword [ebp - 0x1c], 0xf81
jge 0x1001e91e
mov dword [ebp - 0x48], 3
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x100077c8
call fcn.10055feb
add esp, 0x10
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
push eax
push 0x100077c8
call fcn.10055feb
add esp, 0x10
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0x100077c8
call fcn.10055feb
add esp, 0x10
push 4
pop eax
shl eax, 0
push 4
pop ecx
shl ecx, 1
mov eax, dword [ebp + eax - 0x54]
add eax, dword [ebp + ecx - 0x54]
mov dword [ebp - 0x10], eax
push 4
pop eax
imul eax, eax, 0
push 4
pop ecx
shl ecx, 1
mov eax, dword [ebp + eax - 0x60]
add eax, dword [ebp + ecx - 0x60]
mov dword [ebp - 0x14], eax
push 4
pop eax
imul eax, eax, 0
push 4
pop ecx
shl ecx, 0
mov eax, dword [ebp + eax - 0x6c]
add eax, dword [ebp + ecx - 0x6c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xc], eax
push 4
pop eax
shl eax, 1
push dword [ebp + eax - 0x54]
push 4
pop eax
shl eax, 0
push dword [ebp + eax - 0x54]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x10]
push eax
push 0x10007748
call fcn.10056438
add esp, 0x10
push 4
pop eax
shl eax, 1
push dword [ebp + eax - 0x60]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push 4
pop eax
imul eax, eax, 0
push dword [ebp + eax - 0x60]
push 0x10007748
call fcn.10056438
add esp, 0x10
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x18]
push eax
push 4
pop eax
shl eax, 0
push dword [ebp + eax - 0x6c]
push 4
pop eax
imul eax, eax, 0
push dword [ebp + eax - 0x6c]
push 0x10007748
call fcn.10056438
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x1001e97b
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x1001e95c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 4
jge 0x1001e979
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x34]
call fcn.1002b7f6
mov dword [eax], 2
jmp 0x1001e951
jmp 0x1001e988
push 1
push 0x66f
call dword [sym.imp.USER32.dll_GetSystemMenu]
jmp 0x1001e9cd
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x1001e9b7
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [eax], 1
jmp 0x1001e9cd
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1001e9cd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esp, ebp
pop ebp
ret