Function at 0x46ff54
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], 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 - 0x3c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4707c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x483f94]
call fcn.00403d1c
mov eax, dword [0x483e98]
cmp byte [eax], 1
je 0x47078d
mov byte [ebp - 0x2d], 0
lea edx, [ebp - 0xc]
mov eax, dword [0x484bb4]
mov eax, dword [eax + 0x334]
call fcn.0042b2cc
lea eax, [ebp - 0x4c]
call fcn.00457898
push dword [ebp - 0x4c]
push 0x4707dc
mov eax, dword [0x483f48]
push dword [eax]
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00404058
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.00470b28
mov eax, dword [0x483e88]
mov eax, dword [eax + 0xa57]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x24]
shl edx, 5
mov ecx, dword [0x483e88]
lea edx, [ecx + edx*8 + 0x983]
call fcn.00403f3c
cmp dword [ebp - 0x10], 0
je 0x4706e9
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.0042b2cc
push dword [ebp - 0x60]
push dword [ebp - 0x10]
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00404058
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x5c]
call fcn.004561f8
lea ecx, [ebp - 0x5c]
mov edx, 0x4707e8
mov eax, 0x4707f4
call fcn.0046fe44
mov edx, dword [ebp - 8]
mov eax, 0x470808
call fcn.00404280
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x20]
mov edx, 1
call fcn.004041dc
mov eax, dword [ebp - 8]
call fcn.00403f98
mov ecx, eax
sub ecx, 0x14
lea eax, [ebp - 8]
mov edx, 0x14
call fcn.004041dc
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 8]
call fcn.0045774c
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 8]
call fcn.00403db4
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
call fcn.0042b2cc
mov eax, dword [ebp - 0x60]
call fcn.0040415c
push eax
mov eax, dword [ebp - 8]
call fcn.0040415c
pop edx
call fcn.00409298
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
xor eax, 0
jne 0x4706dc
mov eax, dword [0x483e88]
mov edx, dword [ebp - 0x24]
cmp dword [eax + edx*4 + 0xa57], 2
jne 0x470115
mov eax, dword [0x483e98]
cmp byte [eax], 1
je 0x47078d
mov eax, dword [0x483e88]
mov edx, dword [ebp - 0x24]
cmp dword [eax + edx*4 + 0xa57], 3
jne 0x470135
mov eax, dword [0x483e98]
cmp byte [eax], 1
je 0x47078d
mov eax, dword [0x483e88]
mov edx, dword [ebp - 0x24]
cmp dword [eax + edx*4 + 0xa57], 4
jne 0x470155
mov eax, dword [0x483e98]
cmp byte [eax], 1
je 0x47078d
mov eax, dword [0x483e88]
mov edx, dword [ebp - 0x24]
cmp dword [eax + edx*4 + 0xa57], 5
mov eax, dword [0x483e88]
mov edx, dword [ebp - 0x24]
cmp dword [eax + edx*4 + 0xa57], 6
mov eax, dword [0x483e88]
mov edx, dword [ebp - 0x24]
cmp dword [eax + edx*4 + 0xa57], 7
mov eax, dword [0x483e88]
mov edx, dword [ebp - 0x24]
cmp dword [eax + edx*4 + 0xa57], 8
jne 0x4701a5
mov eax, dword [0x483e98]
cmp byte [eax], 1
je 0x47078d
mov eax, dword [0x483e88]
mov edx, dword [ebp - 0x24]
cmp dword [eax + edx*4 + 0xa57], 9
jne 0x4701c5
mov eax, dword [0x483e98]
cmp byte [eax], 1
je 0x47078d
mov eax, dword [0x483e88]
mov edx, dword [ebp - 0x24]
cmp dword [eax + edx*4 + 0xa57], 0xa
jne 0x4701e5
mov eax, dword [0x483e98]
cmp byte [eax], 1
je 0x47078d
mov eax, dword [0x483e88]
mov edx, dword [ebp - 0x24]
cmp dword [eax + edx*4 + 0xa57], 1
jne 0x47055b
mov eax, dword [0x483e88]
cmp dword [eax + 0x753], 0
jle 0x470272
mov dl, 1
mov eax, dword [0x40f1c4]
call fcn.004030c8
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.0042b2cc
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [0x483ce8]
mov edx, dword [edx]
lea eax, [ebp - 0x48]
mov ecx, 0x470814
call fcn.00403fe4
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebp - 0x38]
call fcn.004030f8
mov eax, dword [0x483e88]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0xa57], edx
mov eax, dword [0x483e88]
add eax, 0x33d
mov edx, dword [ebp - 8]
mov ecx, 0xff
call fcn.00403f74
mov eax, dword [0x483e88]
mov edx, dword [ebp - 0x1c]
mov eax, dword [eax + edx*4 + 0x1e7f]
lea edx, [ebp - 0x48]
call fcn.004089c0
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x160]
mov ecx, 0xff
call fcn.00403f74
lea edx, [ebp - 0x160]
mov eax, dword [0x483e88]
add eax, 0x2297
mov cl, 0xa
call fcn.00402bfc
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.0042b2cc
mov edx, dword [ebp - 0x60]
mov eax, dword [0x483e88]
add eax, 0x22b8
mov ecx, 0xff
call fcn.00403f74
mov eax, dword [0x483e88]
mov byte [eax + 0x32f], 0
lea eax, [ebp - 0x4c]
call fcn.00457898
push dword [ebp - 0x4c]
push 0x4707dc
mov eax, dword [0x483f48]
push dword [eax]
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00404058
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.00470954
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x5c]
mov eax, dword [0x483f48]
mov eax, dword [eax]
call fcn.004561f8
lea ecx, [ebp - 0x5c]
mov edx, 0x47082c
mov eax, 0x4707f4
call fcn.0046fe44
mov edx, dword [ebp - 0x18]
mov eax, 0x470808
call fcn.00404280
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov edx, 1
call fcn.004041dc
mov eax, dword [0x483f7c]
cmp dword [eax], 2
jne 0x4703b1
mov edx, dword [0x483f24]
mov edx, dword [edx]
lea eax, [ebp - 0x48]
mov ecx, 0x47083c
call fcn.00403fe4
mov ecx, dword [ebp - 0x48]
mov dl, 1
mov eax, dword [0x456424]
call fcn.004564cc
mov dword [ebp - 0x34], eax
mov eax, dword [0x483f7c]
cmp dword [eax], 2
je 0x4703cf
mov ecx, 0x470854
mov dl, 1
mov eax, dword [0x456424]
call fcn.004564cc
mov dword [ebp - 0x34], eax
push 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x470868
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 8]
push eax
mov edx, dword [0x483f48]
mov edx, dword [edx]
mov ecx, 0x47087c
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax]
call dword [ebx + 4]
call fcn.00409e90
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x48]
call fcn.0040aa78
mov eax, dword [ebp - 0x48]
push eax
mov ecx, 0x47088c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, 0x470868
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax]
call dword [ebx + 4]
call fcn.00409e90
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x48]
call fcn.0040aa78
mov eax, dword [ebp - 0x48]
push eax
mov edx, dword [0x483f48]
mov edx, dword [edx]
mov ecx, 0x47088c
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp - 0x3c]
push eax
mov edx, dword [0x483f48]
mov edx, dword [edx]
mov ecx, 0x470868
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax]
call dword [ebx + 4]
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.0042b2cc
mov eax, dword [ebp - 0x60]
push eax
mov edx, dword [0x483f48]
mov edx, dword [edx]
mov ecx, 0x47089c
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [0x483f48]
mov edx, dword [edx]
mov ecx, 0x4708b0
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax]
call dword [ebx + 4]
mov dl, 1
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx - 4]
mov byte [ebp - 0x2d], 1
mov eax, dword [0x483d3c]
mov edx, 0x4708c4
call fcn.00403d70
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x24]
shl edx, 5
mov ecx, dword [0x483e88]
lea edx, [ecx + edx*8 + 0x1383]
call fcn.00403f3c
xor eax, eax
push ebp
push 0x47054c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.0042b2cc
mov eax, dword [ebp - 0x60]
call fcn.0040415c
push eax
push 0x4708d0
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp - 0x14]
call fcn.0040415c
push eax
push 0x4708dc
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4706e9
mov eax, dword [0x483e88]
mov edx, dword [ebp - 0x24]
cmp dword [eax + edx*4 + 0xa57], 0
mov eax, dword [0x483e88]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0xa57], edx
mov eax, dword [0x483e88]
xor edx, edx
mov dword [eax + 0x43d], edx
mov eax, dword [0x483e88]
mov byte [eax + 0x32f], 0
call fcn.00470910
call fcn.00409e90
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x48]
call fcn.0040aa78
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x160]
mov ecx, 0xff
call fcn.00403f74
lea edx, [ebp - 0x160]
imul eax, dword [ebp - 0x24], 0xd
mov ecx, dword [0x483e88]
lea eax, [ecx + eax + 0x2a0]
mov cl, 0xc
call fcn.00402bfc
call fcn.00409e90
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x48]
call fcn.0040aa78
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x160]
mov ecx, 0xff
call fcn.00403f74
lea edx, [ebp - 0x160]
mov eax, dword [0x483e88]
add eax, 0x22a2
mov cl, 0xa
call fcn.00402bfc
lea eax, [ebp - 0x4c]
call fcn.00457898
push dword [ebp - 0x4c]
push 0x4707dc
mov eax, dword [0x483f48]
push dword [eax]
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00404058
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.00470954
mov eax, dword [0x483d3c]
mov edx, 0x4708ec
call fcn.00403d70
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x24]
shl edx, 5
mov ecx, dword [0x483e88]
lea edx, [ecx + edx*8 + 0x1383]
call fcn.00403f3c
xor eax, eax
push ebp
push 0x4706cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call fcn.0040415c
push eax
push 0x4708dc
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [0x483e88]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4 - 4]
push eax
push 0x4708fc
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [0x483e88]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4 + 0x24]
push eax
push 0x470908
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4706d6
mov byte [ebp - 0x2d], 1
jmp 0x4706e9
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0xb
jne 0x470001
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
call fcn.0042b2cc
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 8]
call fcn.004040a8
je 0x470754
mov eax, dword [0x483de8]
mov eax, dword [eax]
call fcn.00446338
push 0x30
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e4]
call fcn.0042b2cc
mov eax, dword [ebp - 0x60]
call fcn.0040415c
push eax
mov eax, dword [0x484bbc]
call fcn.0040415c
mov edx, eax
mov eax, dword [0x483de8]
mov eax, dword [eax]
pop ecx
call fcn.00447294
mov eax, dword [0x483de8]
mov eax, dword [eax]
call fcn.00446348
cmp byte [ebp - 0x2d], 1
jne 0x470762
mov eax, dword [ebp - 4]
call fcn.00443f48
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
call fcn.0042b2cc
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 8]
call fcn.004040a8
jne 0x47078d
mov eax, dword [0x483f94]
mov edx, dword [ebp - 8]
call fcn.00403d70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4707cc
lea eax, [ebp - 0x60]
call fcn.00403d1c
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.00403d40
lea eax, [ebp - 0x3c]
call fcn.00403d1c
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.00403d40
ret