Function at 0x425e30
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
jne 0x425e75
xor eax, eax
jne 0x425e6d
push str.FALSE
push 0
push 0x5a
push str.setenv.c
push 2
call fcn.0040f7d0
add esp, 0x14
cmp eax, 1
jne 0x425e6d
int3
or eax, 0xffffffff
jmp 0x4261a4
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x425ea2
push 0x3d
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00426320
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x425ea2
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x20]
jne 0x425eaa
or eax, 0xffffffff
jmp 0x4261a4
mov eax, dword [ebp - 0x20]
movsx ecx, byte [eax + 1]
neg ecx
sbb ecx, ecx
inc ecx
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x46b118]
cmp edx, dword [0x46b11c]
jne 0x425eda
mov eax, dword [0x46b118]
push eax
call fcn.00426230
add esp, 4
mov dword [0x46b118], eax
cmp dword [0x46b118], 0
jne 0x425f9b
cmp dword [ebp + 0xc], 0
je 0x425f0c
cmp dword [0x46b120], 0
je 0x425f0c
call fcn.004257d0
test eax, eax
je 0x425f07
or eax, 0xffffffff
jmp 0x4261a4
jmp 0x425f9b
cmp dword [ebp - 0x1c], 0
je 0x425f19
xor eax, eax
jmp 0x4261a4
cmp dword [0x46b118], 0
jne 0x425f5a
push 0x9c
push str.setenv.c
push 2
push 4
call fcn.0040d130
add esp, 0x10
mov dword [0x46b118], eax
cmp dword [0x46b118], 0
jne 0x425f4e
or eax, 0xffffffff
jmp 0x4261a4
mov ecx, dword [0x46b118]
mov dword [ecx], 0
cmp dword [0x46b120], 0
jne 0x425f9b
push 0xa3
push str.setenv.c
push 2
push 4
call fcn.0040d130
add esp, 0x10
mov dword [0x46b120], eax
cmp dword [0x46b120], 0
jne 0x425f8f
or eax, 0xffffffff
jmp 0x4261a4
mov edx, dword [0x46b120]
mov dword [edx], 0
mov eax, dword [0x46b118]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.004261b0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x426064
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x426064
push 2
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4]
push eax
call fcn.0040db90
add esp, 8
cmp dword [ebp - 0x1c], 0
je 0x42604a
jmp 0x425ff4
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp dword [eax + edx*4], 0
je 0x426015
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov eax, dword [esi + eax*4 + 4]
mov dword [edx + ecx*4], eax
jmp 0x425feb
push 0xd1
push str.setenv.c
push 2
mov ecx, dword [ebp - 0xc]
shl ecx, 2
push ecx
mov edx, dword [0x46b118]
push edx
call fcn.0040d5d0
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x426048
mov eax, dword [ebp - 8]
mov dword [0x46b118], eax
jmp 0x42605f
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
jmp 0x4260fa
cmp dword [ebp - 0x1c], 0
jne 0x4260dc
cmp dword [ebp - 0xc], 0
jge 0x426078
mov edx, dword [ebp - 0xc]
neg edx
mov dword [ebp - 0xc], edx
push 0xe9
push str.setenv.c
push 2
mov eax, dword [ebp - 0xc]
lea ecx, [eax*4 + 8]
push ecx
mov edx, dword [0x46b118]
push edx
call fcn.0040d5d0
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4260af
or eax, 0xffffffff
jmp 0x4261a4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [ecx + eax*4 + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx], 0
mov eax, dword [ebp - 8]
mov dword [0x46b118], eax
jmp 0x4260fa
push 2
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040db90
add esp, 8
mov edx, dword [ebp + 8]
mov dword [edx], 0
xor eax, eax
jmp 0x4261a4
cmp dword [ebp + 0xc], 0
je 0x42618d
push 0x109
push str.setenv.c
push 2
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040cc30
add esp, 4
add eax, 2
push eax
call fcn.0040d130
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42618d
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004189c0
add esp, 8
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
xor eax, eax
cmp dword [ebp - 0x1c], 0
setne al
dec eax
and eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x42617f
mov dword [ebp - 0x10], 0xffffffff
push 2
mov edx, dword [ebp - 0x18]
push edx
call fcn.0040db90
add esp, 8
cmp dword [ebp - 0x1c], 0
je 0x4261a1
push 2
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040db90
add esp, 8
mov eax, dword [ebp - 0x10]
pop esi
mov esp, ebp
pop ebp
ret