Function at 0x1001c7ba
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1001ca34
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1001c812
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 3
jg 0x1001ca32
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x28], 0xc5c935cb
mov dword [ebp - 0x6c], 1
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10016cc2
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10016cc2
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10016cc2
cmp dword [eax], 0x7af9ca3e
je 0x1001c86b
mov dword [ebp - 0x10], 1
jmp 0x1001c86f
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10016cc2
mov eax, dword [eax]
neg eax
cmp eax, dword [ebp - 0xc]
jne 0x1001c896
mov dword [ebp - 0x14], 1
jmp 0x1001c89a
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 1
je 0x1001c8a9
mov dword [ebp - 0x18], 1
jmp 0x1001c8ad
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x18], eax
jne 0x1001c8be
mov dword [ebp - 0x1c], 1
jmp 0x1001c8c2
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
add eax, 0x2b00
mov ecx, dword [ebp - 0x3c]
cmp eax, dword [ecx]
jge 0x1001c8da
mov dword [ebp - 0x20], 1
jmp 0x1001c8de
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10016cc2
mov eax, dword [eax]
cmp eax, dword [ebp - 0x20]
jne 0x1001c8fb
mov dword [ebp - 0x64], 1
jmp 0x1001c8ff
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10016cc2
cmp dword [eax], 0x6b99bf0b
jne 0x1001c91d
mov dword [ebp - 0x24], 1
jmp 0x1001c921
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x1001c936
mov dword [ebp - 0x2c], 1
jmp 0x1001c93a
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10016cc2
mov eax, dword [eax]
cmp eax, dword [ebp - 0x2c]
jle 0x1001c963
push 0
mov ecx, dword [ebp - 8]
call fcn.10016cc2
cmp dword [eax], 0
jne 0x1001c963
and dword [ebp - 0x30], 0
jmp 0x1001c96a
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x30], eax
je 0x1001c97d
mov dword [ebp - 0x34], 1
jmp 0x1001c981
and dword [ebp - 0x34], 0
imul eax, dword [ebp - 0x34], 0x4763
sub eax, 0xdaaf
jne 0x1001c998
mov dword [ebp - 0x38], 1
jmp 0x1001c99c
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10016cc2
mov eax, dword [eax]
cmp eax, dword [ebp - 0x38]
jle 0x1001c9b9
mov dword [ebp - 0x68], 1
jmp 0x1001c9bd
and dword [ebp - 0x68], 0
cmp dword [ebp - 0xc], 1
jne 0x1001c9cc
mov dword [ebp - 0x40], 1
jmp 0x1001c9d0
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
sub ecx, dword [eax]
cmp ecx, 0xfffb
je 0x1001c9ea
xor eax, eax
jne 0x1001c9ea
and dword [ebp - 0x44], 0
jmp 0x1001c9f1
mov dword [ebp - 0x44], 1
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x44], eax
jle 0x1001ca02
mov dword [ebp - 0x48], 1
jmp 0x1001ca06
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.10016cc2
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [eax]
jne 0x1001ca23
mov dword [ebp - 0x4c], 1
jmp 0x1001ca27
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x6c], eax
jmp 0x1001c807
jmp 0x1001ca3e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esp, ebp
pop ebp
ret