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

Disassembly:
mov eax, 0x1285350
call fcn.01160168
sub esp, 0x54
push ebx
mov dword [ebp - 0x30], ecx
add ecx, 0x18
push esi
mov dword [ebp - 0x40], ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x3c], bl
call fcn.0105d49a
mov dword [ebp - 4], ebx
push ebx
push 4
lea eax, [ebp - 0x18]
push eax
call fcn.0117a846
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.0107bfb4
mov esi, eax
cmp esi, ebx
jl 0x115dd87
push dword [ebp - 0x18]
push 0x100fb60
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp eax, ebx
je 0x115e419
push ebx
push 1
lea eax, [ebp - 0x2c]
push eax
call fcn.0117a846
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1c]
call fcn.01045a7a
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.010454b8
push 0x100fb44
lea ecx, [ebp - 0x1c]
call fcn.010524f5
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 5
mov ecx, dword [0x12d28f8]
lea eax, [ebp - 0x14]
push eax
push 0x100fe14
push 0x17
push ebx
push 0x100fe04
call fcn.0116b561
mov esi, eax
cmp esi, ebx
jge 0x115ddaa
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x115dd7b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.010328fa
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.010454b8
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x3c], bl
je 0x115dda3
lea ecx, [ebp - 0x40]
call fcn.0105d4cd
mov eax, esi
jmp 0x115e312
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x60]
call fcn.01259b08
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
lea esi, [ebp - 0x10]
push esi
sub esp, 0x10
mov edi, esp
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ecx
movsd dword es:[edi], dword [esi]
call dword [edx + pe_nt_image_headers32]
mov edi, eax
mov byte [ebp - 4], 5
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x60]
push eax
call esi
cmp edi, ebx
jl 0x115de24
movsx eax, word [ebp - 0x10]
cmp eax, ebx
je 0x115e3fc
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [ecx + 0xb4]
mov edi, eax
cmp edi, ebx
jge 0x115de64
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x115de24
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x115de35
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.010328fa
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.010454b8
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x3c], bl
je 0x115de5d
lea ecx, [ebp - 0x40]
call fcn.0105d4cd
mov eax, edi
jmp 0x115e312
mov word [ebp - 0x50], bx
mov byte [ebp - 4], 8
push 0x100fb34
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
lea edx, [ebp - 0x50]
push edx
push dword [ebp - 0x2c]
push eax
call dword [ecx + 0xb0]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 8
push dword [ebp - 0x2c]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
cmp dword [ebp - 0x28], ebx
jge 0x115df04
mov byte [ebp - 4], 7
lea eax, [ebp - 0x50]
push eax
call esi
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x115dec3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x115ded4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.010328fa
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.010454b8
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x3c], bl
je 0x115defc
lea ecx, [ebp - 0x40]
call fcn.0105d4cd
mov eax, dword [ebp - 0x28]
jmp 0x115e312
push 3
push ebx
lea eax, [ebp - 0x50]
push eax
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
cmp eax, ebx
mov dword [ebp - 0x2c], eax
jl 0x115df74
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp + 8]
jbe 0x115e10b
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 0xa
push 0x100fb1c
lea ecx, [ebp - 0x28]
call fcn.0106154f
mov byte [ebp - 4], 0xb
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp - 0x14]
call dword [ecx + 0x90]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0xa
push dword [ebp - 0x28]
call edi
cmp dword [ebp - 0x2c], ebx
jge 0x115dfd0
mov byte [ebp - 4], 8
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x115df74
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 7
lea eax, [ebp - 0x50]
push eax
call esi
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x115df8f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x115dfa0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.010328fa
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.010454b8
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x3c], bl
je 0x115dfc8
lea ecx, [ebp - 0x40]
call fcn.0105d4cd
mov eax, dword [ebp - 0x2c]
jmp 0x115e312
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
push dword [ebp + 8]
call fcn.0115d97f
cmp eax, ebx
mov dword [ebp + 0xc], eax
jge 0x115e052
mov byte [ebp - 4], 8
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x115dff6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 7
lea eax, [ebp - 0x50]
push eax
call esi
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x115e011
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x115e022
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.010328fa
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.010454b8
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x3c], bl
je 0x115e04a
lea ecx, [ebp - 0x40]
call fcn.0105d4cd
mov eax, dword [ebp + 0xc]
jmp 0x115e312
mov ecx, 0x12d2398
call fcn.0107c455
push eax
lea ecx, [ebp - 0x28]
call fcn.0103966b
mov byte [ebp - 4], 0xc
push dword [0x12cf8a4]
lea ecx, [ebp - 0x28]
call fcn.010524f5
mov dword [ebp + 0xc], ebx
mov byte [ebp - 4], 0xd
push ebx
push ebx
push 0xf003f
push ebx
push ebx
push dword [ebp - 0x28]
lea ecx, [ebp + 0xc]
push 0x80000001
call fcn.0106156f
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x38], eax
jne 0x115e0aa
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 0xc]
jmp 0x115e0cc
push dword [0x12cf8bc]
lea ecx, [ebp + 0xc]
push dword [ebp - 0x48]
call fcn.010615c4
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 0xc]
jne 0x115e0e9
call fcn.010449c4
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
call fcn.010328fa
mov byte [ebp - 4], 8
mov eax, dword [ebp + 8]
jmp 0x115e3d7
call fcn.010449c4
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
call fcn.010328fa
mov byte [ebp - 4], 8
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x115e10b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 0xe
push 0x100fb04
lea ecx, [ebp + 0xc]
call fcn.0106154f
mov byte [ebp - 4], 0xf
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
lea edx, [ebp - 0x24]
push edx
push eax
push dword [ebp - 0x14]
call dword [ecx + 0x90]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0xe
push dword [ebp + 0xc]
call edi
cmp dword [ebp + 8], ebx
jl 0x115e16b
mov ecx, dword [ebp - 0x30]
add ecx, 0xc
mov dword [ebp - 0x38], ecx
call fcn.01066942
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
push eax
call dword [ecx + 0x20]
cmp eax, ebx
mov dword [ebp + 8], eax
jge 0x115e1d8
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x115e17c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 7
lea eax, [ebp - 0x50]
push eax
call esi
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x115e197
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x115e1a8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.010328fa
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.010454b8
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x3c], bl
je 0x115e1d0
lea ecx, [ebp - 0x40]
call fcn.0105d4cd
mov eax, dword [ebp + 8]
jmp 0x115e312
cmp dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
jle 0x115e2ab
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push dword [ebp - 0x2c]
push eax
call dword [ecx + 0x1c]
cmp eax, ebx
mov dword [ebp - 0x30], eax
jl 0x115e32c
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 0x11
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push eax
call dword [ecx + 0x68]
cmp eax, ebx
mov dword [ebp - 0x30], eax
jl 0x115e323
mov eax, dword [0x12ce0a0]
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, 0x104
push eax
push eax
lea ecx, [ebp + 0xc]
call fcn.0103299e
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
je 0x115e3aa
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
call fcn.01032a0b
mov ecx, dword [ebp - 0x38]
lea eax, [ebp + 0xc]
push eax
call fcn.010919b1
cmp eax, ebx
je 0x115e3aa
mov byte [ebp - 4], 0x11
lea ecx, [ebp + 0xc]
call fcn.010328fa
mov byte [ebp - 4], 0x10
push dword [ebp - 0x28]
call edi
mov byte [ebp - 4], 0xe
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x115e29c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x34]
jl 0x115e1e4
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x115e2bc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 7
lea eax, [ebp - 0x50]
push eax
call esi
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x115e2d7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x115e2e8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.010328fa
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.010454b8
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x3c], bl
je 0x115e310
lea ecx, [ebp - 0x40]
call fcn.0105d4cd
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
mov byte [ebp - 4], 0x10
push dword [ebp - 0x28]
call edi
mov byte [ebp - 4], 0xe
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x115e33d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x115e34e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 7
lea eax, [ebp - 0x50]
push eax
call esi
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x115e369
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x115e37a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.010328fa
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.010454b8
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x3c], bl
je 0x115e3a2
lea ecx, [ebp - 0x40]
call fcn.0105d4cd
mov eax, dword [ebp - 0x30]
jmp 0x115e312
mov byte [ebp - 4], 0x11
lea ecx, [ebp + 0xc]
call fcn.010328fa
mov byte [ebp - 4], 0x10
push dword [ebp - 0x28]
call edi
mov byte [ebp - 4], 0xe
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x115e3d0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x115e3e1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 7
lea eax, [ebp - 0x50]
push eax
call esi
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x115e3fc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x115e40d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.010328fa
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.010454b8
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x3c], bl
je 0x115e435
lea ecx, [ebp - 0x40]
call fcn.0105d4cd
mov eax, 0x80004005
jmp 0x115e312