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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x144aaa6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x1f0
push esi
push edi
push 0x1000
push 0x15bbf38
push str.PATH
mov esi, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, esi
mov dword [ebp - 0x34], 0
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x14069b7
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.01410f70
mov ecx, edi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x48], 0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x14069f0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x5c]
call fcn.01410f70
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x34]
cmp ecx, 1
jb 0x1406a6d
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x44]
mov esi, dword [ebp - 0x44]
cmp edx, 0xf
cmova eax, esi
cmp byte [ecx + eax - 1], 0x5c
je 0x1406a6d
cmp edx, 0xf
lea eax, [ebp - 0x44]
cmova eax, esi
cmp byte [eax + ecx - 1], 0x2f
je 0x1406a6d
mov eax, edx
sub eax, ecx
cmp eax, 1
jb 0x1406a55
lea eax, [ecx + 1]
cmp edx, 0xf
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
cmova eax, esi
mov word [eax + ecx], 0x5c
jmp 0x1406a6d
push 1
push 0x1586590
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x44]
push dword [ebp - 0x14]
push 1
call fcn.014116e0
push ecx
lea ecx, [ebp - 0x200]
call fcn.0140e240
mov edx, 0x15bbf38
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1f0]
call fcn.01410900
mov edx, 0x1586594
lea ecx, [ebp - 0x1f0]
call fcn.01410900
cmp dword [ebp - 0x30], 0xf
lea edx, [ebp - 0x44]
push dword [ebp - 0x34]
cmova edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x1f0]
call fcn.014120e0
add esp, 4
lea edx, [ebp - 0x5c]
cmp dword [ebp - 0x48], 0xf
lea ecx, [ebp - 0x1f0]
cmova edx, dword [ebp - 0x5c]
push dword [ebp - 0x4c]
call fcn.014120e0
add esp, 4
lea ecx, [ebp - 0x1f0]
mov edx, str.metahookdlls
call fcn.01410900
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x74]
call fcn.0140e830
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x60]
mov eax, edx
mov ecx, dword [ebp - 0x64]
sub eax, ecx
push 0x1e
push str.metahookconfigsdllpaths.lst
cmp eax, 0x1e
jb 0x1406b2c
cmp edx, 0xf
lea esi, [ebp - 0x74]
lea eax, [ecx + 0x1e]
cmova esi, dword [ebp - 0x74]
add esi, ecx
mov dword [ebp - 0x64], eax
push esi
call fcn.0142ac90
add esp, 0xc
mov byte [esi + 0x1e], 0
jmp 0x1406b3d
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x74]
push dword [ebp - 0x14]
push 0x1e
call fcn.014116e0
push ecx
lea ecx, [ebp - 0x150]
call fcn.0140d680
sub esp, 8
mov byte [ebp - 4], 4
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0x150]
push eax
call fcn.0140d580
cmp dword [ebp - 0xf4], 0
je 0x1406e3a
mov ecx, dword [ebp - 0x150]
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0x144], 1
jne 0x1406d87
nop dword [eax]
nop word [eax + eax]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov eax, dword [ecx + 4]
mov eax, dword [ebp + eax - 0x120]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x90], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 7
push eax
call fcn.014107e0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 0x14], al
mov byte [ebp - 4], 6
test esi, esi
je 0x1406c01
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x1406c01
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [ebp - 0x14]
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x150]
call fcn.01412320
mov esi, dword [ebp - 0x1c]
add esp, 4
cmp esi, 1
jbe 0x1406d38
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
cmp edx, 0xf
cmova ecx, eax
cmp byte [ecx], 0xd
je 0x1406c51
cmp edx, 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, eax
cmp byte [ecx], 0xa
je 0x1406c51
cmp edx, 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, eax
cmp byte [ecx], 0
jne 0x1406c84
mov byte [ebp - 4], 4
cmp edx, 0xf
jbe 0x1406d70
inc edx
mov ecx, eax
cmp edx, 0x1000
jb 0x1406c7d
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x1406fd8
push edx
push eax
jmp 0x1406d68
cmp edx, 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, eax
cmp byte [ecx], 0x3b
je 0x1406c51
cmp edx, 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, eax
cmp byte [ecx], 0x2f
jne 0x1406caf
cmp edx, 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, eax
cmp byte [ecx + 1], 0x2f
je 0x1406c51
cmp esi, 2
jbe 0x1406f6f
cmp edx, 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, eax
movsx eax, byte [ecx]
push eax
call fcn.01434f10
add esp, 4
test eax, eax
je 0x1406f6f
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
cmp ecx, 0xf
cmova eax, edx
cmp byte [eax + 1], 0x3a
jne 0x1406f6f
cmp ecx, 0xf
lea eax, [ebp - 0x2c]
cmova eax, edx
cmp byte [eax + 2], 0x2f
je 0x1406d10
cmp ecx, 0xf
lea eax, [ebp - 0x2c]
cmova eax, edx
cmp byte [eax + 2], 0x5c
jne 0x1406f6f
mov edx, 0x1586594
lea ecx, [ebp - 0x1f0]
call fcn.01410900
cmp dword [ebp - 0x18], 0xf
lea edx, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmova edx, dword [ebp - 0x2c]
mov ecx, eax
call fcn.014120e0
add esp, 4
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x1406d70
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1406d66
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1406fd8
push ecx
push edx
call fcn.01428085
add esp, 8
mov ecx, dword [ebp - 0x150]
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0x144], 1
je 0x1406b90
lea ecx, [ebp - 0x140]
call fcn.0140f960
test eax, eax
jne 0x1406dbf
mov eax, dword [ebp - 0x150]
lea ecx, [ebp - 0x150]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.01405b70
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x200]
call fcn.0140e160
cmp dword [ebp - 0x78], 0xf
lea eax, [ebp - 0x8c]
cmova eax, dword [ebp - 0x8c]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov ecx, dword [ebp - 0x78]
cmp ecx, 0xf
jbe 0x1406e25
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1406e1b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1406fd8
push ecx
push edx
call fcn.01428085
add esp, 8
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
mov eax, dword [ebp - 0x150]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x154], eax
lea ecx, [ebp - 0x140]
call fcn.0140d4e0
mov eax, dword [ebp - 0x150]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x154], eax
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 8
push eax
mov dword [ebp - 0xe0], vtable.std::ios_base.0
call fcn.014296a9
mov ecx, dword [ebp - 0x60]
add esp, 4
cmp ecx, 0xf
jbe 0x1406ee4
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1406eda
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1406fd8
push ecx
push edx
call fcn.01428085
add esp, 8
lea ecx, [ebp - 0x200]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
call fcn.01406890
mov ecx, dword [ebp - 0x48]
cmp ecx, 0xf
jbe 0x1406f35
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1406f2b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1406fd8
push ecx
push edx
call fcn.01428085
add esp, 8
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp ecx, 0xf
jbe 0x1406fc5
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1406fbb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1406fd8
jmp 0x1406fbb
mov edx, 0x1586594
lea ecx, [ebp - 0x1f0]
call fcn.01410900
cmp dword [ebp - 0x30], 0xf
lea edx, [ebp - 0x44]
push dword [ebp - 0x34]
cmova edx, dword [ebp - 0x44]
mov ecx, eax
call fcn.014120e0
add esp, 4
lea edx, [ebp - 0x5c]
cmp dword [ebp - 0x48], 0xf
mov ecx, eax
cmova edx, dword [ebp - 0x5c]
push dword [ebp - 0x4c]
call fcn.014120e0
add esp, 4
mov edx, str.metahookdlls_
mov ecx, eax
jmp 0x1406d1b
push ecx
push edx
call fcn.01428085
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.014354ba
int3