Function at 0x469534
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x469e03
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x47d00c]
call fcn.00403d50
mov eax, dword [0x47cf10]
cmp byte [eax], 1
je 0x469dcb
mov byte [ebp - 0x1d], 0
lea edx, [ebp - 0xc]
mov eax, dword [0x47eb88]
mov eax, dword [eax + 0x334]
call fcn.0042af50
lea eax, [ebp - 0x34]
call fcn.00455428
push dword [ebp - 0x34]
push 0x469e1c
mov eax, dword [0x47cfc0]
push dword [eax]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.0040408c
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.0046a158
mov edi, dword [0x47cf00]
mov edi, dword [edi + 0xa57]
mov dword [ebp - 0x1c], 1
mov esi, dword [0x47cf00]
add esi, 0xa83
mov ebx, dword [0x47cf00]
add ebx, 0xa5b
mov eax, dword [0x47cf00]
add eax, 0x2ad
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.00403f70
cmp dword [ebp - 0x10], 0
je 0x469d27
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.0042af50
push dword [ebp - 0x48]
push dword [ebp - 0x10]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.0040408c
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x44]
call fcn.00453c08
lea ecx, [ebp - 0x44]
mov edx, 0x469e28
mov eax, 0x469e34
call fcn.0046946c
mov edx, dword [ebp - 8]
mov eax, 0x469e48
call fcn.004042b4
lea edx, [ebp - 8]
mov ecx, eax
mov eax, 1
xchg edx, eax
call fcn.00404210
mov eax, dword [ebp - 8]
call fcn.00403fcc
mov ecx, eax
sub ecx, 0x14
lea eax, [ebp - 8]
mov edx, 0x14
call fcn.00404210
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 8]
call fcn.004552f8
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 8]
call fcn.00403de8
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
call fcn.0042af50
mov eax, dword [ebp - 0x48]
call fcn.00404190
push eax
mov eax, dword [ebp - 8]
call fcn.00404190
pop edx
call fcn.00408f2c
xor eax, 0
jne 0x469d0d
mov eax, dword [ebx]
cmp eax, 2
jne 0x4696f4
mov edx, dword [0x47cf10]
cmp byte [edx], 1
je 0x469dcb
cmp eax, 3
jne 0x469708
mov edx, dword [0x47cf10]
cmp byte [edx], 1
je 0x469dcb
cmp eax, 4
jne 0x46971c
mov edx, dword [0x47cf10]
cmp byte [edx], 1
je 0x469dcb
cmp eax, 8
jne 0x469730
mov edx, dword [0x47cf10]
cmp byte [edx], 1
je 0x469dcb
cmp eax, 9
jne 0x469744
mov edx, dword [0x47cf10]
cmp byte [edx], 1
je 0x469dcb
cmp eax, 0xa
jne 0x469758
mov edx, dword [0x47cf10]
cmp byte [edx], 1
je 0x469dcb
dec eax
jne 0x469adb
mov eax, dword [0x47cf00]
cmp dword [eax + 0x753], 0
jle 0x4697db
mov dl, 1
mov eax, dword [0x40ee48]
call fcn.004030fc
mov ebx, eax
mov edx, dword [ebp - 8]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.0042af50
mov edx, dword [ebp - 0x48]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea edx, [ebp - 0x34]
mov eax, 0x469e54
call fcn.004550fc
mov ecx, dword [ebp - 0x34]
mov edx, dword [0x47cd60]
mov edx, dword [edx]
lea eax, [ebp - 0x30]
call fcn.00404018
mov edx, dword [ebp - 0x30]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, ebx
call fcn.0040312c
mov eax, dword [0x47cf00]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0xa57], edx
mov eax, dword [0x47cf00]
add eax, 0x33d
mov edx, dword [ebp - 8]
mov ecx, 0xff
call fcn.00403fa8
mov eax, dword [0x47cf00]
mov eax, dword [eax + edi*4 + 0x1e7f]
lea edx, [ebp - 0x30]
call fcn.004085f0
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x148]
mov ecx, 0xff
call fcn.00403fa8
lea edx, [ebp - 0x148]
mov eax, dword [0x47cf00]
add eax, 0x2297
mov cl, 0xa
call fcn.00402c30
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.0042af50
mov edx, dword [ebp - 0x48]
mov eax, dword [0x47cf00]
add eax, 0x22b8
mov ecx, 0xff
call fcn.00403fa8
mov eax, dword [0x47cf00]
mov byte [eax + 0x32f], 0
lea eax, [ebp - 0x34]
call fcn.00455428
push dword [ebp - 0x34]
push 0x469e1c
mov eax, dword [0x47cfc0]
push dword [eax]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.0040408c
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00469f98
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x44]
mov eax, dword [0x47cfc0]
mov eax, dword [eax]
call fcn.00453c08
lea ecx, [ebp - 0x44]
mov edx, 0x469e6c
mov eax, 0x469e34
call fcn.0046946c
mov edx, dword [ebp - 0x18]
mov eax, 0x469e48
call fcn.004042b4
lea edx, [ebp - 0x18]
mov ecx, eax
mov eax, 1
xchg edx, eax
call fcn.00404210
mov eax, dword [0x47cff4]
cmp dword [eax], 2
jne 0x469928
mov eax, dword [0x47cf9c]
push dword [eax]
push 0x469e1c
lea edx, [ebp - 0x34]
mov eax, 0x469e7c
call fcn.004550fc
push dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.0040408c
mov ecx, dword [ebp - 0x30]
mov dl, 1
mov eax, dword [0x453e20]
call fcn.00453ec8
mov dword [ebp - 0x24], eax
mov eax, dword [0x47cff4]
cmp dword [eax], 2
je 0x469951
lea edx, [ebp - 0x30]
mov eax, 0x469e7c
call fcn.004550fc
mov ecx, dword [ebp - 0x30]
mov dl, 1
mov eax, dword [0x453e20]
call fcn.00453ec8
mov dword [ebp - 0x24], eax
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x469e90
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 8]
push eax
mov edx, dword [0x47cfc0]
mov edx, dword [edx]
mov ecx, 0x469ea4
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 4]
call fcn.00409b24
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x30]
call fcn.0040a70c
mov eax, dword [ebp - 0x30]
push eax
mov ecx, 0x469eb4
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp - 0x28]
push eax
mov ecx, 0x469e90
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 4]
call fcn.00409b24
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x30]
call fcn.0040a70c
mov eax, dword [ebp - 0x30]
push eax
mov edx, dword [0x47cfc0]
mov edx, dword [edx]
mov ecx, 0x469eb4
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp - 0x28]
push eax
mov edx, dword [0x47cfc0]
mov edx, dword [edx]
mov ecx, 0x469e90
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 4]
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.0042af50
mov eax, dword [ebp - 0x48]
push eax
mov edx, dword [0x47cfc0]
mov edx, dword [edx]
mov ecx, 0x469ec4
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [0x47cfc0]
mov edx, dword [edx]
mov ecx, 0x469ed8
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 4]
mov dl, 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx - 4]
mov byte [ebp - 0x1d], 1
lea edx, [ebp - 0x30]
mov eax, 0x469eec
call fcn.004550fc
mov edx, dword [ebp - 0x30]
mov eax, dword [0x47cdb4]
call fcn.00403da4
lea eax, [ebp - 0x14]
lea edx, [esi + 0xa00]
call fcn.00403f70
xor eax, eax
push ebp
push 0x469acc
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.0042af50
mov eax, dword [ebp - 0x48]
call fcn.00404190
push eax
push 0x469ef8
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp - 0x14]
call fcn.00404190
push eax
push 0x469f04
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x469d27
cmp dword [ebx], 0
mov eax, dword [0x47cff4]
cmp dword [eax], 2
jne 0x469b23
mov eax, dword [0x47cf9c]
push dword [eax]
push 0x469e1c
lea edx, [ebp - 0x34]
mov eax, 0x469f14
call fcn.004550fc
push dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.0040408c
mov ecx, dword [ebp - 0x30]
mov dl, 1
mov eax, dword [0x453e20]
call fcn.00453ec8
mov dword [ebp - 0x24], eax
mov eax, dword [0x47cff4]
cmp dword [eax], 2
je 0x469b4c
lea edx, [ebp - 0x30]
mov eax, 0x469f14
call fcn.004550fc
mov ecx, dword [ebp - 0x30]
mov dl, 1
mov eax, dword [0x453e20]
call fcn.00453ec8
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.0042af50
mov eax, dword [ebp - 0x48]
push eax
mov ecx, 0x469ec4
mov edx, 0x469f28
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 4]
mov dl, 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx - 4]
mov eax, dword [0x47cf00]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0xa57], edx
mov eax, dword [0x47cf00]
xor edx, edx
mov dword [eax + 0x43d], edx
mov eax, dword [0x47cf00]
mov byte [eax + 0x32f], 0
mov eax, dword [0x47cf00]
add eax, 0x33d
mov edx, dword [ebp - 0xc]
mov ecx, 0xff
call fcn.00403fa8
call fcn.00469f6c
call fcn.00409b24
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x30]
call fcn.0040a70c
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x148]
mov ecx, 0xff
call fcn.00403fa8
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 0x2c]
mov cl, 0xc
call fcn.00402c30
call fcn.00409b24
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x30]
call fcn.0040a70c
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x148]
mov ecx, 0xff
call fcn.00403fa8
lea edx, [ebp - 0x148]
mov eax, dword [0x47cf00]
add eax, 0x22a2
mov cl, 0xa
call fcn.00402c30
lea eax, [ebp - 0x34]
call fcn.00455428
push dword [ebp - 0x34]
push 0x469e1c
mov eax, dword [0x47cfc0]
push dword [eax]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.0040408c
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00469f98
lea edx, [ebp - 0x30]
mov eax, 0x469f3c
call fcn.004550fc
mov edx, dword [ebp - 0x30]
mov eax, dword [0x47cdb4]
call fcn.00403da4
lea eax, [ebp - 0x14]
lea edx, [esi + 0xa00]
call fcn.00403f70
xor eax, eax
push ebp
push 0x469cfd
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.0042af50
mov eax, dword [ebp - 0x48]
call fcn.00404190
push eax
push 0x469f4c
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp - 0x14]
call fcn.00404190
push eax
push 0x469f04
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebx - 0xa5b]
push eax
push 0x469f58
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebx - 0xa33]
push eax
push 0x469f64
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x469d07
mov byte [ebp - 0x1d], 1
jmp 0x469d27
inc dword [ebp - 0x1c]
add dword [ebp - 0x2c], 0xd
add ebx, 4
add esi, 0x100
cmp dword [ebp - 0x1c], 0xb
jne 0x469604
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
call fcn.0042af50
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 8]
call fcn.004040dc
je 0x469d92
mov eax, dword [0x47ce60]
mov eax, dword [eax]
call fcn.00445fbc
push 0x30
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e4]
call fcn.0042af50
mov eax, dword [ebp - 0x48]
call fcn.00404190
push eax
mov eax, dword [0x47eb90]
call fcn.00404190
mov edx, eax
mov eax, dword [0x47ce60]
mov eax, dword [eax]
pop ecx
call fcn.00446f18
mov eax, dword [0x47ce60]
mov eax, dword [eax]
call fcn.00445fcc
cmp byte [ebp - 0x1d], 1
jne 0x469da0
mov eax, dword [ebp - 4]
call fcn.00443bcc
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
call fcn.0042af50
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 8]
call fcn.004040dc
jne 0x469dcb
mov eax, dword [0x47d00c]
mov edx, dword [ebp - 8]
call fcn.00403da4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469e0a
lea eax, [ebp - 0x48]
call fcn.00403d50
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00403d74
lea eax, [ebp - 0x28]
call fcn.00403d50
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.00403d74
ret