Function at 0x44c421
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ebx
cmp eax, ebx
jne 0x44c452
call fcn.00444414
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.00446050
add esp, 0x14
or eax, 0xffffffff
jmp 0x44c4be
push esi
mov esi, dword [eax]
mov dword [ebp - 4], esi
cmp esi, ebx
je 0x44c4af
push 0x3d
push esi
call fcn.0044d3e1
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x44c4af
cmp esi, eax
je 0x44c4af
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x466f14]
sete cl
mov dword [ebp - 8], ecx
cmp eax, dword [0x466f18]
jne 0x44c495
mov edi, eax
call fcn.0044c3c4
mov dword [0x466f14], eax
cmp eax, ebx
jne 0x44c4f9
cmp dword [ebp + 0xc], ebx
je 0x44c4c2
cmp dword [0x466f1c], ebx
je 0x44c4c2
call fcn.0044865b
test eax, eax
je 0x44c4f9
call fcn.00444414
mov dword [eax], 0x16
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
jne 0x44c666
push 4
call fcn.00448a1c
pop ecx
mov dword [0x466f14], eax
cmp eax, ebx
je 0x44c4ba
mov dword [eax], ebx
cmp dword [0x466f1c], ebx
jne 0x44c4f9
push 4
call fcn.00448a1c
pop ecx
mov dword [0x466f1c], eax
cmp eax, ebx
je 0x44c4ba
mov dword [eax], ebx
mov esi, dword [0x466f14]
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x44c4ba
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
call fcn.0044c377
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x44c56d
cmp dword [esi], ebx
je 0x44c56d
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004418e5
pop ecx
cmp dword [ebp - 8], ebx
jne 0x44c54a
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x44c5c0
mov eax, dword [esi + 4]
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
inc edi
lea esi, [eax + edi*4]
cmp dword [esi], ebx
jne 0x44c53e
cmp edi, 0x3fffffff
jae 0x44c5c0
push 4
push edi
push dword [0x466f14]
call fcn.00448aef
add esp, 0xc
cmp eax, ebx
je 0x44c5c0
jmp 0x44c5bb
cmp dword [ebp - 8], ebx
jne 0x44c658
cmp edi, ebx
jge 0x44c57c
neg edi
lea eax, [edi + 2]
cmp eax, edi
jl 0x44c4ba
cmp eax, 0x3fffffff
jae 0x44c4ba
push eax
push 4
push dword [0x466f14]
call fcn.00448aef
add esp, 0xc
cmp eax, ebx
je 0x44c4ba
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 [0x466f14], eax
cmp dword [ebp + 0xc], ebx
je 0x44c63d
mov esi, dword [ebp - 4]
push 1
push esi
call fcn.004485d0
inc eax
pop ecx
inc eax
push eax
call fcn.00448a5c
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x44c63d
push esi
push esi
call fcn.004485d0
inc eax
pop ecx
inc eax
push eax
push edi
call fcn.004486f0
add esp, 0xc
test eax, eax
je 0x44c606
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00445f49
add esp, 0x14
mov ecx, dword [ebp - 8]
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
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 0x44c636
or dword [ebp - 0x10], 0xffffffff
call fcn.00444414
mov dword [eax], 0x2a
push edi
call fcn.004418e5
pop ecx
cmp dword [ebp - 8], ebx
je 0x44c650
push dword [ebp - 4]
call fcn.004418e5
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
mov eax, dword [ebp - 0x10]
jmp 0x44c4bd
push dword [ebp - 4]
call fcn.004418e5
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
xor eax, eax
jmp 0x44c4bd