Function at 0x404b20
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440cf1
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0xfc], esi
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xec], 0
test edi, edi
jne 0x404b7d
xor al, al
jmp 0x405294
mov dword [edi], 0
mov eax, section..data
cmp dword [0x452014], 0xf
mov dword [0x452010], 0
cmova eax, dword [section..data]
push esi
mov byte [eax], 0
lea eax, [ebp - 0xa0]
push eax
call fcn.00405c50
mov dword [ebp - 4], 0
lea eax, [ebp - 0x88]
push dword [ebp - 0xf8]
push eax
call fcn.00405c50
mov byte [ebp - 4], 1
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x58]
push str.Defaulf_value_for_environment_variable
push eax
call fcn.00401500
add esp, 0x1c
mov byte [ebp - 4], 3
mov ecx, eax
push 4
push str._is
call fcn.00403a50
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0xec], 4
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x88]
cmp dword [ebp - 0x74], 0xf
lea ecx, [ebp - 0x28]
push dword [ebp - 0x78]
cmova eax, dword [ebp - 0x88]
push eax
call fcn.00403a50
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
movups xmm1, xmmword [eax]
movups xmmword [ebp - 0x40], xmm1
mov dword [ebp - 0xec], 0xc
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
cmp dword [ebp - 0x2c], 0xf
push dword [ebp - 0x30]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
movd eax, xmm1
cmova ecx, eax
push ecx
mov ecx, section..data
call fcn.00403a50
mov eax, 0xc
mov dword [ebp - 0xec], eax
and eax, 0xfffffff7
mov dword [ebp - 0xec], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x404d01
mov eax, dword [ebp - 0x40]
inc ecx
cmp ecx, 0x1000
jb 0x404cf1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4052af
mov eax, edx
push ecx
push eax
call fcn.00421956
mov eax, dword [ebp - 0xec]
add esp, 8
and eax, 0xfffffffb
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 0xec], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x404d54
mov eax, dword [ebp - 0x28]
inc ecx
cmp ecx, 0x1000
jb 0x404d4a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4052af
mov eax, edx
push ecx
push eax
call fcn.00421956
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.004023c0
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x404d7c
mov eax, dword [esi]
push 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x404fc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00405960
mov esi, eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x58]
push str._nFailed_to_get_environment_variable
push eax
call fcn.00401500
add esp, 0x14
mov byte [ebp - 4], 7
mov ecx, eax
push 0xc
push str._Error_code
call fcn.00403a50
mov edi, dword [ebp - 0xec]
or edi, 0x40
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 0xec], edi
mov byte [ebp - 4], 8
lea eax, [ebp - 0x28]
push esi
push eax
push dword [ebp - 0xf4]
lea ecx, [ebp - 0x40]
call fcn.00401b20
or edi, 0x80
lea eax, [ebp - 0x40]
mov dword [ebp - 0xec], edi
mov ecx, section..data
cmp dword [ebp - 0x2c], 0xf
push dword [ebp - 0x30]
cmova eax, dword [ebp - 0x40]
push eax
call fcn.00403a50
and edi, 0xffffff7f
mov dword [ebp - 0xec], edi
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.004023c0
and edi, 0xffffffbf
mov dword [ebp - 0xec], edi
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x404ea5
mov eax, dword [ebp - 0x28]
inc ecx
cmp ecx, 0x1000
jb 0x404e9b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4052af
mov eax, edx
push ecx
push eax
call fcn.00421956
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
call fcn.004023c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.004023c0
mov eax, dword [ebp - 0xf8]
cmp dword [eax + 0x10], 0
je 0x404fca
cmp dword [eax + 0x14], 7
jbe 0x404ee7
mov eax, dword [eax]
mov esi, dword [ebp - 0xfc]
mov ecx, esi
cmp dword [esi + 0x14], 7
jbe 0x404ef7
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x404fa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00405960
mov esi, eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x28]
push str._nFailed_to_set_environment_variable
push eax
call fcn.00401500
mov byte [ebp - 4], 0xa
push str._Error_code
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00401460
mov byte [ebp - 4], 0xb
push esi
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00401400
add esp, 0x2c
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x404f66
mov eax, dword [eax]
push ecx
push eax
mov ecx, section..data
call fcn.00403a50
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x58]
call fcn.004023c0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x70]
call fcn.004023c0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call fcn.004023c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004023c0
mov esi, dword [ebp - 0xfc]
cmp dword [esi + 0x14], 7
jbe 0x404fb0
mov esi, dword [esi]
push 0x104
push dword [ebp - 0xf4]
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x404fca
mov edi, dword [ebp - 0xec]
mov edx, dword [ebp - 0xf4]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404fd5
sub ecx, esi
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
js 0x404ffa
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x404ffa
xor eax, eax
mov word [edx + ecx*2 - 2], ax
cmp word [edx], 0
mov ecx, edx
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
setne byte [ebp - 0xed]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405020
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00401950
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00405c50
add esp, 8
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x40508e
mov eax, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x405084
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4052af
mov eax, edx
push ecx
push eax
call fcn.00421956
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp byte [ebp - 0xed], al
je 0x4050c7
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00401a50
mov esi, eax
mov byte [ebp - 4], 0x10
or edi, 1
jmp 0x405108
xorps xmm0, xmm0
mov dword [ebp - 0x30], eax
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], eax
movq xmm0, qword [str.not_valid]
mov al, byte [0x4437a0]
mov dword [ebp - 0x30], 9
mov dword [ebp - 0x2c], 0xf
movq qword [ebp - 0x40], xmm0
mov byte [ebp - 0x38], al
mov byte [ebp - 0x37], 0
lea esi, [ebp - 0x40]
mov dword [ebp - 4], 0x11
or edi, 2
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xec], edi
push eax
lea eax, [ebp - 0xd0]
push str._nFinal_value_of_the_environment_varialble
push eax
call fcn.00401500
add esp, 0xc
mov dword [ebp - 4], 0x13
mov ecx, eax
push 4
push str._is
call fcn.00403a50
or edi, 0x10
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 0xec], edi
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x58]
push esi
push eax
push dword [ebp - 0xf4]
lea ecx, [ebp - 0x70]
call fcn.00401b20
or edi, 0x20
lea eax, [ebp - 0x70]
mov dword [ebp - 0xec], edi
mov ecx, section..data
cmp dword [ebp - 0x5c], 0xf
push dword [ebp - 0x60]
cmova eax, dword [ebp - 0x70]
push eax
call fcn.00403a50
and edi, 0xffffffdf
mov dword [ebp - 0xec], edi
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x70]
call fcn.004023c0
and edi, 0xffffffef
mov dword [ebp - 0xec], edi
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x58]
call fcn.004023c0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xd0]
call fcn.004023c0
mov dword [ebp - 4], 0x10
mov eax, edi
test al, 2
je 0x40520d
and eax, 0xfffffffd
lea ecx, [ebp - 0x40]
mov dword [ebp - 0xec], eax
call fcn.004023c0
mov eax, dword [ebp - 0xec]
mov dword [ebp - 4], 0xf
test al, 1
je 0x40522c
and eax, 0xfffffffe
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xec], eax
call fcn.004023c0
cmp byte [ebp + 0x14], 0
jne 0x40525e
call fcn.00405300
cmp dword [0x452014], 0xf
mov ecx, section..data
cmova ecx, dword [section..data]
push ecx
push 0x132
push str.C:packagesIGOProxydev_774277_sourceHelpers.cpp
push eax
call fcn.004052c0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb8]
call fcn.004023c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.004023c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.004023c0
mov al, byte [ebp - 0xed]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421ea0
mov esp, ebp
pop ebp
ret
call fcn.00426e72
int3