Function at 0x46c20c
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404180
mov eax, dword [ebp - 0xc]
call fcn.00404180
xor eax, eax
push ebp
push 0x46c962
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 8]
call fcn.00408558
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00408524
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 8]
call fcn.00403de8
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.00408558
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00408524
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
call fcn.00403de8
lea eax, [ebp - 0x30]
call fcn.00455428
push dword [ebp - 0x30]
push 0x46c978
mov eax, dword [0x47cfc0]
push dword [eax]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.0040408c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.0046f18c
mov eax, dword [0x9a850b]
mov dword [ebp - 0x24], eax
mov eax, dword [0x9a80fb]
and eax, 0x40
cmp eax, 0x40
jne 0x46c2eb
lea ecx, [ebp - 0x14]
xor edx, edx
mov eax, dword [0x9aa170]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [0x9a80fb]
and eax, 0x10
cmp eax, 0x10
jne 0x46c32d
mov eax, dword [0x47ce1c]
cmp dword [eax], 0x1770
jge 0x46c30d
lea eax, [ebp - 0x14]
call fcn.0046c068
cmp dword [ebp - 0x14], 0
jne 0x46c32d
call fcn.004553f8
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x14]
call fcn.00409630
mov eax, dword [0x9a80fb]
and eax, 1
dec eax
jne 0x46c34b
lea eax, [ebp - 0x2c]
call fcn.0045518c
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
call fcn.00403fd4
mov eax, dword [0x9a80fb]
and eax, 2
cmp eax, 2
jne 0x46c37d
call fcn.004553f8
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x2c]
call fcn.00409630
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
call fcn.00403fd4
mov eax, dword [0x9a80fb]
and eax, 4
cmp eax, 4
jne 0x46c39d
lea eax, [ebp - 0x2c]
call fcn.004553bc
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
call fcn.00403fd4
mov eax, dword [0x9a80fb]
and eax, 8
cmp eax, 8
jne 0x46c3bd
lea eax, [ebp - 0x20]
call fcn.00461d94
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x20]
call fcn.00403fd4
mov eax, dword [0x9a80fb]
and eax, 0x20
cmp eax, 0x20
jne 0x46c3ef
call fcn.0046bf44
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x2c]
call fcn.00409630
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
call fcn.00403fd4
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax*4 + 0x9a9933]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.004085f0
push dword [ebp - 0x30]
mov eax, dword [0x47cfc0]
push dword [eax]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.0040408c
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x44]
call fcn.00453c08
lea ecx, [ebp - 0x44]
mov edx, 0x46c984
mov eax, 0x46c998
call fcn.0046c144
mov edx, dword [ebp - 0x10]
mov eax, 0x46c9ac
call fcn.004042b4
lea edx, [ebp - 0x10]
mov ecx, eax
mov eax, 1
xchg edx, eax
call fcn.00404210
mov eax, dword [ebp - 0x10]
call fcn.00403fcc
mov ecx, eax
sub ecx, 8
lea eax, [ebp - 0x10]
mov edx, 8
call fcn.00404210
lea edx, [ebp - 0x10]
mov ecx, 5
mov eax, 0x46c9b8
call fcn.00404258
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
call fcn.004084d4
cmp dword [ebp - 0x2c], 0
jne 0x46c4a5
lea eax, [ebp - 0x10]
mov edx, 0x46c9c4
call fcn.00403de8
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
call fcn.004082f0
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
call fcn.00403de8
mov eax, dword [0x47d00c]
call fcn.00403d50
cmp byte [0x9a7c33], 0
je 0x46c4f3
push dword [ebp - 0x10]
push 0x46c9b8
lea eax, [ebp - 0x2c]
mov edx, 0x9a7c33
call fcn.00403f70
push dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040408c
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00403de8
mov eax, dword [0x9a850b]
mov dword [ebp - 0x24], eax
mov edi, 1
mov esi, 0x9a8537
mov ebx, 0x9a850f
mov dword [ebp - 0x28], 0x9a7d61
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.00403f70
cmp dword [ebp - 0x18], 0
je 0x46c93a
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push dword [ebp - 8]
push dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.0040408c
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x44]
call fcn.00453c08
lea ecx, [ebp - 0x44]
mov edx, 0x46c9d8
mov eax, 0x46c998
call fcn.0046c144
mov edx, dword [ebp - 0x10]
mov eax, 0x46c9ac
call fcn.004042b4
lea edx, [ebp - 0x10]
mov ecx, eax
mov eax, 1
xchg edx, eax
call fcn.00404210
mov eax, dword [ebp - 0x10]
call fcn.00403fcc
mov ecx, eax
sub ecx, 0x14
lea eax, [ebp - 0x10]
mov edx, 0x14
call fcn.00404210
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
call fcn.004552f8
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
call fcn.00403de8
mov eax, dword [ebp - 0xc]
call fcn.00404190
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404190
pop edx
call fcn.00408f2c
xor eax, 0
jne 0x46c923
cmp dword [ebx], 1
jne 0x46c7e2
cmp dword [0x9a8207], 0
jle 0x46c643
mov dl, 1
mov eax, dword [0x40ee48]
call fcn.004030fc
mov ebx, eax
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [ebp - 8]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea edx, [ebp - 0x30]
mov eax, 0x46c9e4
call fcn.004550fc
mov ecx, dword [ebp - 0x30]
mov edx, dword [0x47cd60]
mov edx, dword [edx]
lea eax, [ebp - 0x2c]
call fcn.00404018
mov edx, dword [ebp - 0x2c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, ebx
call fcn.0040312c
mov dword [0x9a850b], edi
mov eax, 0x9a7df1
mov edx, dword [ebp - 0x10]
mov ecx, 0xff
call fcn.00403fa8
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax*4 + 0x9a9933]
call fcn.004085f0
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x144]
mov ecx, 0xff
call fcn.00403fa8
lea edx, [ebp - 0x144]
mov eax, 0x9a9d4b
mov cl, 0xa
call fcn.00402c30
mov eax, 0x9a9d6c
mov edx, dword [ebp - 8]
mov ecx, 0xff
call fcn.00403fa8
mov byte [0x9a7de3], 0
lea eax, [ebp - 0x30]
call fcn.00455428
push dword [ebp - 0x30]
push 0x46c978
mov eax, dword [0x47cfc0]
push dword [eax]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.0040408c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.0046efcc
mov eax, dword [0x47cf9c]
push dword [eax]
push 0x46c978
lea edx, [ebp - 0x30]
mov eax, 0x46c9fc
call fcn.004550fc
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.0040408c
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x453e20]
call fcn.00453ec8
mov ebx, eax
mov eax, dword [0x47cff4]
cmp dword [eax], 2
je 0x46c73c
lea edx, [ebp - 0x2c]
mov eax, 0x46c9fc
call fcn.004550fc
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x453e20]
call fcn.00453ec8
mov ebx, eax
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [0x47cfc0]
mov edx, dword [edx]
mov ecx, 0x46ca10
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 4]
mov dl, 1
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 4]
lea edx, [ebp - 0x2c]
mov eax, 0x46ca20
call fcn.004550fc
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x47cdb4]
call fcn.00403da4
lea eax, [ebp - 0x1c]
lea edx, [esi + 0xa00]
call fcn.00403f70
xor eax, eax
push ebp
push 0x46c7d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00404190
mov ebx, eax
push ebx
push 0x46ca2c
call sub.kernel32.dll_SetEnvironmentVariableA
push ebx
push 0x46ca38
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp - 0x1c]
call fcn.00404190
push eax
push 0x46ca44
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46c93a
cmp dword [ebx], 0
mov dword [0x9a850b], edi
xor eax, eax
mov dword [0x9a7ef1], eax
mov byte [0x9a7de3], 0
call fcn.00469f6c
call fcn.00409b24
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x2c]
call fcn.0040a70c
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x144]
mov ecx, 0xff
call fcn.00403fa8
lea edx, [ebp - 0x144]
mov eax, dword [ebp - 0x28]
mov cl, 0xc
call fcn.00402c30
call fcn.00409b24
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x2c]
call fcn.0040a70c
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x144]
mov ecx, 0xff
call fcn.00403fa8
lea edx, [ebp - 0x144]
mov eax, 0x9a9d56
mov cl, 0xa
call fcn.00402c30
lea eax, [ebp - 0x30]
call fcn.00455428
push dword [ebp - 0x30]
push 0x46c978
mov eax, dword [0x47cfc0]
push dword [eax]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.0040408c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.0046efcc
lea edx, [ebp - 0x2c]
mov eax, 0x46ca54
call fcn.004550fc
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x47cdb4]
call fcn.00403da4
lea eax, [ebp - 0x1c]
lea edx, [esi + 0xa00]
call fcn.00403f70
xor eax, eax
push ebp
push 0x46c917
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
call fcn.00404190
push eax
push 0x46ca44
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebx - 0xa5b]
push eax
push 0x46ca64
call sub.kernel32.dll_SetEnvironmentVariableA
call fcn.0040cc5c
mov eax, dword [ebx - 0xa33]
push eax
push 0x46ca70
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46c93a
inc edi
add dword [ebp - 0x28], 0xd
add ebx, 4
add esi, 0x100
cmp edi, 0xb
jne 0x46c51c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c969
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00403d74
lea eax, [ebp - 0x20]
mov edx, 7
call fcn.00403d74
ret