Function at 0x10017d53
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005da24
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x1d0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10017d99
push 0x6f9e
push 0x18f9
push 1
call fcn.100188cd
add esp, 0xc
jmp 0x100188bc
lea eax, [ebp + 0x18]
mov dword [ebp - 0xe8], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xb4], 0x2ab6
mov dword [ebp - 0x16c], 0x10008a00
cmp dword [ebp - 0xb4], 0x2b6a
jle 0x10017e7e
and dword [ebp - 0x3c], 0
jmp 0x10017ddc
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x7302
jge 0x10017e74
and dword [ebp - 0x34], 0
jmp 0x10017df6
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x3efc
jge 0x10017e6f
and dword [ebp - 0x5c], 0
jmp 0x10017e0c
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0x7a30
jge 0x10017e6d
mov eax, dword [ebp - 0x3c]
imul eax, dword [ebp - 0x34]
cdq
idiv dword [ebp - 0x5c]
mov eax, edx
cdq
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], edx
push dword [ebp - 0x148]
push dword [ebp - 0x14c]
lea ecx, [ebp - 0x1c8]
call fcn.1000cd20
pop ecx
pop ecx
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
call fcn.1002a5a1
push eax
call fcn.100480d6
pop ecx
lea ecx, [ebp - 0x1c8]
call fcn.1002a597
jmp 0x10017e05
jmp 0x10017def
jmp 0x10017dd5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x13c], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0xb4], 0x27cb
jge 0x10017ea3
push dword [ebp - 0x16c]
call fcn.100480d6
pop ecx
jmp 0x10017ebf
or dword [ebp - 4], 0xffffffff
jmp 0x10017ec9
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0xe8]
movzx eax, byte [eax]
test eax, eax
je 0x10018859
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0xd0], 0x7b9d
mov dword [ebp - 0xf4], 0x10008a68
cmp dword [ebp - 0xd0], 0x7d32
jle 0x10017ffd
and dword [ebp - 0x2c], 0
jmp 0x10017f47
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x6490
jge 0x10017ffd
and dword [ebp - 0x54], 0
jmp 0x10017f61
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0x1abd
jge 0x10017ff8
and dword [ebp - 0x44], 0
jmp 0x10017f7b
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x63aa
jge 0x10017ff3
and dword [ebp - 0x64], 0
jmp 0x10017f91
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0x1139
jge 0x10017ff1
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x64]
cdq
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], edx
push dword [ebp - 0x154]
push dword [ebp - 0x158]
lea ecx, [ebp - 0x1e0]
call fcn.1000cd20
pop ecx
pop ecx
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
call fcn.1002a5a1
push eax
call fcn.100480d6
pop ecx
lea ecx, [ebp - 0x1e0]
call fcn.1002a597
jmp 0x10017f8a
jmp 0x10017f74
jmp 0x10017f5a
jmp 0x10017f40
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x15c]
add ecx, dword [eax]
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x144], 0xfffffffb
mov dword [ebp - 0xe0], 0x37ad4351
mov dword [ebp - 0x108], 6
push 0x204d
push 1
push 0x5b74
push 0x57d1
lea eax, [ebp - 0xe0]
push eax
push 0x5b52
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x49de
push 1
call fcn.1000f84c
add esp, 0x28
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
add eax, 8
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x20], 0
push 0x2a01
push 0
lea eax, [ebp - 0x20]
push eax
push 0x1502
call fcn.10010b5e
add esp, 0x10
mov dword [ebp - 0x20], 0
jmp 0x100180a2
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffef
jg 0x100180bb
push 1
push 1
push 0x46f2
call fcn.1000ff2b
add esp, 0xc
jmp 0x1001809b
and dword [ebp - 0x68], 0
jmp 0x100180d0
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x40]
inc eax
inc eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
cmp dword [ebp - 0x68], eax
jae 0x1001858a
mov dword [ebp - 0x4c], 0
jmp 0x100180f6
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 3
jge 0x1001810c
mov eax, dword [ebp - 0x4c]
mov dword [ebp + eax*4 - 0x188], 0xa8eac8b1
jmp 0x100180ef
push 4
pop eax
shl eax, 1
mov dword [ebp + eax - 0x188], 0
jmp 0x10018137
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x188]
dec eax
push 4
pop ecx
shl ecx, 1
mov dword [ebp + ecx - 0x188], eax
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x188], 0xfffffffa
je 0x10018167
mov byte [ebp - 0x1a], 0
movzx eax, byte [ebp - 0x1a]
test eax, eax
je 0x10018165
push 0
push 0
push 0x17a2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x1001811e
lea eax, [ebp - 0x120]
push eax
push 1
push 1
lea eax, [ebp - 0x40]
push eax
call fcn.1000ffa2
add esp, 0x10
mov dword [ebp - 0x14], 0xfb871c7b
push 1
lea ecx, [ebp - 0xdc]
call fcn.1002a6d6
mov dword [ebp - 4], 2
mov dword [ebp - 0xb0], 2
mov dword [ebp - 0x18c], 1
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x1a4], 0x8bee6da
mov dword [ebp - 0x128], 0xfffffffd
mov dword [ebp - 0x190], 1
mov dword [ebp - 0x7c], 0xffffffff
mov dword [ebp - 0x1a0], 0xfffffffa
mov dword [ebp - 0x19c], 0xfffffffa
mov dword [ebp - 0x198], 0xfffffffa
mov dword [ebp - 0x194], 0xfffffffa
mov dword [ebp - 0x30], 0
jmp 0x10018214
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 1
jge 0x10018230
push dword [ebp - 0x30]
lea ecx, [ebp - 0xdc]
call fcn.1002a774
mov dword [eax], 0xc039
jmp 0x1001820d
cmp dword [ebp - 0x14], 0xb274
je 0x10018242
mov dword [ebp - 0x78], 1
jmp 0x10018246
and dword [ebp - 0x78], 0
push 0
lea ecx, [ebp - 0xdc]
call fcn.1002a774
cmp dword [eax], 0
jne 0x1001826e
cmp dword [ebp - 0x14], 0
jne 0x1001826e
push 9
pop eax
test eax, eax
jne 0x1001826e
and dword [ebp - 0x124], 0
jmp 0x10018278
mov dword [ebp - 0x124], 1
push 0
lea ecx, [ebp - 0xdc]
call fcn.1002a774
cmp dword [eax], 0
jne 0x10018296
mov dword [ebp - 0xcc], 1
jmp 0x1001829d
and dword [ebp - 0xcc], 0
mov esi, dword [ebp - 0x14]
add esi, dword [ebp - 0xcc]
add esi, dword [ebp - 0xb0]
push 0
lea ecx, [ebp - 0xdc]
call fcn.1002a774
cmp esi, dword [eax]
jne 0x100182cf
mov eax, 0x2a30a4cc
test eax, eax
jne 0x100182cf
and dword [ebp - 0xa8], 0
jmp 0x100182d9
mov dword [ebp - 0xa8], 1
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0xa8]
jg 0x100182ed
mov dword [ebp - 0x80], 1
jmp 0x100182f1
and dword [ebp - 0x80], 0
push 0
lea ecx, [ebp - 0xdc]
call fcn.1002a774
mov ecx, dword [ebp - 0x80]
cmp ecx, dword [eax]
jne 0x10018311
mov dword [ebp - 0xc0], 1
jmp 0x10018318
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0xc0]
sub eax, 9
cmp dword [ebp - 0x14], eax
jg 0x10018332
mov dword [ebp - 0x88], 1
jmp 0x10018339
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0x14], 0xffffffe3
jmp 0x1001835b
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xfffffffb
jne 0x100184f2
mov dword [ebp - 0x90], 3
mov dword [ebp - 0x17c], 0xffff
mov dword [ebp - 0x178], 0xffff
mov dword [ebp - 0x174], 0xffff
mov dword [ebp - 0x170], 0xffff
mov dword [ebp - 0x70], 0xdc32
mov dword [ebp - 0x38], 0
jmp 0x100183ae
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 3
jge 0x100183c4
mov eax, dword [ebp - 0x38]
mov dword [ebp + eax*4 - 0x1b0], 0xefa025ec
jmp 0x100183a7
mov byte [ebp - 0x19], 0
push 0x406e
push 0x28c0
push 0
push 0x2f57
lea eax, [ebp - 0x19]
push eax
push 0x5028
push 0x50c8
push 0x21c1
push 0x858
call fcn.100111a2
add esp, 0x24
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x17c]
mov dword [ebp - 0x110], eax
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x17c]
dec eax
push 4
pop ecx
imul ecx, ecx, 3
mov dword [ebp + ecx - 0x17c], eax
cmp dword [ebp - 0x110], 0x950c
jle 0x1001843f
mov dword [ebp - 0xc8], 1
jmp 0x10018446
and dword [ebp - 0xc8], 0
mov eax, dword [ebp - 0x90]
add eax, dword [ebp - 0x90]
cmp eax, dword [ebp - 0xc8]
jne 0x10018463
mov dword [ebp - 0x74], 1
jmp 0x10018467
and dword [ebp - 0x74], 0
cmp dword [ebp - 0x70], 0
jg 0x10018479
mov dword [ebp - 0x98], 1
jmp 0x10018480
and dword [ebp - 0x98], 0
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x98]
sub ecx, dword [ebp - 0x7c]
cmp ecx, dword [ebp + eax - 0x1b0]
jle 0x100184a3
mov dword [ebp - 0xb8], 1
jmp 0x100184aa
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0x128]
imul eax, dword [ebp - 0xb8]
test eax, eax
jge 0x100184d0
cmp dword [ebp - 0x118], 0
je 0x100184d0
mov dword [ebp - 0xa0], 1
jmp 0x100184d7
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0x70]
imul ecx, dword [ebp - 0x74], 0x4f9d
imul ecx, eax
mov dword [ebp - 0x7c], ecx
jmp 0x10018354
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xdc]
call fcn.1002a758
mov eax, dword [ebp - 0x40]
movzx eax, word [eax]
and eax, 0xfff
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x130], 0x399841b3
push 1
push 0x2daa
push 1
push 0x3296
lea eax, [ebp - 0x130]
push eax
call fcn.1001008b
add esp, 0x14
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 3
je 0x10018552
jmp 0x10018585
mov eax, dword [ebp - 0x140]
add eax, dword [ebp - 0x12c]
mov dword [ebp - 0x134], eax
push dword [ebp - 0x150]
push 0x6caa
push 0
lea eax, [ebp - 0x134]
push eax
push 0x665e
call fcn.100117b5
add esp, 0x14
jmp 0x100180c1
mov dword [ebp - 0xac], 0xaed2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0xfc42ff18
mov dword [ebp - 0xe4], 0xb65a
mov byte [ebp - 0x1b], 0
movzx eax, byte [ebp - 0x1b]
test eax, eax
je 0x100185d5
push 0x6c97
push 1
push 1
push 0x2a25
push 0x26b7
push 1
call fcn.1001037d
add esp, 0x18
or eax, 0xffffffff
sub eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x24]
jle 0x100185ec
mov dword [ebp - 0x84], 1
jmp 0x100185f3
and dword [ebp - 0x84], 0
mov eax, 0xc7ab
sub eax, dword [ebp - 0x84]
cmp eax, 0xda72
je 0x10018611
mov dword [ebp - 0x8c], 1
jmp 0x10018618
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x8c]
cmp eax, dword [ebp - 0x24]
jl 0x10018638
cmp dword [ebp - 0x18], 0
je 0x10018638
mov dword [ebp - 0x94], 1
jmp 0x1001863f
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x94]
jge 0x1001865f
mov eax, 0x4df8e3bf
test eax, eax
je 0x1001865f
mov dword [ebp - 0x9c], 1
jmp 0x10018666
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x9c], eax
jne 0x10018680
cmp dword [ebp - 0x24], 0
jne 0x10018680
and dword [ebp - 0xa4], 0
jmp 0x1001868a
mov dword [ebp - 0xa4], 1
imul eax, dword [ebp - 0xa4], 0
imul eax, eax, 3
cmp eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
sub ecx, eax
je 0x100186b1
xor eax, eax
je 0x100186b1
mov dword [ebp - 0x6c], 1
jmp 0x100186b5
and dword [ebp - 0x6c], 0
mov dword [ebp - 0xac], 0xfffffff9
mov eax, dword [ebp - 0xac]
add eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0xe4]
je 0x100186e0
xor eax, eax
je 0x100186e0
mov dword [ebp - 0xbc], 1
jmp 0x100186e7
and dword [ebp - 0xbc], 0
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc4], 0x47eb
mov dword [ebp - 0xec], 0x10008ac4
cmp dword [ebp - 0xc4], 0x49da
jle 0x1001878c
and dword [ebp - 0x48], 0
jmp 0x1001871d
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x65c7
jge 0x10018784
and dword [ebp - 0x50], 0
jmp 0x10018733
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x2177
jge 0x10018782
and dword [ebp - 0x58], 0
jmp 0x10018749
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0x1dff
jge 0x10018780
mov eax, dword [ebp - 0x48]
and eax, dword [ebp - 0x50]
xor eax, dword [ebp - 0x58]
cdq
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], edx
push dword [ebp - 0x160]
push dword [ebp - 0x164]
mov ecx, 0x10606538
call fcn.1002a5c1
jmp 0x10018742
jmp 0x1001872c
jmp 0x10018716
push 0x26
call dword [sym.imp.USER32.dll_MessageBeep]
push 0x1766
push 0x3335
push 0x196c
push 0x32cd
lea eax, [ebp - 0x60]
push eax
push 1
push 0x3b75
push 0x6a34
push 0x73d8
push 0x1187
push 1
push 0x74bc
call fcn.1001069c
add esp, 0x30
mov dword [ebp - 4], 3
cmp dword [ebp - 0xc4], 0x4598
jge 0x100187ec
mov edx, dword [ebp - 0xec]
mov ecx, 0x10606538
call fcn.1002c06b
jmp 0x10018808
or dword [ebp - 4], 0xffffffff
jmp 0x10018812
mov dword [ebp - 4], 5
cmp dword [ebp - 0xd0], 0x7953
jge 0x10018831
push dword [ebp - 0xf4]
call fcn.100480d6
pop ecx
jmp 0x1001884d
or dword [ebp - 4], 0xffffffff
jmp 0x10018857
jmp 0x100188bc
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x28]
mov dword [eax], 0
jmp 0x1001889c
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
cmp dword [eax], 3
jge 0x100188bc
mov eax, dword [ebp - 0x28]
push dword [eax]
mov ecx, dword [ebp - 0x11c]
call fcn.1002a774
mov dword [eax], 0x678e045d
jmp 0x10018891
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret