Function at 0x46ce68
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x2c
push 0
push 0
dec ecx
jne 0x46ce71
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404a7c
xor eax, eax
push ebp
push 0x46d91c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.004045dc
lea eax, [ebp - 0x1c]
mov edx, 0x46d934
call fcn.00404674
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.00408594
mov eax, dword [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
call fcn.00408594
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.004049d8
jne 0x46cee8
cmp byte [ebp - 9], 0
je 0x46d8cc
mov dword [0x471fe8], 3
xor eax, eax
mov dword [0x471fec], eax
mov eax, dword [0x470aa8]
mov byte [eax], 0
mov dword [0x471fd4], 1
lea eax, [ebp - 0x24]
mov edx, dword [0x4708e0]
mov edx, dword [edx]
call fcn.00404674
push dword [ebp - 0x24]
push 0x46d950
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404954
mov eax, dword [ebp - 0x30]
call fcn.00408d18
test al, al
jne 0x46cfb8
mov edx, dword [0x470998]
mov edx, dword [edx]
lea eax, [ebp - 0x24]
mov ecx, 0x46d95c
call fcn.004048e0
push dword [ebp - 0x24]
push 0x46d950
push dword [ebp - 0x1c]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404954
mov eax, dword [ebp - 0x34]
call fcn.00408d18
test al, al
jne 0x46cfb8
lea eax, [ebp - 0x1c]
mov edx, 0x46d934
call fcn.00404674
push dword [ebp - 0x24]
push 0x46d950
push dword [ebp - 0x1c]
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00404954
mov eax, dword [ebp - 0x38]
call fcn.00408d18
test al, al
jne 0x46cfb8
mov dword [0x471fec], 1
jmp 0x46d8cc
xor eax, eax
push ebp
push 0x46d83f
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x24]
push 0x46d950
push dword [ebp - 0x1c]
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00404954
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x46d821
inc esi
xor ebx, ebx
cmp byte [ebp - 9], 0
je 0x46d03e
mov eax, dword [ebp + 8]
push dword [eax]
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x40]
push 0x46d974
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.00404954
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x50], 0
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
lea edx, [ebp - 0x54]
mov ecx, 1
mov eax, 0x46d984
call fcn.004095c0
mov eax, dword [ebp - 0x44]
call fcn.0046c198
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.004087b0
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.004085d0
mov eax, dword [ebp - 0x60]
mov ecx, 0x64
mov edx, 5
call fcn.00404aec
mov edx, dword [ebp - 0x5c]
mov eax, 0x46d994
call fcn.00404bd0
test eax, eax
jg 0x46d1bf
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x74]
call fcn.004087b0
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x70]
call fcn.004085d0
mov eax, dword [ebp - 0x70]
mov ecx, 0x64
mov edx, 5
call fcn.00404aec
mov edx, dword [ebp - 0x6c]
mov eax, 0x46d9a4
call fcn.00404bd0
test eax, eax
jg 0x46d1bf
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x84]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0x80]
call fcn.004087b0
mov eax, dword [ebp - 0x80]
mov ecx, 0x64
mov edx, 5
call fcn.00404aec
mov edx, dword [ebp - 0x7c]
mov eax, 0x46d9b8
call fcn.00404bd0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jle 0x46d1bf
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x8c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x20]
dec ecx
mov edx, 1
call fcn.00404aec
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0x20]
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x98]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
call fcn.004087b0
mov eax, dword [ebp - 0x94]
mov ecx, 4
mov edx, 1
call fcn.00404aec
mov eax, dword [ebp - 0x90]
mov edx, 0x46d9c4
call fcn.004049d8
jne 0x46d32a
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0xa4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
call fcn.004087b0
mov eax, dword [ebp - 0xa0]
mov ecx, 0x64
mov edx, 5
call fcn.00404aec
mov edx, dword [ebp - 0x9c]
mov eax, 0x46d9d4
call fcn.00404bd0
test eax, eax
jle 0x46d313
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xac]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xa8]
call fcn.004087b0
mov eax, dword [ebp - 0xa8]
mov ecx, 0x64
mov edx, 5
call fcn.00404aec
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 0x10]
mov eax, 0x46d9d4
call fcn.00404bd0
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00404aec
lea eax, [ebp - 0x18]
push eax
mov edx, dword [ebp - 0x10]
mov eax, 0x46d9d4
call fcn.00404bd0
mov edx, eax
inc edx
mov ecx, 0x64
mov eax, dword [ebp - 0x10]
call fcn.00404aec
lea eax, [ebp - 0xb0]
mov ecx, dword [ebp - 0x10]
mov edx, 0x46d9c4
call fcn.004048e0
mov eax, dword [ebp - 0xb0]
call fcn.0046c198
mov eax, dword [ebp - 0x18]
call fcn.00404a8c
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404a8c
push eax
call sub.kernel32.dll_SetEnvironmentVariableA
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0xbc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xbc]
lea edx, [ebp - 0xb8]
call fcn.004087b0
mov eax, dword [ebp - 0xb8]
mov ecx, 0xa
mov edx, 1
call fcn.00404aec
mov eax, dword [ebp - 0xb4]
mov edx, 0x46d9e0
call fcn.004049d8
jne 0x46d3c0
push 0x471fd8
lea ecx, [ebp - 0xc4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xc4]
lea edx, [ebp - 0xc0]
call fcn.004087b0
mov eax, dword [ebp - 0xc0]
mov ecx, 0x64
mov edx, 0xb
call fcn.00404aec
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xd0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xd0]
lea edx, [ebp - 0xcc]
call fcn.004087b0
mov eax, dword [ebp - 0xcc]
mov ecx, 5
mov edx, 1
call fcn.00404aec
mov eax, dword [ebp - 0xc8]
mov edx, 0x46d9f4
call fcn.004049d8
jne 0x46d468
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xdc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xdc]
lea edx, [ebp - 0xd8]
call fcn.004087b0
mov eax, dword [ebp - 0xd8]
mov ecx, 0x64
mov edx, 6
call fcn.00404aec
mov eax, dword [ebp - 0xd4]
call fcn.00408904
mov dword [0x471fe0], eax
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0xe8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xe8]
lea edx, [ebp - 0xe4]
call fcn.004087b0
mov eax, dword [ebp - 0xe4]
mov ecx, 8
mov edx, 1
call fcn.00404aec
mov eax, dword [ebp - 0xe0]
mov edx, 0x46da04
call fcn.004049d8
jne 0x46d510
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0xf4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xf4]
lea edx, [ebp - 0xf0]
call fcn.004087b0
mov eax, dword [ebp - 0xf0]
mov ecx, 0x64
mov edx, 9
call fcn.00404aec
mov eax, dword [ebp - 0xec]
call fcn.00408904
mov dword [0x471fe4], eax
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x100]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x100]
lea edx, [ebp - 0xfc]
call fcn.004087b0
mov eax, dword [ebp - 0xfc]
mov ecx, 8
mov edx, 1
call fcn.00404aec
mov eax, dword [ebp - 0xf8]
mov edx, 0x46da18
call fcn.004049d8
jne 0x46d5a1
mov eax, dword [0x470aa8]
mov byte [eax], 1
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10c], eax
mov byte [ebp - 0x108], 0xb
lea edx, [ebp - 0x10c]
xor ecx, ecx
mov eax, 0x46da2c
call fcn.004095c0
mov eax, dword [ebp - 0x104]
call fcn.0046c198
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x118]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x118]
lea edx, [ebp - 0x114]
call fcn.004087b0
mov eax, dword [ebp - 0x114]
mov ecx, 9
mov edx, 1
call fcn.00404aec
mov eax, dword [ebp - 0x110]
mov edx, 0x46da4c
call fcn.004049d8
jne 0x46d657
lea ecx, [ebp - 0x11c]
mov edx, 0x46da60
mov eax, dword [ebp - 4]
call fcn.0046db24
mov eax, dword [ebp - 0x11c]
mov edx, 0x46da6c
call fcn.004049d8
je 0x46d657
mov eax, dword [0x470aa8]
mov byte [eax], 1
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10c], eax
mov byte [ebp - 0x108], 0xb
lea edx, [ebp - 0x10c]
xor ecx, ecx
mov eax, 0x46da2c
call fcn.004095c0
mov eax, dword [ebp - 0x120]
call fcn.0046c198
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x12c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x12c]
lea edx, [ebp - 0x128]
call fcn.004087b0
mov eax, dword [ebp - 0x128]
mov ecx, 9
mov edx, 1
call fcn.00404aec
mov eax, dword [ebp - 0x124]
mov edx, 0x46da80
call fcn.004049d8
jne 0x46d6ff
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x138]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.004087b0
mov eax, dword [ebp - 0x134]
mov ecx, 0xc
mov edx, 0xa
call fcn.00404aec
mov eax, dword [ebp - 0x130]
call fcn.00408904
mov dword [0x471fd4], eax
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x144]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.004087b0
mov eax, dword [ebp - 0x140]
mov ecx, 0xd
mov edx, 1
call fcn.00404aec
mov eax, dword [ebp - 0x13c]
mov edx, 0x46da94
call fcn.004049d8
jne 0x46d75e
mov dword [0x471fe8], 3
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x150]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
call fcn.004087b0
mov eax, dword [ebp - 0x14c]
mov ecx, 0xd
mov edx, 1
call fcn.00404aec
mov eax, dword [ebp - 0x148]
mov edx, 0x46daac
call fcn.004049d8
jne 0x46d7ba
xor eax, eax
mov dword [0x471fe8], eax
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x15c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x158]
call fcn.004087b0
mov eax, dword [ebp - 0x158]
mov ecx, 0x10
mov edx, 1
call fcn.00404aec
mov eax, dword [ebp - 0x154]
mov edx, 0x46dac4
call fcn.004049d8
jne 0x46d819
mov dword [0x471fe8], 4
inc ebx
dec esi
jne 0x46d00b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d846
mov eax, dword [ebp - 4]
add eax, 0xa0
mov edx, dword [ebp - 0x1c]
call fcn.00404630
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d923
lea eax, [ebp - 0x168]
mov edx, 0x17
call fcn.00404600
lea eax, [ebp - 0x104]
mov edx, 0x2c
call fcn.00404600
lea eax, [ebp - 0x44]
mov edx, 9
call fcn.00404600
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404600
lea eax, [ebp - 8]
call fcn.004045dc
ret