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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10098
call fcn.00445fa0
mov eax, dword [0x479700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push 0xffff
mov dword [ebp - 0x10090], eax
lea eax, [ebp - 0x10003]
push 0
push eax
mov dword [ebp - 0x10088], ebx
mov byte [ebp - 0x10004], 0
call fcn.004469f0
add esp, 0xc
lea eax, [ebp - 0x10004]
push 0x10000
push eax
push str.path
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp byte [ebp - 0x10004], 0
mov dword [ebp - 0x10050], 0xf
mov dword [ebp - 0x10054], 0
mov byte [ebp - 0x10064], 0
jne 0x424936
xor ecx, ecx
jmp 0x424949
lea ecx, [ebp - 0x10004]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x424940
sub ecx, edx
push ecx
lea eax, [ebp - 0x10004]
push eax
lea ecx, [ebp - 0x10064]
call fcn.004046a8
lea ecx, [ebp - 0x1006c]
mov dword [ebp - 0x1006c], 0
mov dword [ebp - 0x10068], 0
call fcn.00423e40
push 1
push 0x4667c4
lea ecx, [ebp - 0x1001c]
mov dword [ebp - 0x1006c], eax
mov dword [ebp - 0x10078], 0
mov dword [ebp - 0x10074], 0
mov dword [ebp - 0x10070], 0
mov dword [ebp - 0x10008], 0xf
mov dword [ebp - 0x1000c], 0
mov byte [ebp - 0x1001c], 0
call fcn.004046a8
push 0
lea eax, [ebp - 0x1001c]
push eax
lea eax, [ebp - 0x10078]
push eax
lea eax, [ebp - 0x10064]
push eax
call fcn.004037d3
add esp, 0x10
cmp dword [ebp - 0x10008], 0x10
jb 0x424a02
push dword [ebp - 0x1001c]
call fcn.00442fe0
add esp, 4
xor ecx, ecx
mov eax, 0x2aaaaaab
push esi
mov esi, dword [ebp - 0x10078]
push edi
mov edi, dword [ebp - 0x10074]
mov dword [ebp - 0x1007c], ecx
mov ecx, edi
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x424c1d
xor ebx, ebx
mov dword [ebp - 0x10080], ebx
jmp 0x424a40
lea eax, [ebx + esi]
push eax
lea eax, [ebp - 0x1001c]
push eax
call fcn.004036fe
mov edi, dword [ebp - 0x1006c]
lea eax, [ebp - 0x1001c]
add esp, 8
lea ecx, [ebp - 0x1006c]
push eax
call fcn.00423ff0
mov esi, eax
cmp esi, dword [ebp - 0x1006c]
je 0x424ad6
cmp dword [esi + 0x24], 0x10
lea edx, [esi + 0x10]
mov ebx, dword [edx + 0x10]
jb 0x424a83
mov edx, dword [edx]
cmp dword [ebp - 0x10008], 0x10
lea ecx, [ebp - 0x1001c]
mov eax, ebx
cmovae ecx, dword [ebp - 0x1001c]
cmp dword [ebp - 0x1000c], ebx
cmovb eax, dword [ebp - 0x1000c]
push eax
push edx
push ecx
call fcn.0040346b
add esp, 0xc
test eax, eax
jne 0x424ac6
mov ecx, dword [ebp - 0x1000c]
cmp ecx, ebx
jb 0x424ad6
cmp ecx, ebx
setne al
test eax, eax
js 0x424ad6
mov dword [ebp - 0x10084], esi
lea eax, [ebp - 0x10084]
jmp 0x424ae8
mov esi, dword [ebp - 0x1006c]
lea eax, [ebp - 0x1008c]
mov dword [ebp - 0x1008c], esi
cmp dword [eax], edi
jne 0x424bbe
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1001c]
mov dword [ebp - 0x10038], 0xf
push eax
lea ecx, [ebp - 0x1004c]
mov dword [ebp - 0x1003c], 0
mov byte [ebp - 0x1004c], 0
call fcn.00403d9b
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1001c]
mov dword [ebp - 0x10020], 0xf
push eax
lea ecx, [ebp - 0x10034]
mov dword [ebp - 0x10024], 0
mov byte [ebp - 0x10034], 0
call fcn.00403d9b
movzx eax, byte [0x47be6b]
lea ecx, [ebp - 0x1006c]
push eax
lea eax, [ebp - 0x1004c]
push eax
push 0
lea eax, [ebp - 0x10098]
push eax
call fcn.0041ba70
cmp dword [ebp - 0x10020], 0x10
jb 0x424b8c
push dword [ebp - 0x10034]
call fcn.00442fe0
add esp, 4
cmp dword [ebp - 0x10038], 0x10
mov dword [ebp - 0x10020], 0xf
mov dword [ebp - 0x10024], 0
mov byte [ebp - 0x10034], 0
jb 0x424bbe
push dword [ebp - 0x1004c]
call fcn.00442fe0
add esp, 4
cmp dword [ebp - 0x10008], 0x10
jb 0x424bd5
push dword [ebp - 0x1001c]
call fcn.00442fe0
add esp, 4
mov edi, dword [ebp - 0x10074]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x10078]
mov ecx, edi
mov ebx, dword [ebp - 0x10080]
sub ecx, esi
inc dword [ebp - 0x1007c]
add ebx, 0x18
imul ecx
mov dword [ebp - 0x10080], ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x1007c], eax
jb 0x424a40
mov ebx, dword [ebp - 0x10088]
cmp esi, edi
je 0x424c4f
cmp dword [esi + 0x14], 0x10
jb 0x424c31
push dword [esi]
call fcn.00442fe0
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x18
cmp esi, edi
jne 0x424c21
mov esi, dword [ebp - 0x10078]
push 1
push 0x4667c4
lea ecx, [ebp - 0x1001c]
mov dword [ebp - 0x10074], esi
mov dword [ebp - 0x10008], 0xf
mov dword [ebp - 0x1000c], 0
mov byte [ebp - 0x1001c], 0
call fcn.004046a8
push 0
lea eax, [ebp - 0x1001c]
push eax
lea eax, [ebp - 0x10078]
push eax
push ebx
call fcn.004037d3
add esp, 0x10
cmp dword [ebp - 0x10008], 0x10
jb 0x424cb2
push dword [ebp - 0x1001c]
call fcn.00442fe0
add esp, 4
mov ecx, dword [ebp - 0x10074]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x10078]
sub ecx, esi
imul ecx
mov dword [ebp - 0x1007c], 0
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x424f26
xor ebx, ebx
mov dword [ebp - 0x10084], ebx
lea esp, [esp]
lea eax, [esi + ebx]
push eax
lea eax, [ebp - 0x1001c]
push eax
call fcn.004036fe
mov esi, dword [ebp - 0x1006c]
lea eax, [ebp - 0x1001c]
add esp, 8
lea ecx, [ebp - 0x1006c]
push eax
call fcn.00423ff0
cmp eax, dword [ebp - 0x1006c]
je 0x424de4
cmp dword [eax + 0x24], 0x10
lea edx, [eax + 0x10]
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x10080], ecx
jb 0x424d3b
mov edx, dword [edx]
cmp dword [ebp - 0x10008], 0x10
lea edi, [ebp - 0x1001c]
mov ebx, ecx
cmovae edi, dword [ebp - 0x1001c]
cmp dword [ebp - 0x1000c], ecx
cmovb ebx, dword [ebp - 0x1000c]
test ebx, ebx
je 0x424dbd
sub ebx, 4
jb 0x424d78
mov ecx, dword [edi]
cmp ecx, dword [edx]
jne 0x424d7d
add edi, 4
add edx, 4
sub ebx, 4
jae 0x424d67
cmp ebx, 0xfffffffc
je 0x424db1
mov cl, byte [edi]
cmp cl, byte [edx]
jne 0x424daa
cmp ebx, 0xfffffffd
je 0x424db1
mov cl, byte [edi + 1]
cmp cl, byte [edx + 1]
jne 0x424daa
cmp ebx, 0xfffffffe
je 0x424db1
mov cl, byte [edi + 2]
cmp cl, byte [edx + 2]
jne 0x424daa
cmp ebx, 0xffffffff
je 0x424db1
mov cl, byte [edi + 3]
cmp cl, byte [edx + 3]
je 0x424db1
sbb ecx, ecx
or ecx, 1
jmp 0x424db3
xor ecx, ecx
test ecx, ecx
jne 0x424dd4
mov ecx, dword [ebp - 0x10080]
mov edx, dword [ebp - 0x1000c]
cmp edx, ecx
jb 0x424de4
xor ecx, ecx
cmp edx, dword [ebp - 0x10080]
setne cl
test ecx, ecx
js 0x424de4
mov dword [ebp - 0x10088], eax
lea eax, [ebp - 0x10088]
jmp 0x424df6
mov eax, dword [ebp - 0x1006c]
mov dword [ebp - 0x1008c], eax
lea eax, [ebp - 0x1008c]
cmp dword [eax], esi
jne 0x424ecc
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1001c]
mov dword [ebp - 0x10038], 0xf
push eax
lea ecx, [ebp - 0x1004c]
mov dword [ebp - 0x1003c], 0
mov byte [ebp - 0x1004c], 0
call fcn.00403d9b
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1001c]
mov dword [ebp - 0x10020], 0xf
push eax
lea ecx, [ebp - 0x10034]
mov dword [ebp - 0x10024], 0
mov byte [ebp - 0x10034], 0
call fcn.00403d9b
movzx eax, byte [0x47be6b]
lea ecx, [ebp - 0x1006c]
push eax
lea eax, [ebp - 0x1004c]
push eax
push 0
lea eax, [ebp - 0x10098]
push eax
call fcn.0041ba70
cmp dword [ebp - 0x10020], 0x10
jb 0x424e9a
push dword [ebp - 0x10034]
call fcn.00442fe0
add esp, 4
cmp dword [ebp - 0x10038], 0x10
mov dword [ebp - 0x10020], 0xf
mov dword [ebp - 0x10024], 0
mov byte [ebp - 0x10034], 0
jb 0x424ecc
push dword [ebp - 0x1004c]
call fcn.00442fe0
add esp, 4
cmp dword [ebp - 0x10008], 0x10
jb 0x424ee3
push dword [ebp - 0x1001c]
call fcn.00442fe0
add esp, 4
mov ecx, dword [ebp - 0x10074]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x10078]
sub ecx, esi
mov edi, dword [ebp - 0x1007c]
mov ebx, dword [ebp - 0x10084]
inc edi
imul ecx
add ebx, 0x18
mov dword [ebp - 0x1007c], edi
sar edx, 2
mov eax, edx
mov dword [ebp - 0x10084], ebx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x424cf0
mov ebx, dword [ebp - 0x10090]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
mov eax, dword [ebp - 0x1006c]
mov esi, dword [eax]
cmp esi, eax
je 0x424fba
lea esp, [esp]
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x10]
mov ecx, ebx
push eax
call fcn.00403cf5
push 1
push 0x4667c4
mov ecx, ebx
call fcn.0040678d
cmp byte [esi + 0xd], 0
jne 0x424fb2
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x424f92
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x424fb2
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x424f86
jmp 0x424fb2
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x424fb0
jmp 0x424fa0
cmp esi, dword [eax + 8]
jne 0x424fb0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x424fa0
mov esi, eax
cmp esi, dword [ebp - 0x1006c]
jne 0x424f50
push 1
push 0x4667c4
lea ecx, [ebp - 0x1001c]
mov dword [ebp - 0x10008], 0xf
mov dword [ebp - 0x1000c], 0
mov byte [ebp - 0x1001c], 0
call fcn.004046a8
lea eax, [ebp - 0x1001c]
push eax
push ebx
call fcn.00403682
add esp, 8
cmp dword [ebp - 0x10008], 0x10
jb 0x42500e
push dword [ebp - 0x1001c]
call fcn.00442fe0
add esp, 4
cmp dword [ebx + 0x14], 0x10
jb 0x425018
mov eax, dword [ebx]
jmp 0x42501a
mov eax, ebx
push eax
push str.path
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, dword [ebp - 0x10078]
test esi, esi
je 0x425095
mov edi, dword [ebp - 0x10074]
cmp esi, edi
je 0x42506e
lea ebx, [ebx]
cmp dword [esi + 0x14], 0x10
jb 0x425050
push dword [esi]
call fcn.00442fe0
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x18
cmp esi, edi
jne 0x425040
mov esi, dword [ebp - 0x10078]
push esi
call fcn.00442fe0
add esp, 4
mov dword [ebp - 0x10078], 0
mov dword [ebp - 0x10074], 0
mov dword [ebp - 0x10070], 0
mov eax, dword [ebp - 0x1006c]
lea ecx, [ebp - 0x1006c]
push eax
push dword [eax]
lea eax, [ebp - 0x10090]
push eax
call fcn.00426400
push dword [ebp - 0x1006c]
call fcn.00442fe0
add esp, 4
cmp dword [ebp - 0x10050], 0x10
pop edi
pop esi
jb 0x4250d7
push dword [ebp - 0x10064]
call fcn.00442fe0
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00445a5e
mov esp, ebp
pop ebp
ret