Function at 0x78ac2614
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
cmp eax, ebx
je 0x78ae1b83
push esi
mov esi, dword [eax]
push edi
mov dword [ebp - 4], esi
cmp esi, ebx
je 0x78ac26b4
push 0x3d
push esi
call fcn.78b2cfb3
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x78ac26b4
cmp esi, edi
je 0x78ac26b4
xor eax, eax
cmp byte [edi + 1], bl
sete al
mov dword [ebp - 8], eax
mov eax, dword [sym.MSVCR100.dll__environ]
cmp eax, dword [sym.MSVCR100.dll___initenv]
je 0x78ae1b9b
cmp eax, ebx
je 0x78ae1baa
mov esi, dword [sym.MSVCR100.dll__environ]
mov dword [ebp - 0x10], esi
cmp esi, ebx
je 0x78ac26be
sub edi, dword [ebp - 4]
push dword [ebp - 4]
call fcn.78b2cfb3
mov edi, eax
pop ecx
cmp edi, ebx
jge 0x78ae1c1c
cmp dword [ebp - 8], ebx
je 0x78ae1c6f
push dword [ebp - 4]
call fcn.78b2cfb3
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
call sym.MSVCR100.dll__errno
jmp 0x78ae1bc9
or eax, 0xffffffff
jmp 0x78ac26af
call sym.MSVCR100.dll__errno
mov dword [eax], 0x16
call sym.MSVCR100.dll__invalid_parameter_noinfo
or eax, 0xffffffff
jmp 0x78ac26b1
call fcn.78b2cfb3
mov dword [sym.MSVCR100.dll__environ], eax
jmp 0x78ac266b
cmp dword [ebp + 0xc], ebx
je 0x78ae1bd4
cmp dword [sym.MSVCR100.dll__wenviron], ebx
je 0x78ae1bd4
call fcn.78b2cfb3
test eax, eax
jne 0x78ac26b4
jmp 0x78ac2673
mov dword [eax], 0x16
jmp 0x78ac26be
cmp dword [ebp - 8], ebx
jne 0x78ac26ad
push 4
call fcn.78b2cfb3
pop ecx
mov dword [sym.MSVCR100.dll__environ], eax
cmp eax, ebx
je 0x78ac26be
mov dword [eax], ebx
cmp dword [sym.MSVCR100.dll__wenviron], ebx
jne 0x78ac2673
push 4
call fcn.78b2cfb3
pop ecx
mov dword [sym.MSVCR100.dll__wenviron], eax
cmp eax, ebx
je 0x78ac26be
mov dword [eax], ebx
jmp 0x78ac2673
cmp dword [esi], ebx
je 0x78ac2696
lea esi, [esi + edi*4]
push dword [esi]
call fcn.78b2cfb3
pop ecx
cmp dword [ebp - 8], ebx
jne 0x78ae1c4c
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x78ae1cb9
mov eax, dword [esi + 4]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
inc edi
lea esi, [eax + edi*4]
cmp dword [esi], ebx
jne 0x78ae1c40
cmp edi, 0x3fffffff
jae 0x78ae1cb9
push 4
push edi
push dword [sym.MSVCR100.dll__environ]
call fcn.78b2cfb3
add esp, 0xc
cmp eax, ebx
jne 0x78ae1cb4
jmp 0x78ae1cb9
cmp edi, ebx
jge 0x78ae1c75
neg edi
lea eax, [edi + 2]
cmp eax, edi
jl 0x78ac26be
cmp eax, 0x3fffffff
jae 0x78ac26be
push eax
push 4
push dword [sym.MSVCR100.dll__environ]
call fcn.78b2cfb3
add esp, 0xc
cmp eax, ebx
je 0x78ac26be
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [sym.MSVCR100.dll__environ], eax
cmp dword [ebp + 0xc], ebx
je 0x78ae1d2b
mov esi, dword [ebp - 4]
push 1
push esi
call sym.MSVCR100.dll_strlen
pop ecx
add eax, 2
push eax
call fcn.78b2cfb3
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x78ae1d2b
push esi
push esi
call sym.MSVCR100.dll_strlen
pop ecx
add eax, 2
push eax
push edi
call fcn.78b2cfb3
add esp, 0xc
test eax, eax
jne 0x78ae1d46
mov ecx, dword [ebp - 8]
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0x14]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x78ae1d24
or dword [ebp - 0xc], 0xffffffff
call sym.MSVCR100.dll__errno
mov dword [eax], 0x2a
push edi
call fcn.78b2cfb3
pop ecx
cmp dword [ebp - 8], ebx
je 0x78ae1d3e
push dword [ebp - 4]
call fcn.78b2cfb3
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
mov eax, dword [ebp - 0xc]
jmp 0x78ac26af
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.MSVCR100.dll__invoke_watson
int3