Function at 0x1002a79d
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x1002a7c9
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1002a7c4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x1002a9cb
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 1
je 0x1002a85e
mov dword [ebp - 0x10], 1
jmp 0x1002a862
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x10], eax
jle 0x1002a87d
mov dword [ebp - 0x1c], 1
jmp 0x1002a881
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [eax]
mov eax, dword [ebp - 8]
imul ecx, dword [eax]
mov eax, dword [ebp - 0x70]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x80], eax
push 0
mov ecx, dword [ebp - 0xc]
call fcn.10019832
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
sub eax, 0x2e77c800
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx]
jne 0x1002a8c7
mov dword [ebp - 0x24], 1
jmp 0x1002a8cb
and dword [ebp - 0x24], 0
push 0
mov ecx, dword [ebp - 0xc]
call fcn.10019832
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax]
jl 0x1002a8e5
mov dword [ebp - 0x28], 1
jmp 0x1002a8e9
and dword [ebp - 0x28], 0
push 0
mov ecx, dword [ebp - 0xc]
call fcn.10019832
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax]
jle 0x1002a903
mov dword [ebp - 0x2c], 1
jmp 0x1002a907
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x2c], eax
jne 0x1002a91a
mov dword [ebp - 0x30], 1
jmp 0x1002a91e
and dword [ebp - 0x30], 0
push 0
mov ecx, dword [ebp - 0xc]
call fcn.10019832
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [eax]
jg 0x1002a938
mov dword [ebp - 0x34], 1
jmp 0x1002a93c
and dword [ebp - 0x34], 0
push 0
mov ecx, dword [ebp - 0xc]
call fcn.10019832
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [eax]
jl 0x1002a956
mov dword [ebp - 0x38], 1
jmp 0x1002a95a
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x38]
jne 0x1002a96d
mov dword [ebp - 0x3c], 1
jmp 0x1002a971
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x3c], eax
jl 0x1002a984
mov dword [ebp - 0x40], 1
jmp 0x1002a988
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x40]
jne 0x1002a99b
mov dword [ebp - 0x44], 1
jmp 0x1002a99f
and dword [ebp - 0x44], 0
push 0
mov ecx, dword [ebp - 0xc]
call fcn.10019832
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [eax]
jl 0x1002a9b9
mov dword [ebp - 0x48], 1
jmp 0x1002a9bd
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
imul eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x74]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret