Function at 0x44e400
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x44e642
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.0044f3e0
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x44e642
cmp dword [esp + 0x18], ebp
je 0x44e642
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x45fabc]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x45fab8], ecx
jne 0x44e462
mov eax, dword [0x45fab8]
push eax
call fcn.0044e6b0
add esp, 4
mov dword [0x45fab8], eax
cmp dword [0x45fab8], 0
jne 0x44e512
cmp dword [esp + 0x1c], 0
je 0x44e499
cmp dword [0x45fac0], 0
je 0x44e499
call fcn.0044b940
test eax, eax
je 0x44e512
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x44e4aa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x45fab8], 0
jne 0x44e4de
push 4
call fcn.00446800
add esp, 4
mov dword [0x45fab8], eax
test eax, eax
jne 0x44e4d3
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x45fab8]
mov dword [eax], 0
cmp dword [0x45fac0], 0
jne 0x44e512
push 4
call fcn.00446800
add esp, 4
mov dword [0x45fac0], eax
test eax, eax
jne 0x44e507
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x45fac0]
mov dword [eax], 0
mov esi, dword [0x45fab8]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.0044e650
add esp, 8
mov edi, eax
test edi, edi
jl 0x44e57a
cmp dword [esi], 0
je 0x44e57a
cmp dword [esp + 0x10], 0
je 0x44e571
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.00444e70
add esp, 4
cmp dword [ebx], 0
je 0x44e55e
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x44e54f
shl edi, 2
push edi
push esi
call fcn.00446880
add esp, 8
test eax, eax
je 0x44e5c2
jmp 0x44e5bd
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x44e5c2
cmp dword [esp + 0x10], 0
jne 0x44e638
test edi, edi
jge 0x44e58b
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.00446880
add esp, 8
test eax, eax
jne 0x44e5ad
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
lea ecx, [eax + edi*4]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [0x45fab8], eax
cmp dword [esp + 0x1c], 0
je 0x44e62e
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00446800
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x44e62e
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebx + ebp]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00444e70
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret