Function at 0x100299e3
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087ad1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1002a24b
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x18], 0x40d7f825
mov dword [ebp - 0x15c], 0x2314af12
mov dword [ebp - 0x164], 7
mov dword [ebp - 0x13c], 4
mov dword [ebp - 0x144], 0x86992f1e
mov dword [ebp - 0x168], 0xfff9
mov dword [ebp - 0x48], 6
mov dword [ebp - 0x14c], 0xaacc
mov dword [ebp - 0x18], 0xfffffffd
jmp 0x10029a79
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x14
jge 0x10029ba6
mov dword [ebp - 0x60], 0xd05ba772
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0xf4], 9
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x144]
push eax
push 0x6442
call fcn.10030a66
add esp, 0x30
cmp dword [ebp - 0x18], 0
jne 0x10029af9
cmp dword [ebp - 0x48], 0
jne 0x10029af9
and dword [ebp - 0x100], 0
jmp 0x10029b03
mov dword [ebp - 0x100], 1
cmp dword [ebp - 0x100], 0x8bb6
jle 0x10029b1b
mov dword [ebp - 0x128], 1
jmp 0x10029b22
and dword [ebp - 0x128], 0
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x128]
jge 0x10029b3f
mov dword [ebp - 0x70], 1
jmp 0x10029b43
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 0xf4]
imul eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x48]
jge 0x10029b5e
mov dword [ebp - 0x114], 1
jmp 0x10029b65
and dword [ebp - 0x114], 0
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x114], eax
jle 0x10029b79
mov dword [ebp - 0x78], 1
jmp 0x10029b7d
and dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x78], eax
jge 0x10029b91
mov dword [ebp - 0xfc], 1
jmp 0x10029b98
and dword [ebp - 0xfc], 0
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x30], eax
jmp 0x10029a72
lea eax, [ebp - 0x34]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.1002ec9e
add esp, 0xc
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0
jne 0x1002a246
mov dword [ebp - 0x80], 0x23ed15d
mov dword [ebp - 0x154], 0xf90a
mov dword [ebp - 0x160], 0x5ea2
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x17c], 2
mov dword [ebp - 0x28], 0
jmp 0x10029c0d
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 1
jge 0x10029c23
mov eax, dword [ebp - 0x28]
mov dword [ebp + eax*4 - 0x180], 0xb8fa48a2
jmp 0x10029c06
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x80], eax
je 0x10029c3d
cmp dword [ebp - 0x154], 0
jne 0x10029c3d
and dword [ebp - 0x150], 0
jmp 0x10029c47
mov dword [ebp - 0x150], 1
mov dword [ebp - 0x124], 0xdb75
mov eax, dword [ebp - 0x160]
cmp dword [ebp - 0x124], eax
jge 0x10029c6b
mov dword [ebp - 0x88], 1
jmp 0x10029c72
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x24]
and eax, 0x40
je 0x1002a112
mov dword [ebp - 0x54], 0xa7bc6c89
push 1
lea ecx, [ebp - 0x138]
call fcn.10016c3e
and dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
jmp 0x10029cb5
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jge 0x10029cc8
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x44], 0xe1757117
jmp 0x10029cae
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x138]
push eax
call fcn.1002e5d4
add esp, 0xc
push 4
pop eax
shl eax, 1
mov dword [ebp + eax - 0x44], 0x1b
jmp 0x10029cff
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x44]
dec eax
push 4
pop ecx
shl ecx, 1
mov dword [ebp + ecx - 0x44], eax
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x44], 0x11
jle 0x1002a0f1
mov dword [ebp - 0x2c], 5
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x38], 0
jmp 0x10029d37
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 1
jge 0x10029d4d
mov eax, dword [ebp - 0x38]
mov dword [ebp + eax*4 - 0xe8], 0x82b
jmp 0x10029d30
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x44], 0x4bb4
jle 0x10029d68
mov dword [ebp - 0x104], 1
jmp 0x10029d6f
and dword [ebp - 0x104], 0
imul eax, dword [ebp - 0x104], 3
test eax, eax
je 0x10029d93
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x44], 0
je 0x10029d93
mov dword [ebp - 0x90], 1
jmp 0x10029d9a
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x184], eax
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x44], 1
jb 0x10029dc5
mov dword [ebp - 0x11c], 1
jmp 0x10029dcc
and dword [ebp - 0x11c], 0
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x44]
cmp dword [ebp - 0x11c], eax
jl 0x10029de9
mov dword [ebp - 0x98], 1
jmp 0x10029df0
and dword [ebp - 0x98], 0
cmp dword [ebp - 0x98], 0xba5616d2
jae 0x10029e08
mov dword [ebp - 0xd4], 1
jmp 0x10029e0f
and dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0xd4]
sub eax, 0x7f3c88fe
push 4
pop ecx
imul ecx, ecx, 0
cmp eax, dword [ebp + ecx - 0xe8]
jg 0x10029e35
mov dword [ebp - 0xa0], 1
jmp 0x10029e3c
and dword [ebp - 0xa0], 0
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x44]
cmp dword [ebp - 0xa0], eax
jg 0x10029e56
mov dword [ebp - 0x5c], 1
jmp 0x10029e5a
and dword [ebp - 0x5c], 0
push 0
lea ecx, [ebp - 0x138]
call fcn.10016cc8
mov ecx, dword [ebp - 0x5c]
mov dword [eax], ecx
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xe8]
add eax, dword [ebp - 0x5c]
mov dword [ebp - 0x2c], eax
je 0x10029e96
mov eax, 0x5c935cb5
test eax, eax
je 0x10029e96
mov dword [ebp - 0xa8], 1
jmp 0x10029e9d
and dword [ebp - 0xa8], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x44]
add eax, dword [ebp - 0xa8]
cmp eax, 0xd476
jne 0x10029ec9
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x44], 0
jne 0x10029ec9
and dword [ebp - 0xf0], 0
jmp 0x10029ed3
mov dword [ebp - 0xf0], 1
imul eax, dword [ebp - 0xf0], 0x43c6
push 4
pop ecx
shl ecx, 1
cmp eax, dword [ebp + ecx - 0x44]
jge 0x10029ef4
mov dword [ebp - 0xb0], 1
jmp 0x10029efb
and dword [ebp - 0xb0], 0
cmp dword [ebp - 0xb0], 0x4c01e07a
jle 0x10029f13
mov dword [ebp - 0xf8], 1
jmp 0x10029f1a
and dword [ebp - 0xf8], 0
cmp dword [ebp - 0xf8], 0xccce
jge 0x1002a0c2
mov dword [ebp - 0x178], 0xffffffff
mov dword [ebp - 0x174], 0xffffffff
mov dword [ebp - 0x170], 0xffffffff
mov dword [ebp - 0x16c], 0xffffffff
mov dword [ebp - 0x1c], 0x23a55a41
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x148]
cmp dword [ebp + eax - 0x178], ecx
jge 0x10029f7a
mov dword [ebp - 0xb8], 1
jmp 0x10029f81
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x64], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x178]
cmp dword [ebp - 0x64], eax
je 0x10029fa8
mov dword [ebp - 0xc0], 1
jmp 0x10029faf
and dword [ebp - 0xc0], 0
push 0
lea ecx, [ebp - 0x138]
call fcn.10016cc8
mov ecx, dword [ebp - 0xc0]
sub ecx, dword [eax]
cmp ecx, 0x4c99
jle 0x10029fd8
mov dword [ebp - 0x108], 1
jmp 0x10029fdf
and dword [ebp - 0x108], 0
push 0
lea ecx, [ebp - 0x138]
call fcn.10016cc8
mov eax, dword [eax]
cmp eax, dword [ebp - 0x108]
je 0x1002a002
mov dword [ebp - 0xc8], 1
jmp 0x1002a009
and dword [ebp - 0xc8], 0
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0xc8]
xor ecx, ecx
inc ecx
sub ecx, eax
add ecx, dword [ebp - 0x54]
mov dword [ebp - 0x110], ecx
push 0
lea ecx, [ebp - 0x138]
call fcn.10016cc8
mov ecx, dword [ebp - 0x110]
mov dword [eax], ecx
imul eax, dword [ebp - 0x110], 0x2cc
test eax, eax
je 0x1002a058
mov eax, 0x6c5f
test eax, eax
je 0x1002a058
mov dword [ebp - 0xd0], 1
jmp 0x1002a05f
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0xd0]
jle 0x1002a076
mov dword [ebp - 0x118], 1
jmp 0x1002a07d
and dword [ebp - 0x118], 0
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x1c], 0xfffffff7
jmp 0x1002a096
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x13
jne 0x1002a0c0
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x1002a0be
push 0
push 0x4021
push 0x3f
push 0x64ef
call fcn.1003119a
add esp, 0x10
jmp 0x1002a08f
jmp 0x1002a0ec
mov byte [ebp - 0x14], 0
movzx eax, byte [ebp - 0x14]
test eax, eax
je 0x1002a0d8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov byte [ebp - 0x13], 0
movzx eax, byte [ebp - 0x13]
test eax, eax
je 0x1002a0ec
push 0
call fcn.1002ece3
pop ecx
jmp 0x10029cec
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.10016cc3
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x34]
mov eax, dword [eax + 0x20]
mov dword [ecx], eax
jmp 0x1002a246
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x24]
and eax, 0x80
je 0x1002a246
mov dword [ebp - 0xe4], 0xfffffff6
mov dword [ebp - 0xe0], 0xfffffff6
mov dword [ebp - 0xdc], 0xfffffff6
mov dword [ebp - 0xd8], 0xfffffff6
mov dword [ebp - 0x120], 0
mov dword [ebp - 0xec], 0x849b76ee
push 4
pop eax
shl eax, 1
push 4
pop ecx
shl ecx, 1
mov ecx, dword [ebp + ecx - 0xe4]
push 4
pop edx
imul edx, edx, 0
add ecx, dword [ebp + edx - 0xe4]
neg ecx
cmp dword [ebp + eax - 0xe4], ecx
jg 0x1002a194
mov dword [ebp - 0x10c], 1
jmp 0x1002a19b
and dword [ebp - 0x10c], 0
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0xe4]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x120]
sub eax, dword [ebp - 0x10c]
mov dword [ebp - 0xec], eax
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0xe4]
cmp dword [ebp - 0xec], eax
jg 0x1002a1e1
mov dword [ebp - 0x12c], 1
jmp 0x1002a1e8
and dword [ebp - 0x12c], 0
push 4
pop eax
shl eax, 1
imul eax, dword [ebp + eax - 0xe4], 0x5416
mov ecx, dword [ebp - 0x12c]
lea eax, [eax + ecx + 0x3051]
push 4
pop ecx
shl ecx, 0
imul eax, dword [ebp + ecx - 0xe4]
push 4
pop ecx
shl ecx, 1
mov dword [ebp + ecx - 0xe4], eax
mov byte [ebp - 0x12], 0
movzx eax, byte [ebp - 0x12]
test eax, eax
je 0x1002a239
push 0x7b78
push 0
call fcn.100142cd
pop ecx
pop ecx
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x34]
mov eax, dword [eax + 0x24]
mov dword [ecx], eax
jmp 0x1002a411
mov dword [ebp - 0x10], 0xfffffff9
mov dword [ebp - 0x58], 0xc9fb37b0
mov dword [ebp - 0xb4], 0xffffffff
mov dword [ebp - 0x74], 0xba4d3ec9
mov dword [ebp - 0xa4], 0x333ee676
mov dword [ebp - 0x10], 0
jmp 0x1002a284
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 4
jle 0x1002a411
mov dword [ebp - 0x24], 0x3672d714
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x50], 0x93876a47
mov dword [ebp - 0x140], 0x56e623b2
mov eax, 0x226c
test eax, eax
je 0x1002a37e
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x74], eax
jle 0x1002a2d7
mov dword [ebp - 0x7c], 1
jmp 0x1002a2db
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x7c], eax
jne 0x1002a2ef
mov dword [ebp - 0x84], 1
jmp 0x1002a2f6
and dword [ebp - 0x84], 0
cmp dword [ebp - 0x84], 0xe8ce6fc2
jne 0x1002a30e
mov dword [ebp - 0x8c], 1
jmp 0x1002a315
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x8c]
neg eax
imul eax, dword [ebp - 0x10]
cmp dword [ebp - 0x24], eax
jg 0x1002a332
mov dword [ebp - 0x94], 1
jmp 0x1002a339
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x94], eax
jne 0x1002a350
mov dword [ebp - 0x9c], 1
jmp 0x1002a357
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x1002a37e
mov dword [ebp - 0xac], 1
jmp 0x1002a385
and dword [ebp - 0xac], 0
imul eax, dword [ebp - 0xac], 0xf82d
test eax, eax
jne 0x1002a3a2
cmp dword [ebp - 0x24], 0
jne 0x1002a3a2
and dword [ebp - 0xbc], 0
jmp 0x1002a3ac
mov dword [ebp - 0xbc], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
cmp eax, dword [ebp - 0xbc]
jg 0x1002a3d8
cmp dword [ebp - 0x58], 0
jne 0x1002a3d8
and dword [ebp - 0xc4], 0
jmp 0x1002a3e2
mov dword [ebp - 0xc4], 1
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc4], eax
jge 0x1002a3f9
mov dword [ebp - 0xcc], 1
jmp 0x1002a400
and dword [ebp - 0xcc], 0
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x140], eax
jmp 0x1002a27d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret