Function at 0x4286d4
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov dword [0x44c190], edi
call fcn.0042d952
push 0x44cdb8
mov dword [0x44c18c], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [0x448df4]
mov dword [0x448054], 9
call fcn.00421cf0
mov ecx, dword [0x448df4]
call fcn.00427bde
mov esi, eax
mov eax, edi
mov dword [ebp - 4], esi
mov edx, esi
mov dword [0x44c188], esi
jmp 0x428733
mov ecx, dword [edx + 4]
mov word [ecx + 0x1a], ax
inc eax
mov edx, dword [edx]
test edx, edx
jne 0x428729
mov ecx, esi
push ebx
mov ebx, edi
test ecx, ecx
je 0x428789
mov esi, dword [0x44b980]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x14]
imul eax, eax, 0xc
mov edx, dword [eax + 0x41ef28]
cmp dword [edx], 0x12
je 0x428775
inc esi
mov dword [0x44b980], esi
imul eax, dword [edx], 0x24
test byte [eax + 0x44806c], 1
jne 0x428772
add edx, 4
jmp 0x428755
inc edi
jmp 0x42876d
cmp edi, ebx
jg 0x4288b2
mov ecx, dword [ecx]
push 0
pop edi
test ecx, ecx
jne 0x428746
mov esi, dword [ebp - 4]
xor eax, eax
inc eax
cmp dword [0x44d6e4], 0
jne 0x43c342
mov dword [0x44c198], edi
mov esi, edi
mov ecx, edi
mov eax, dword [0x448df4]
mov dword [eax + 0x10], esi
mov eax, 0x444dfd
test ecx, ecx
jne 0x4287b9
mov eax, 0x4285ef
push 0x400
push 0x44b988
push edi
mov dword [0x44c194], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x43c363
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, 0x4014d4
push 0x4014fc
push ebx
call esi
cmp dword [0x44c198], 0
jne 0x43c379
call fcn.0042864c
call fcn.0042d5bd
cmp dword [0x44c198], 0
jne 0x43c397
push edi
push ebx
call esi
mov ecx, dword [0x44c188]
mov eax, edi
mov dword [0x44a09c], eax
pop ebx
test ecx, ecx
je 0x42883a
mov edx, edi
test edx, edx
jne 0x428835
mov eax, dword [ecx + 0x2c]
mov edx, eax
mov ecx, dword [ecx]
test ecx, ecx
jne 0x428826
mov dword [0x44a09c], eax
cmp dword [0x44c18c], 1
je 0x43c3a1
test eax, eax
jne 0x428884
mov esi, dword [0x44c188]
test esi, esi
je 0x428879
cmp dword [esi + 0x28], edi
je 0x428875
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x428875
push 8
pop edx
call fcn.00427690
mov ecx, dword [esi + 4]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov esi, dword [esi]
jmp 0x428851
mov ecx, dword [0x448df4]
call fcn.00421c06
mov eax, dword [0x44c1a0]
test eax, eax
je 0x428894
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x44c188]
test esi, esi
je 0x4288b9
cmp dword [esi + 0x30], 0
je 0x4288ae
push dword [esi + 0x30]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov esi, dword [esi]
jmp 0x42889a
mov ebx, edi
jmp 0x42877d
push 0x44cdb8
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
leave
ret
cmp dword [0x44804c], 0
je 0x428799
cmp ebx, eax
jle 0x428799
mov dword [0x44c198], eax
mov ecx, eax
jmp 0x4287a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push edi
push edi
push 1
call dword [sym.imp.KERNEL32.dll_RaiseException]
or dword [0x449bd8], 0xffffffff
call fcn.00444ea7
cmp dword [0x44c198], 0
jne 0x4287fc
jmp 0x4287f7
call fcn.00444da8
jmp 0x42880e
push 0x1f68
call fcn.00422168
mov eax, dword [0x44a09c]
pop ecx
jmp 0x428847