Function at 0x1002fc0d
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10077443
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xb0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1003009c
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xa0], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xa8]
movzx eax, byte [eax]
test eax, eax
je 0x1002fcc2
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x70]
push dword [eax]
push dword [ebp - 0x98]
push 0
call fcn.10031407
add esp, 0xc
jmp 0x1003009a
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0xb0], 0x1a63
cmp dword [ebp - 0xb0], 0x9bd
jge 0x1002feab
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x1061e870
call fcn.10020e49
and dword [ebp - 0x18], 0
and dword [ebp - 0x1c], 0
and dword [ebp - 0x34], 0
jmp 0x1002fd29
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x3c]
jge 0x1002fd7a
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
mov ecx, 0x1061e870
call fcn.10020e49
mov ecx, eax
call fcn.10020e49
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x48]
push eax
mov ecx, 0x1068145c
call fcn.100430bc
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x10681450
call fcn.100430bc
jmp 0x1002fd22
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
mov dword [0x10681430], eax
push dword [0x10681430]
call fcn.100603e9
pop ecx
mov dword [0x1061f924], eax
mov dword [ebp - 0x14], 1
jmp 0x1002fda6
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x3c]
jg 0x1002fe8f
mov eax, dword [ebp - 0x14]
dec eax
push eax
mov ecx, 0x1068145c
call fcn.10021541
mov esi, dword [ebp - 0x18]
sub esi, dword [eax]
mov eax, dword [ebp - 0x14]
dec eax
push eax
mov ecx, 0x10681450
call fcn.10021541
add esi, dword [eax]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x14]
dec eax
push eax
mov ecx, 0x10681450
call fcn.10021541
mov esi, dword [ebp - 0x1c]
sub esi, dword [eax]
mov eax, dword [ebp - 0x14]
dec eax
push eax
mov ecx, 0x1068145c
call fcn.10021541
add esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
mov dword [0x10681430], eax
push dword [0x10681430]
call fcn.100603e9
pop ecx
cmp dword [0x1061f924], eax
jge 0x1002fe3a
mov eax, dword [ebp - 0x14]
mov dword [0x1068142c], eax
push dword [0x10681430]
call fcn.100603e9
pop ecx
mov dword [0x1061f924], eax
mov eax, dword [ebp - 0x14]
dec eax
push eax
mov ecx, 0x1068145c
call fcn.10021541
mov esi, dword [ebp - 0x18]
add esi, dword [eax]
mov eax, dword [ebp - 0x14]
dec eax
push eax
mov ecx, 0x10681450
call fcn.10021541
sub esi, dword [eax]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x14]
dec eax
push eax
mov ecx, 0x10681450
call fcn.10021541
mov esi, dword [ebp - 0x1c]
add esi, dword [eax]
mov eax, dword [ebp - 0x14]
dec eax
push eax
mov ecx, 0x1068145c
call fcn.10021541
sub esi, dword [eax]
mov dword [ebp - 0x1c], esi
jmp 0x1002fd9f
push 0x1002590f
push dword [0x1068142c]
mov ecx, 0x1061e7b8
call fcn.10021043
mov ecx, eax
call fcn.10021037
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x40], 0x6d47
mov dword [ebp - 0x74], 0x10007f78
cmp dword [ebp - 0x40], 0x6f2b
jle 0x1002ff50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
and dword [ebp - 0x30], 0
jmp 0x1002fee8
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x67d4
jge 0x1002ff50
and dword [ebp - 0x28], 0
jmp 0x1002fefe
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x1a5b
jge 0x1002ff4e
and dword [ebp - 0x2c], 0
jmp 0x1002ff14
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x805
jge 0x1002ff4c
mov eax, dword [ebp - 0x28]
imul eax, dword [ebp - 0x2c]
xor eax, dword [ebp - 0x30]
cdq
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], edx
push dword [ebp - 0xbc]
push dword [ebp - 0xc0]
mov ecx, 0x1061e7b8
call fcn.10021267
jmp 0x1002ff0d
jmp 0x1002fef7
jmp 0x1002fee1
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x38], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x40], 0x6c53
jge 0x1002ff70
mov edx, dword [ebp - 0x74]
mov ecx, 0x1061e7b8
call fcn.100255e3
jmp 0x1002ff8c
or dword [ebp - 4], 0xffffffff
jmp 0x1002ff96
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx]
cmp ecx, dword [eax]
je 0x1002ffc0
mov dword [ebp - 0x8c], 1
jmp 0x1002ffc7
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x20]
push dword [eax]
mov ecx, dword [ebp - 0x24]
call fcn.10021541
cmp dword [eax], 1
jl 0x1002ffe5
mov dword [ebp - 0x94], 1
jmp 0x1002ffec
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x20]
push dword [eax]
mov ecx, dword [ebp - 0x24]
call fcn.10021541
mov eax, dword [ebp - 0x38]
mov esi, dword [eax]
push 1
mov ecx, dword [ebp - 0x24]
call fcn.10021541
imul esi, dword [eax]
mov eax, dword [ebp - 0x20]
push dword [eax]
mov ecx, dword [ebp - 0x24]
call fcn.10021541
cmp esi, dword [eax]
jge 0x10030025
mov dword [ebp - 0x44], 1
jmp 0x10030029
and dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], 0x1c587c7a
jg 0x1003003b
mov dword [ebp - 0x4c], 1
jmp 0x1003003f
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
mov eax, dword [ebp - 0x38]
push dword [eax]
mov ecx, dword [ebp - 0x24]
call fcn.10021541
mov edi, dword [eax]
imul edi, dword [ebp - 0x4c]
push 0
mov ecx, dword [ebp - 0x9c]
call fcn.10021541
imul edi, dword [eax]
sub edi, esi
jne 0x10030088
mov eax, dword [ebp - 0x38]
push dword [eax]
mov ecx, dword [ebp - 0x24]
call fcn.10021541
cmp dword [eax], 0
jne 0x10030088
xor eax, eax
inc eax
jne 0x10030088
and dword [ebp - 0x54], 0
jmp 0x1003008f
mov dword [ebp - 0x54], 1
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x54]
mov dword [eax], ecx
jmp 0x100300dd
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xac], eax
push 1
push 0x6d95
push 0x5a5a
push 0x587b
push 0x33b6
push dword [ebp - 0xac]
push 0x2072
push dword [ebp - 0xb4]
call fcn.100293cf
add esp, 0x20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret