Function at 0x10025109
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006bb5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b8
push esi
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x10025951
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x58], 0xe8ce6fc2
mov dword [ebp - 0x48], 0x2e6c0b33
mov dword [ebp - 0x180], 0
mov dword [ebp - 0xc8], 0xffff
mov dword [ebp - 0xfc], 1
mov dword [ebp - 0x18], 0
jmp 0x1002518d
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jge 0x100251a3
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x17c], 0xfffffff6
jmp 0x10025186
mov dword [ebp - 0x18], 0
jmp 0x100251b3
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jge 0x100251c9
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x198], 0xc484
jmp 0x100251ac
mov dword [ebp - 0x28], 0x1449c9fb
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x10], eax
jne 0x100251e1
mov dword [ebp - 0x50], 1
jmp 0x100251e5
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x10], eax
jne 0x100251f9
mov dword [ebp - 0xb4], 1
jmp 0x10025200
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0xb4]
sub eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x10]
jl 0x1002521a
mov dword [ebp - 0xb0], 1
jmp 0x10025221
and dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0xb0]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x48]
jne 0x1002523f
xor eax, eax
jne 0x1002523f
and dword [ebp - 0x6c], 0
jmp 0x10025246
mov dword [ebp - 0x6c], 1
cmp dword [ebp - 0x6c], 0x76fb
jle 0x1002525b
mov dword [ebp - 0xac], 1
jmp 0x10025262
and dword [ebp - 0xac], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x50]
mov dword [ebp + eax - 0x17c], ecx
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0xac]
jg 0x10025286
mov dword [ebp - 0x74], 1
jmp 0x1002528a
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x74], eax
jne 0x1002529e
mov dword [ebp - 0xd0], 1
jmp 0x100252a5
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0xd0], eax
jle 0x100252b9
mov dword [ebp - 0x7c], 1
jmp 0x100252bd
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x7c], eax
jge 0x100252d1
mov dword [ebp - 0xb8], 1
jmp 0x100252d8
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x180], eax
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x17c], 0
je 0x1002559d
mov dword [ebp - 0x24], 0xb4b26d8f
push 2
lea ecx, [ebp - 0x190]
call fcn.10014761
and dword [ebp - 4], 0
mov dword [ebp - 0x154], 0
push 0x18c4
push 0x59c6
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x190]
push eax
push 0
call fcn.10025cb4
add esp, 0x14
mov dword [ebp - 0x30], 0
jmp 0x10025349
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 1
jge 0x1002535f
mov eax, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0x108], 0x79c93506
jmp 0x10025342
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 7
jmp 0x10025376
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x1b
jge 0x10025589
mov dword [ebp - 0x84], 0x8f5349dd
push 1
lea ecx, [ebp - 0x174]
call fcn.10014761
mov byte [ebp - 4], 1
mov dword [ebp - 0x9c], 0x69e5f9c
mov dword [ebp - 0x2c], 0
jmp 0x100253b5
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jge 0x100253cb
mov eax, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0xd8], 0xfffffffc
jmp 0x100253ae
lea eax, [ebp - 0x174]
push eax
push 0x66b5
lea eax, [ebp - 0x2c]
push eax
push 0
call fcn.10025ec2
add esp, 0x10
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x24]
push 4
pop edx
imul edx, edx, 0
sub ecx, dword [ebp + edx - 0xd8]
imul eax, ecx
cmp eax, 0x75aba8b0
jl 0x10025421
push 6
pop eax
test eax, eax
je 0x10025421
mov dword [ebp - 0xe0], 1
jmp 0x10025428
and dword [ebp - 0xe0], 0
cmp dword [ebp - 0xe0], 0xffff
je 0x10025440
mov dword [ebp - 0x8c], 1
jmp 0x10025447
and dword [ebp - 0x8c], 0
mov esi, dword [ebp - 0x8c]
add esi, 6
push 0
lea ecx, [ebp - 0x174]
call fcn.100147ff
cmp esi, dword [eax]
jle 0x1002546d
mov dword [ebp - 0xc0], 1
jmp 0x10025474
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0xc0]
inc eax
je 0x10025493
cmp dword [ebp - 0x24], 0
je 0x10025493
mov dword [ebp - 0x94], 1
jmp 0x1002549a
and dword [ebp - 0x94], 0
push 1
lea ecx, [ebp - 0x190]
call fcn.100147ff
mov ecx, dword [ebp - 0x94]
mov dword [eax], ecx
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xd8]
mov dword [ebp - 0x1a8], eax
push 0
lea ecx, [ebp - 0x190]
call fcn.100147ff
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push 4
pop ecx
imul ecx, ecx, 0
sub eax, dword [ebp + ecx - 0x17c]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x9c], eax
mov esi, dword [ebp - 0x9c]
push 0
lea ecx, [ebp - 0x174]
call fcn.100147ff
cmp esi, dword [eax]
jl 0x10025510
mov dword [ebp - 0x184], 1
jmp 0x10025517
and dword [ebp - 0x184], 0
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x1b8], eax
push 0
lea ecx, [ebp - 0x174]
call fcn.100147ff
mov ecx, dword [ebp - 0xc8]
cmp dword [eax], ecx
jge 0x10025558
mov eax, 0xd226
test eax, eax
jne 0x10025558
and dword [ebp - 0xa4], 0
jmp 0x10025562
mov dword [ebp - 0xa4], 1
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0xa4]
mov dword [ebp + eax - 0x108], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x174]
call fcn.100147e3
jmp 0x1002536f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x190]
call fcn.100147e3
jmp 0x10025731
push 1
lea ecx, [ebp - 0xf8]
call fcn.10014761
mov dword [ebp - 4], 2
mov dword [ebp - 0x44], 0
jmp 0x100255c1
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 1
jge 0x100255dd
push dword [ebp - 0x44]
lea ecx, [ebp - 0xf8]
call fcn.100147ff
mov dword [eax], 1
jmp 0x100255ba
mov byte [ebp - 0x1d], 0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x100255fd
push 1
push 0x5044
push 0x6b9
call fcn.10024ca6
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xfc], eax
je 0x10025611
mov dword [ebp - 0x64], 1
jmp 0x10025615
and dword [ebp - 0x64], 0
push 0
lea ecx, [ebp - 0xf8]
call fcn.100147ff
cmp dword [eax], 0
je 0x1002563c
mov eax, 0x72f8
test eax, eax
je 0x1002563c
mov dword [ebp - 0xe8], 1
jmp 0x10025643
and dword [ebp - 0xe8], 0
cmp dword [ebp - 0xe8], 0x15fa727f
je 0x1002565b
mov dword [ebp - 0x110], 1
jmp 0x10025662
and dword [ebp - 0x110], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x198]
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x1b4], eax
push 0
lea ecx, [ebp - 0xf8]
call fcn.100147ff
mov esi, eax
push 0
lea ecx, [ebp - 0xf8]
call fcn.100147ff
mov ecx, dword [esi]
cmp ecx, dword [eax]
jle 0x100256ac
mov dword [ebp - 0x15c], 1
jmp 0x100256b3
and dword [ebp - 0x15c], 0
push 0
lea ecx, [ebp - 0xf8]
call fcn.100147ff
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x198]
cmp dword [ebp - 0x64], eax
jle 0x100256db
mov dword [ebp - 0x68], 1
jmp 0x100256df
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x68]
jle 0x100256f0
mov dword [ebp - 0x70], 1
jmp 0x100256f4
and dword [ebp - 0x70], 0
cmp dword [ebp - 0x70], 0xae23
je 0x10025706
mov dword [ebp - 0x78], 1
jmp 0x1002570a
and dword [ebp - 0x78], 0
push 0
lea ecx, [ebp - 0xf8]
call fcn.100147ff
mov ecx, dword [ebp - 0x78]
imul ecx, dword [eax]
neg ecx
mov dword [ebp - 0x28], ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf8]
call fcn.100147e3
mov eax, dword [ebp - 0x80]
mov eax, dword [eax + 4]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x40], 0x8cff0ea7
mov dword [ebp - 0x40], 0x12
jmp 0x10025754
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x1b
jge 0x10025784
mov byte [ebp - 0x1c], 0
movzx eax, byte [ebp - 0x1c]
test eax, eax
je 0x1002576e
push 1
call fcn.10024cf2
pop ecx
push 0x1095
push 1
push 0x221d
call fcn.10024d4f
add esp, 0xc
jmp 0x1002574d
mov eax, dword [ebp - 0x80]
mov eax, dword [eax]
push 8
pop ecx
imul ecx, ecx, 5
lea eax, [eax + ecx + 0x78]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x4c], 0x5c6f1bf5
mov dword [ebp - 0x144], 0xffffffff
mov dword [ebp - 0x120], 0xaced45b0
mov dword [ebp - 0x1bc], 0x648bd921
mov eax, 0xeb89ba0
test eax, eax
je 0x100257e4
push 0
push 0x51c6
push 0x4b48
call fcn.10027d6b
add esp, 0xc
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
jmp 0x1002581b
mov dword [ebp - 0x118], 1
push 0x6332
lea eax, [ebp - 0x118]
push eax
push 0x760e
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x4c]
push eax
push 1
lea eax, [ebp - 0x120]
push eax
call fcn.10024d9e
add esp, 0x1c
mov eax, dword [ebp - 0x88]
cmp dword [eax + 4], 0
jbe 0x1002594c
mov dword [ebp - 0x3c], 0x8cff0ea7
mov dword [ebp - 0x3c], 0x12
jmp 0x10025842
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x1b
jge 0x1002587a
mov byte [ebp - 0x1a], 0
movzx eax, byte [ebp - 0x1a]
test eax, eax
je 0x1002585e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov byte [ebp - 0x1b], 0
movzx eax, byte [ebp - 0x1b]
test eax, eax
je 0x10025878
push 1
push 0x2d0d
call fcn.10024e7a
pop ecx
pop ecx
jmp 0x1002583b
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x90]
add ecx, dword [eax]
mov dword [ebp - 0x98], ecx
mov eax, dword [ebp - 0x98]
cmp dword [eax], 0
jbe 0x1002594c
push 3
lea ecx, [ebp - 0x1a4]
call fcn.10014761
mov dword [ebp - 4], 3
mov dword [ebp - 0x13c], 0x7d8a8701
push 0x17a1
lea eax, [ebp - 0x1a4]
push eax
push 0x3f58
push 1
lea eax, [ebp - 0x1c4]
push eax
call fcn.10024ec3
add esp, 0x14
lea eax, [ebp - 0x13c]
push eax
push 1
lea eax, [ebp - 0x1a4]
push eax
call fcn.10024f44
add esp, 0xc
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x1002590f
push 0
push 0x669f
call fcn.10025c4e
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a4]
call fcn.100147e3
push 0x69c8
push dword [ebp - 0x90]
lea eax, [ebp - 0x98]
push eax
push 0x447b
push 1
mov eax, dword [ebp - 0x128]
push dword [eax]
call fcn.10024616
add esp, 0x18
jmp 0x1002588e
jmp 0x10025c3f
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x10025bb8
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0xa0]
imul eax, dword [eax], 0xfffa
mov dword [ebp - 0xa8], eax
push 0
mov ecx, dword [ebp - 0x54]
call fcn.100147ff
mov ecx, dword [ebp - 0xa8]
mov dword [eax], ecx
mov eax, dword [ebp - 0x104]
mov ecx, dword [ebp - 0xa8]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10c]
mov dword [eax], 1
xor eax, eax
add eax, 0xffffc027
mov dword [ebp - 0x60], eax
push 1
mov ecx, dword [ebp - 0x34]
call fcn.100147ff
mov ecx, dword [ebp - 0x60]
mov dword [eax], ecx
cmp dword [ebp - 0x60], 0
je 0x10025ab9
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x10025ab9
mov dword [ebp - 0xbc], 1
jmp 0x10025ac0
and dword [ebp - 0xbc], 0
imul eax, dword [ebp - 0xbc], 0
cmp eax, 0xfe2499e6
jb 0x10025ad8
push 1
mov ecx, dword [ebp - 0x34]
call fcn.100147ff
push 1
mov ecx, dword [ebp - 0x34]
call fcn.100147ff
cmp dword [eax], 0
jne 0x10025b0b
push 0
mov ecx, dword [ebp - 0x34]
call fcn.100147ff
cmp dword [eax], 0
jne 0x10025b0b
push 0
mov ecx, dword [ebp - 0x54]
call fcn.100147ff
cmp dword [eax], 0
jne 0x10025b0b
and dword [ebp - 0x38], 0
jmp 0x10025b12
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
cmp dword [ebp - 0x38], 0
jne 0x10025b46
push 0
mov ecx, dword [ebp - 0x54]
call fcn.100147ff
cmp dword [eax], 0
jne 0x10025b46
and dword [ebp - 0xc4], 0
jmp 0x10025b50
mov dword [ebp - 0xc4], 1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0xc4], eax
jl 0x10025b69
mov dword [ebp - 0xcc], 1
jmp 0x10025b70
and dword [ebp - 0xcc], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
add eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx]
jne 0x10025b8e
mov dword [ebp - 0x124], 1
jmp 0x10025b95
and dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x1b0], eax
push 1
mov ecx, dword [ebp - 0x34]
call fcn.100147ff
cmp dword [eax], 0
jne 0x10025bb8
and dword [ebp - 0xd4], 0
jmp 0x10025bc2
mov dword [ebp - 0xd4], 1
cmp dword [ebp - 0xd4], 0xffffffff
jle 0x10025bd4
mov dword [ebp - 0x5c], 1
jmp 0x10025bd8
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x5c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax]
cmp dword [ebp - 0x5c], eax
je 0x10025bfc
mov dword [ebp - 0xe4], 1
jmp 0x10025c03
and dword [ebp - 0xe4], 0
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax]
imul eax, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx]
jl 0x10025c25
mov dword [ebp - 0xec], 1
jmp 0x10025c2c
and dword [ebp - 0xec], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
add eax, dword [ebp - 0xec]
mov ecx, dword [ebp - 0x134]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret