Function at 0x46d3f8
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], 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 - 0x2c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46dbbb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x47ff94]
call fcn.00403d1c
mov eax, dword [0x47fe98]
cmp byte [eax], 1
je 0x46db83
mov byte [ebp - 0x21], 0
lea edx, [ebp - 0xc]
mov eax, dword [0x480bb4]
mov eax, dword [eax + 0x334]
call fcn.0042b2cc
lea eax, [ebp - 0x38]
call fcn.004555e0
push dword [ebp - 0x38]
push 0x46dbd4
mov eax, dword [0x47ff48]
push dword [eax]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404058
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0046def4
mov eax, dword [0x47fe88]
mov eax, dword [eax + 0xa57]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 1
mov esi, dword [0x47fe88]
add esi, 0xa83
mov ebx, dword [0x47fe88]
add ebx, 0xa5b
mov eax, dword [0x47fe88]
add eax, 0x2ad
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.00403f3c
cmp dword [ebp - 0x10], 0
je 0x46dadf
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.0042b2cc
push dword [ebp - 0x4c]
push dword [ebp - 0x10]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404058
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x48]
call fcn.00453f84
lea ecx, [ebp - 0x48]
mov edx, 0x46dbe0
mov eax, 0x46dbec
call fcn.0046d304
mov edx, dword [ebp - 8]
mov eax, 0x46dc00
call fcn.00404280
lea edx, [ebp - 8]
mov ecx, eax
mov eax, 1
xchg edx, eax
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 - 0x34]
mov eax, dword [ebp - 8]
call fcn.004554b0
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 8]
call fcn.00403db4
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
call fcn.0042b2cc
mov eax, dword [ebp - 0x4c]
call fcn.0040415c
push eax
mov eax, dword [ebp - 8]
call fcn.0040415c
pop edx
call fcn.00409298
xor eax, 0
jne 0x46dac5
mov eax, dword [ebx]
cmp eax, 2
jne 0x46d5ba
mov edx, dword [0x47fe98]
cmp byte [edx], 1
je 0x46db83
cmp eax, 3
jne 0x46d5ce
mov edx, dword [0x47fe98]
cmp byte [edx], 1
je 0x46db83
cmp eax, 4
jne 0x46d5e2
mov edx, dword [0x47fe98]
cmp byte [edx], 1
je 0x46db83
cmp eax, 5
cmp eax, 6
cmp eax, 7
cmp eax, 8
jne 0x46d5ff
mov edx, dword [0x47fe98]
cmp byte [edx], 1
je 0x46db83
cmp eax, 9
jne 0x46d613
mov edx, dword [0x47fe98]
cmp byte [edx], 1
je 0x46db83
cmp eax, 0xa
jne 0x46d627
mov edx, dword [0x47fe98]
cmp byte [edx], 1
je 0x46db83
dec eax
jne 0x46d978
mov eax, dword [0x47fe88]
cmp dword [eax + 0x753], 0
jle 0x46d69f
mov dl, 1
mov eax, dword [0x40f1c4]
call fcn.004030c8
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 - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.0042b2cc
mov edx, dword [ebp - 0x4c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [0x47fce8]
mov edx, dword [edx]
lea eax, [ebp - 0x34]
mov ecx, 0x46dc0c
call fcn.00403fe4
mov edx, dword [ebp - 0x34]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, ebx
call fcn.004030f8
mov eax, dword [0x47fe88]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0xa57], edx
mov eax, dword [0x47fe88]
add eax, 0x33d
mov edx, dword [ebp - 8]
mov ecx, 0xff
call fcn.00403f74
mov eax, dword [0x47fe88]
mov edx, dword [ebp - 0x1c]
mov eax, dword [eax + edx*4 + 0x1e7f]
lea edx, [ebp - 0x34]
call fcn.004089c0
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x14c]
mov ecx, 0xff
call fcn.00403f74
lea edx, [ebp - 0x14c]
mov eax, dword [0x47fe88]
add eax, 0x2297
mov cl, 0xa
call fcn.00402bfc
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.0042b2cc
mov edx, dword [ebp - 0x4c]
mov eax, dword [0x47fe88]
add eax, 0x22b8
mov ecx, 0xff
call fcn.00403f74
mov eax, dword [0x47fe88]
mov byte [eax + 0x32f], 0
lea eax, [ebp - 0x38]
call fcn.004555e0
push dword [ebp - 0x38]
push 0x46dbd4
mov eax, dword [0x47ff48]
push dword [eax]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404058
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0046dd34
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x48]
mov eax, dword [0x47ff48]
mov eax, dword [eax]
call fcn.00453f84
lea ecx, [ebp - 0x48]
mov edx, 0x46dc24
mov eax, 0x46dbec
call fcn.0046d304
mov edx, dword [ebp - 0x18]
mov eax, 0x46dc00
call fcn.00404280
lea edx, [ebp - 0x18]
mov ecx, eax
mov eax, 1
xchg edx, eax
call fcn.004041dc
mov eax, dword [0x47ff7c]
cmp dword [eax], 2
jne 0x46d7db
mov edx, dword [0x47ff24]
mov edx, dword [edx]
lea eax, [ebp - 0x34]
mov ecx, 0x46dc34
call fcn.00403fe4
mov ecx, dword [ebp - 0x34]
mov dl, 1
mov eax, dword [0x45419c]
call fcn.00454244
mov dword [ebp - 0x28], eax
mov eax, dword [0x47ff7c]
cmp dword [eax], 2
je 0x46d7f9
mov ecx, 0x46dc4c
mov dl, 1
mov eax, dword [0x45419c]
call fcn.00454244
mov dword [ebp - 0x28], eax
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x46dc60
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 8]
push eax
mov edx, dword [0x47ff48]
mov edx, dword [edx]
mov ecx, 0x46dc74
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 4]
call fcn.00409e90
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x34]
call fcn.0040aa78
mov eax, dword [ebp - 0x34]
push eax
mov ecx, 0x46dc84
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, 0x46dc60
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 4]
call fcn.00409e90
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x34]
call fcn.0040aa78
mov eax, dword [ebp - 0x34]
push eax
mov edx, dword [0x47ff48]
mov edx, dword [edx]
mov ecx, 0x46dc84
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp - 0x2c]
push eax
mov edx, dword [0x47ff48]
mov edx, dword [edx]
mov ecx, 0x46dc60
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 4]
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.0042b2cc
mov eax, dword [ebp - 0x4c]
push eax
mov edx, dword [0x47ff48]
mov edx, dword [edx]
mov ecx, 0x46dc94
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [0x47ff48]
mov edx, dword [edx]
mov ecx, 0x46dca8
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 4]
mov dl, 1
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx - 4]
mov byte [ebp - 0x21], 1
mov eax, dword [0x47fd3c]
mov edx, 0x46dcbc
call fcn.00403d70
lea eax, [ebp - 0x14]
lea edx, [esi + 0xa00]
call fcn.00403f3c
xor eax, eax
push ebp
push 0x46d969
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.0042b2cc
mov eax, dword [ebp - 0x4c]
call fcn.0040415c
push eax
push 0x46dcc8
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebp - 0x14]
call fcn.0040415c
push eax
push 0x46dcd4
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46dadf
cmp dword [ebx], 0
mov eax, dword [0x47fe88]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0xa57], edx
mov eax, dword [0x47fe88]
xor edx, edx
mov dword [eax + 0x43d], edx
mov eax, dword [0x47fe88]
mov byte [eax + 0x32f], 0
call fcn.0046dd08
call fcn.00409e90
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x34]
call fcn.0040aa78
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x14c]
mov ecx, 0xff
call fcn.00403f74
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 0x30]
mov cl, 0xc
call fcn.00402bfc
call fcn.00409e90
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x34]
call fcn.0040aa78
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x14c]
mov ecx, 0xff
call fcn.00403f74
lea edx, [ebp - 0x14c]
mov eax, dword [0x47fe88]
add eax, 0x22a2
mov cl, 0xa
call fcn.00402bfc
lea eax, [ebp - 0x38]
call fcn.004555e0
push dword [ebp - 0x38]
push 0x46dbd4
mov eax, dword [0x47ff48]
push dword [eax]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404058
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0046dd34
mov eax, dword [0x47fd3c]
mov edx, 0x46dce4
call fcn.00403d70
lea eax, [ebp - 0x14]
lea edx, [esi + 0xa00]
call fcn.00403f3c
xor eax, eax
push ebp
push 0x46dab5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call fcn.0040415c
push eax
push 0x46dcd4
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebx - 0xa5b]
push eax
push 0x46dcf4
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebx - 0xa33]
push eax
push 0x46dd00
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46dabf
mov byte [ebp - 0x21], 1
jmp 0x46dadf
inc dword [ebp - 0x20]
add dword [ebp - 0x30], 0xd
add ebx, 4
add esi, 0x100
cmp dword [ebp - 0x20], 0xb
jne 0x46d4ca
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
call fcn.0042b2cc
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 8]
call fcn.004040a8
je 0x46db4a
mov eax, dword [0x47fde8]
mov eax, dword [eax]
call fcn.00446338
push 0x30
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e4]
call fcn.0042b2cc
mov eax, dword [ebp - 0x4c]
call fcn.0040415c
push eax
mov eax, dword [0x480bbc]
call fcn.0040415c
mov edx, eax
mov eax, dword [0x47fde8]
mov eax, dword [eax]
pop ecx
call fcn.00447294
mov eax, dword [0x47fde8]
mov eax, dword [eax]
call fcn.00446348
cmp byte [ebp - 0x21], 1
jne 0x46db58
mov eax, dword [ebp - 4]
call fcn.00443f48
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
call fcn.0042b2cc
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 8]
call fcn.004040a8
jne 0x46db83
mov eax, dword [0x47ff94]
mov edx, dword [ebp - 8]
call fcn.00403d70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46dbc2
lea eax, [ebp - 0x4c]
call fcn.00403d1c
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00403d40
lea eax, [ebp - 0x2c]
call fcn.00403d1c
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.00403d40
ret