Function at 0x1000c0b0
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x560
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x175]
mov byte [esp + 0x174], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x279]
mov byte [esp + 0x278], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x574]
push 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x30]
mov dword [esp + 0x1c], 0x104
push eax
push ecx
mov byte [esp + 0x1f], 0
call dword [0x1001a148]
lea edx, [esp + 0x174]
push 0x104
lea eax, [esp + 0x30]
push edx
push eax
call fcn.10007d20
mov edi, dword [0x1001a12c]
add esp, 0xc
lea ecx, [esp + 0x174]
lea edx, [esp + 0x2c]
push ecx
push edx
call edi
lea eax, [esp + 0x2c]
push eax
call fcn.1000dcb0
mov esi, dword [0x1001a350]
add esp, 4
test al, al
jne 0x1000c194
lea ecx, [esp + 0x2c]
push 0x20
push ecx
call esi
add esp, 8
test eax, eax
je 0x1000c194
lea edx, [esp + 0x2c]
mov byte [eax], 0
push edx
call fcn.1000dcb0
add esp, 4
test al, al
je 0x1000c170
lea eax, [esp + 0x2c]
push eax
call fcn.1000dcb0
add esp, 4
test al, al
jne 0x1000c1b2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x560
ret 8
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x278]
push ecx
push edx
call edi
lea eax, [esp + 0x2c]
push 0x2e
push eax
lea ebp, [esp + 0x34]
call esi
add esp, 8
test eax, eax
je 0x1000c2e0
mov ebx, dword [0x1001a0cc]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
push eax
push 0x80000000
call ebx
test eax, eax
jne 0x1000c2e0
mov ecx, dword [esp + 0x14]
mov esi, dword [0x1001a0a8]
lea edx, [esp + 0x18]
lea eax, [esp + 0x2c]
push edx
push eax
push 0
push ecx
call esi
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push edx
call ebp
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x37c]
push 0x10022e48
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
push 0x10022e44
push eax
lea ecx, [esp + 0x388]
push 0x10022e34
push ecx
call dword [0x1001a490]
add esp, 0x14
lea edx, [esp + 0x14]
lea eax, [esp + 0x37c]
push edx
push 0xf003f
push 0
push eax
push 0x80000000
call ebx
test eax, eax
je 0x1000c284
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x560
ret 8
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x104
push ecx
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call ebp
mov ebx, dword [0x1001a37c]
lea edx, [esp + 0x2c]
push 0x10022e30
push edx
call ebx
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x1000c2e6
lea eax, [esp + 0x2c]
push 0x10021e60
push eax
call ebx
add esp, 8
mov ebp, eax
jmp 0x1000c2e6
mov ebx, dword [0x1001a37c]
mov ecx, dword [esp + 0x574]
push 0x10022e20
push ecx
call ebx
add esp, 8
test eax, eax
je 0x1000c35c
mov edi, 0x10021e2c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x174]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x174]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10024004
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebp, ebp
jne 0x1000c383
mov esi, dword [0x1001a14c]
lea eax, [esp + 0x2c]
push 0x10021e2c
push eax
call esi
lea ecx, [esp + 0x174]
lea edx, [esp + 0x2c]
push ecx
push edx
call esi
jmp 0x1000c392
lea eax, [esp + 0x174]
push eax
push ebp
call dword [0x1001a12c]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x134]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x578]
mov dword [esp + 0x130], 0x44
test eax, eax
je 0x1000c3c5
mov dword [esp + 0x138], 0x10021e30
jmp 0x1000c3d0
mov dword [esp + 0x15c], 1
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x130]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x48]
push 0
push eax
push 0
call dword [0x1001a23c]
test eax, eax
je 0x1000c413
mov ecx, dword [esp + 0x20]
mov esi, dword [0x1001a144]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x574]
push 0x100214cc
push eax
call ebx
add esp, 8
test eax, eax
je 0x1000c43b
push 4
lea ecx, [esp + 0x27c]
push 0
push ecx
call dword [0x1001a27c]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x560
ret 8