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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455b97
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x476040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xdc], edi
xorps xmm0, xmm0
push 0xb
push str.Environment
mov dword [ebp - 0xd8], edi
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.00404650
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x70]
call fcn.00421500
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push ecx
push eax
mov edx, 0x80000002
lea ecx, [ebp - 0xa0]
call fcn.00427fd0
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00404310
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x427518
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42750e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427c40
push ecx
push edx
call fcn.00434ce3
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x4660d4
lea edx, [ebp - 0xa0]
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x104]
mov word [ebp - 0x28], ax
call fcn.00429360
add esp, 4
mov byte [ebp - 4], 5
xorps xmm0, xmm0
push 0xb
push str.Environment
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
call fcn.00404650
mov byte [ebp - 4], 6
lea eax, [ebp - 0x40]
push eax
mov edx, 0x80000001
lea ecx, [ebp - 0xf8]
call fcn.004282a0
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
call fcn.00404310
mov eax, dword [ebp - 0xf4]
mov esi, dword [ebp - 0xf8]
mov dword [ebp - 0xe4], eax
cmp esi, eax
je 0x427695
mov edx, dword [ebp - 0x100]
add esi, 0x18
mov dword [ebp - 0xd4], esi
nop dword [eax]
mov edi, dword [ebp - 0x104]
cmp edi, edx
je 0x427677
mov eax, dword [esi - 8]
mov dword [ebp - 0xe8], eax
lea eax, [esi - 0x18]
nop word [eax + eax]
cmp dword [esi - 4], 7
jbe 0x4275e9
mov eax, dword [esi - 0x18]
cmp dword [edi + 0x14], 7
mov ecx, edi
mov esi, dword [edi + 0x10]
jbe 0x4275f6
mov ecx, dword [edi]
cmp esi, dword [ebp - 0xe8]
jne 0x427632
test esi, esi
je 0x42764a
sub ecx, eax
mov dword [ebp - 0xe0], ecx
nop word [eax + eax]
movzx edx, word [eax + ecx]
movzx ecx, word [eax]
cmp dx, cx
jne 0x42762c
add eax, 2
sub esi, 1
je 0x427644
mov ecx, dword [ebp - 0xe0]
jmp 0x427610
mov edx, dword [ebp - 0x100]
mov esi, dword [ebp - 0xd4]
add edi, 0x18
lea eax, [esi - 0x18]
cmp edi, edx
jne 0x4275e0
jmp 0x42764a
mov edx, dword [ebp - 0x100]
mov esi, dword [ebp - 0xd4]
cmp edi, edx
je 0x427677
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x42765e
mov ecx, dword [esi]
cmp dword [esi - 4], 7
lea eax, [esi - 0x18]
jbe 0x427669
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edx, dword [ebp - 0x100]
add esi, 0x30
mov dword [ebp - 0xd4], esi
lea eax, [esi - 0x18]
cmp eax, dword [ebp - 0xe4]
jne 0x4275c0
mov edi, dword [ebp - 0xd8]
lea ecx, [ebp - 0x88]
call fcn.00421500
mov esi, eax
mov byte [ebp - 4], 0xa
mov ecx, esi
push 0x5c
call fcn.00415600
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x70]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
or edi, 1
movups xmm0, xmmword [esi]
push str.Environment
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 0xdc], edi
call fcn.00419a10
mov byte [ebp - 4], 0xb
mov edx, 0x80000002
push eax
lea ecx, [ebp - 0x34]
call fcn.004282a0
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0xf8]
cmp eax, esi
je 0x42775b
mov ecx, eax
call fcn.00429770
mov ecx, dword [esi]
mov dword [ebp - 0xf8], ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0xf4], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0xf0], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x34]
call fcn.00429770
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x70]
call fcn.00404310
and edi, 0xfffffffe
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xdc], edi
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4277c0
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4277b6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427c45
push ecx
push edx
call fcn.00434ce3
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x88]
call fcn.00404310
mov eax, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xec], ecx
cmp eax, ecx
je 0x42791f
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
xor ecx, ecx
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], cx
mov byte [ebp - 4], 0xd
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], cx
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x40]
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xe8], ecx
lea ecx, [ebp - 0xd4]
push ecx
mov ecx, eax
call fcn.00428d10
mov ecx, dword [ebp - 0xe0]
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xe8]
add ecx, 0x18
push eax
lea edx, [ebp - 0x58]
call fcn.00428f20
mov eax, dword [ebp - 0xd4]
add esp, 0xc
sub eax, 0
je 0x42796a
sub eax, 1
je 0x4278a7
sub eax, 1
jne 0x4278ec
push eax
jmp 0x4278da
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
push 0
cmova eax, dword [ebp - 0x40]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4278ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x4278ec
cmp dword [ebp - 0x44], 7
lea ecx, [ebp - 0x58]
cmova ecx, dword [ebp - 0x58]
push ecx
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x58]
call fcn.00404310
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
call fcn.00404310
mov eax, dword [ebp - 0xe0]
add eax, 0x30
mov dword [ebp - 0xe0], eax
cmp eax, dword [ebp - 0xec]
jne 0x427803
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xf8]
call fcn.00429770
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x104]
call fcn.00429850
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.00404310
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.0043488a
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xe8]
mov eax, esi
sub eax, 0
je 0x4278ce
sub eax, 1
je 0x427989
sub eax, 1
jne 0x4278ec
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
push 0
cmova eax, dword [ebp - 0x40]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
je 0x4278c1
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x28]
push eax
push edi
call fcn.00404160
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
push edi
cmova ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 7
push ecx
cmova eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x427a2f
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 7
cmova eax, edx
dec edi
cmp word [eax + edi*2], 0
jne 0x427a2f
cmp ecx, 7
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x28]
cmova eax, edx
xor ecx, ecx
mov word [eax + edi*2], cx
mov ax, word [ebp - 0xe4]
mov word [ebp - 0xd4], ax
cmp esi, 1
jne 0x427b0c
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x7ffffffe
je 0x427c3b
cmp dword [ebp - 0x14], 7
lea edx, [ebp - 0xd4]
push esi
push edx
push ecx
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
push ecx
push dword [ebp - 0xec]
lea ecx, [ebp - 0x88]
call fcn.0041c110
mov edi, dword [ebp - 0xd8]
lea eax, [ebp - 0x58]
or edi, 4
lea edx, [ebp - 0x88]
push eax
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xdc], edi
call fcn.00419b20
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x427adf
mov ecx, eax
call fcn.00404310
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xb8]
call fcn.00404310
and edi, 0xfffffffb
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xdc], edi
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x88]
jmp 0x427bc5
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x7ffffffe
je 0x427c3b
cmp dword [ebp - 0x44], 7
lea edx, [ebp - 0xd4]
push 1
push edx
push ecx
lea eax, [ebp - 0x58]
cmova eax, dword [ebp - 0x58]
push eax
push ecx
push dword [ebp - 0xec]
lea ecx, [ebp - 0x70]
call fcn.0041c110
mov edi, dword [ebp - 0xd8]
lea eax, [ebp - 0x28]
or edi, 2
lea edx, [ebp - 0x70]
push eax
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xdc], edi
call fcn.00419b20
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x427ba0
mov ecx, eax
call fcn.00404310
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xd0]
call fcn.00404310
and edi, 0xfffffffd
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xdc], edi
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x70]
call fcn.00404310
cmp dword [ebp - 0x44], 7
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x40]
cmova ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x2c], 7
push ecx
cmova eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x427c22
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x427c18
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427c40
push ecx
push edx
call fcn.00434ce3
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x4278ec
call fcn.00402e30
call fcn.0043e33e
call fcn.0043e33e
int3