Function at 0x3038a78
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x310e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x310fa9c]
push ebx
push esi
or ebx, 0xffffffff
push edi
mov edi, ecx
cmp eax, ebx
je 0x3038ae6
test eax, eax
je 0x3038aa7
xor eax, eax
inc eax
jmp 0x3038af0
mov ecx, edx
mov dword [0x310fa9c], ebx
call fcn.0304f4eb
mov dword [0x310fa9c], eax
test eax, eax
je 0x3038ae0
mov esi, dword [0x31125f8]
push 0x3018944
push eax
call esi
mov dword [0x310faa0], eax
test eax, eax
jne 0x3038b01
push dword [0x310fa9c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x310fa9c], ebx
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0307c5f7
mov esp, ebp
pop ebp
ret
push 0x3018954
push dword [0x310fa9c]
call esi
push 0x3018968
push dword [0x310fa9c]
mov dword [0x310faa4], eax
call esi
push 0x3018980
push dword [0x310fa9c]
mov dword [0x310faa8], eax
call esi
push 0x3018994
push dword [0x310fa9c]
mov dword [0x310faac], eax
call esi
push 0x30189ac
push dword [0x310fa9c]
mov dword [0x310fab0], eax
call esi
push 0x30189c8
push dword [0x310fa9c]
mov dword [0x310fab4], eax
call esi
push 0x30189e8
push dword [0x310fa9c]
mov dword [0x310fab8], eax
call esi
push 0x3018a04
push dword [0x310fa9c]
mov dword [0x310fabc], eax
call esi
push 0x3018a1c
push dword [0x310fa9c]
mov dword [0x310fac0], eax
call esi
push 0x3018a34
push dword [0x310fa9c]
mov dword [0x310fac4], eax
call esi
push 0x3018a4c
push dword [0x310fa9c]
mov dword [0x310fac8], eax
call esi
mov dword [0x3111d4c], eax
test eax, eax
jne 0x3038bea
call fcn.03038d26
test eax, eax
je 0x3038bea
call fcn.030320ab
test eax, eax
je 0x3038bea
push 0x3018a60
push edi
call fcn.0304a010
pop ecx
pop ecx
push 0x3018b30
push dword [0x310fa9c]
call esi
mov dword [0x3111d50], eax
test eax, eax
jne 0x3038c1f
call fcn.03038d26
test eax, eax
je 0x3038c1f
call fcn.030320ab
test eax, eax
je 0x3038c1f
push 0x3018b48
push edi
call fcn.0304a010
pop ecx
pop ecx
xor esi, esi
mov ecx, 0x100
push esi
push 8
call fcn.03039530
call fcn.030389de
call fcn.03039601
call fcn.030320ab
neg eax
sbb eax, eax
neg eax
mov ecx, eax
call fcn.030395ca
push 0x105
lea eax, [ebp - 0x218]
push eax
push 0x3018c20
call dword [0x31125e8]
test eax, eax
je 0x3038c77
lea eax, [ebp - 0x218]
mov ecx, 0x40000
push esi
push eax
call fcn.03039530
xor ebx, ebx
inc ebx
cmp word [0x3110cf2], si
je 0x3038c95
push esi
push 0x3110cf2
mov ecx, 0x2000
call fcn.03039530
jmp 0x3038cab
test edi, edi
je 0x3038c9e
mov ecx, dword [edi + 0x18]
jmp 0x3038ca0
mov ecx, esi
push ebx
mov edx, 0x3110ae8
call fcn.0303c945
mov eax, dword [0x310fb18]
test eax, eax
jns 0x3038cef
push 0x3018c44
push 0x3018c48
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x3038cde
call fcn.030320ab
test eax, eax
je 0x3038cde
push 0x3018c58
push edi
call fcn.0304a010
pop ecx
pop ecx
push esi
push ebx
mov ecx, 0x10000000
call fcn.03039530
mov eax, dword [0x310fb18]
test eax, 0x20000000
je 0x3038d07
push esi
push ebx
mov ecx, 0x8000000
call fcn.03039530
mov eax, dword [0x310fb18]
test eax, 0x10000000
je 0x3038d1a
push esi
push ebx
mov ecx, 0x4000000
call fcn.03039530
mov eax, ebx
jmp 0x3038af0