Function at 0x46bc78
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 0x46c3ce
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 8]
call fcn.00408550
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0040851c
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 8]
call fcn.00403de8
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.00408550
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0040851c
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
call fcn.00403de8
lea eax, [ebp - 0x30]
call fcn.004553bc
push dword [ebp - 0x30]
push 0x46c3e4
mov eax, dword [0x47cec0]
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.0046ebf8
mov eax, dword [0x9a750b]
mov dword [ebp - 0x24], eax
mov eax, dword [0x9a70fb]
and eax, 0x40
cmp eax, 0x40
jne 0x46bd57
lea ecx, [ebp - 0x14]
xor edx, edx
mov eax, dword [0x9a9170]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [0x9a70fb]
and eax, 0x10
cmp eax, 0x10
jne 0x46bd99
mov eax, dword [0x47cd1c]
cmp dword [eax], 0x1770
jge 0x46bd79
lea eax, [ebp - 0x14]
call fcn.0046bad4
cmp dword [ebp - 0x14], 0
jne 0x46bd99
call fcn.0045538c
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x14]
call fcn.004095c4
mov eax, dword [0x9a70fb]
and eax, 1
dec eax
jne 0x46bdb7
lea eax, [ebp - 0x2c]
call fcn.00455120
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
call fcn.00403fd4
mov eax, dword [0x9a70fb]
and eax, 2
cmp eax, 2
jne 0x46bde9
call fcn.0045538c
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x2c]
call fcn.004095c4
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
call fcn.00403fd4
mov eax, dword [0x9a70fb]
and eax, 4
cmp eax, 4
jne 0x46be09
lea eax, [ebp - 0x2c]
call fcn.00455350
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
call fcn.00403fd4
mov eax, dword [0x9a70fb]
and eax, 8
cmp eax, 8
jne 0x46be29
lea eax, [ebp - 0x20]
call fcn.00461d28
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x20]
call fcn.00403fd4
mov eax, dword [0x9a70fb]
and eax, 0x20
cmp eax, 0x20
jne 0x46be5b
call fcn.0046b9b0
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x2c]
call fcn.004095c4
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
call fcn.00403fd4
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax*4 + 0x9a8933]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.004085e8
push dword [ebp - 0x30]
mov eax, dword [0x47cec0]
push dword [eax]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.0040408c
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x44]
call fcn.00453b9c
lea ecx, [ebp - 0x44]
mov edx, 0x46c3f0
mov eax, 0x46c404
call fcn.0046bbb0
mov edx, dword [ebp - 0x10]
mov eax, 0x46c418
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, 0x46c424
call fcn.00404258
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
call fcn.004084cc
cmp dword [ebp - 0x2c], 0
jne 0x46bf11
lea eax, [ebp - 0x10]
mov edx, 0x46c430
call fcn.00403de8
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
call fcn.004082e8
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
call fcn.00403de8
mov eax, dword [0x47cf0c]
call fcn.00403d50
cmp byte [0x9a6c33], 0
je 0x46bf5f
push dword [ebp - 0x10]
push 0x46c424
lea eax, [ebp - 0x2c]
mov edx, 0x9a6c33
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 [0x9a750b]
mov dword [ebp - 0x24], eax
mov edi, 1
mov esi, 0x9a7537
mov ebx, 0x9a750f
mov dword [ebp - 0x28], 0x9a6d61
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.00403f70
cmp dword [ebp - 0x18], 0
je 0x46c3a6
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.00453b9c
lea ecx, [ebp - 0x44]
mov edx, 0x46c444
mov eax, 0x46c404
call fcn.0046bbb0
mov edx, dword [ebp - 0x10]
mov eax, 0x46c418
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.0045528c
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.00408ec0
xor eax, 0
jne 0x46c38f
cmp dword [ebx], 1
jne 0x46c24e
cmp dword [0x9a7207], 0
jle 0x46c0af
mov dl, 1
mov eax, dword [0x40eddc]
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, 0x46c450
call fcn.00455090
mov ecx, dword [ebp - 0x30]
mov edx, dword [0x47cc60]
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 [0x9a750b], edi
mov eax, 0x9a6df1
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 + 0x9a8933]
call fcn.004085e8
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x144]
mov ecx, 0xff
call fcn.00403fa8
lea edx, [ebp - 0x144]
mov eax, 0x9a8d4b
mov cl, 0xa
call fcn.00402c30
mov eax, 0x9a8d6c
mov edx, dword [ebp - 8]
mov ecx, 0xff
call fcn.00403fa8
mov byte [0x9a6de3], 0
lea eax, [ebp - 0x30]
call fcn.004553bc
push dword [ebp - 0x30]
push 0x46c3e4
mov eax, dword [0x47cec0]
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.0046ea38
mov eax, dword [0x47ce9c]
push dword [eax]
push 0x46c3e4
lea edx, [ebp - 0x30]
mov eax, 0x46c468
call fcn.00455090
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 [0x453db4]
call fcn.00453e5c
mov ebx, eax
mov eax, dword [0x47cef4]
cmp dword [eax], 2
je 0x46c1a8
lea edx, [ebp - 0x2c]
mov eax, 0x46c468
call fcn.00455090
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x453db4]
call fcn.00453e5c
mov ebx, eax
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [0x47cec0]
mov edx, dword [edx]
mov ecx, 0x46c47c
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, 0x46c48c
call fcn.00455090
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x47ccb4]
call fcn.00403da4
lea eax, [ebp - 0x1c]
lea edx, [esi + 0xa00]
call fcn.00403f70
xor eax, eax
push ebp
push 0x46c23f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00404190
mov ebx, eax
push ebx
push 0x46c498
call sub.kernel32.dll_SetEnvironmentVariableA
push ebx
push 0x46c4a4
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp - 0x1c]
call fcn.00404190
push eax
push 0x46c4b0
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46c3a6
cmp dword [ebx], 0
mov dword [0x9a750b], edi
xor eax, eax
mov dword [0x9a6ef1], eax
mov byte [0x9a6de3], 0
call fcn.00469ed0
call fcn.00409ab8
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x2c]
call fcn.0040a6a0
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.00409ab8
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x2c]
call fcn.0040a6a0
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x144]
mov ecx, 0xff
call fcn.00403fa8
lea edx, [ebp - 0x144]
mov eax, 0x9a8d56
mov cl, 0xa
call fcn.00402c30
lea eax, [ebp - 0x30]
call fcn.004553bc
push dword [ebp - 0x30]
push 0x46c3e4
mov eax, dword [0x47cec0]
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.0046ea38
lea edx, [ebp - 0x2c]
mov eax, 0x46c4c0
call fcn.00455090
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x47ccb4]
call fcn.00403da4
lea eax, [ebp - 0x1c]
lea edx, [esi + 0xa00]
call fcn.00403f70
xor eax, eax
push ebp
push 0x46c383
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
call fcn.00404190
push eax
push 0x46c4b0
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebx - 0xa5b]
push eax
push 0x46c4d0
call sub.kernel32.dll_SetEnvironmentVariableA
call fcn.0040cbf0
mov eax, dword [ebx - 0xa33]
push eax
push 0x46c4dc
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46c3a6
inc edi
add dword [ebp - 0x28], 0xd
add ebx, 4
add esi, 0x100
cmp edi, 0xb
jne 0x46bf88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c3d5
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00403d74
lea eax, [ebp - 0x20]
mov edx, 7
call fcn.00403d74
ret