Function at 0x1406980
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 0x144b3a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x1f0
push esi
push edi
push 0x1000
push 0x15bbed0
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 0x14069e7
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.014110e0
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 0x1406a20
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x5c]
call fcn.014110e0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x34]
cmp ecx, 1
jb 0x1406a9d
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 0x1406a9d
cmp edx, 0xf
lea eax, [ebp - 0x44]
cmova eax, esi
cmp byte [eax + ecx - 1], 0x2f
je 0x1406a9d
mov eax, edx
sub eax, ecx
cmp eax, 1
jb 0x1406a85
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 0x1406a9d
push 1
push 0x15866b0
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x44]
push dword [ebp - 0x14]
push 1
call fcn.01411850
push ecx
lea ecx, [ebp - 0x200]
call fcn.0140e3b0
mov edx, 0x15bbed0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1f0]
call fcn.01410a70
mov edx, 0x15866b4
lea ecx, [ebp - 0x1f0]
call fcn.01410a70
cmp dword [ebp - 0x30], 0xf
lea edx, [ebp - 0x44]
push dword [ebp - 0x34]
cmova edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x1f0]
call fcn.01412250
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.01412250
add esp, 4
lea ecx, [ebp - 0x1f0]
mov edx, str.metahookdlls
call fcn.01410a70
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x74]
call fcn.0140e9a0
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 0x1406b5c
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.0142ae20
add esp, 0xc
mov byte [esi + 0x1e], 0
jmp 0x1406b6d
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x74]
push dword [ebp - 0x14]
push 0x1e
call fcn.01411850
push ecx
lea ecx, [ebp - 0x150]
call fcn.0140d7f0
sub esp, 8
mov byte [ebp - 4], 4
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0x150]
push eax
call fcn.0140d6f0
cmp dword [ebp - 0xf4], 0
je 0x1406e6a
mov ecx, dword [ebp - 0x150]
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0x144], 1
jne 0x1406db7
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.01410950
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 0x1406c31
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x1406c31
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.01412490
mov esi, dword [ebp - 0x1c]
add esp, 4
cmp esi, 1
jbe 0x1406d68
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 0x1406c81
cmp edx, 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, eax
cmp byte [ecx], 0xa
je 0x1406c81
cmp edx, 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, eax
cmp byte [ecx], 0
jne 0x1406cb4
mov byte [ebp - 4], 4
cmp edx, 0xf
jbe 0x1406da0
inc edx
mov ecx, eax
cmp edx, 0x1000
jb 0x1406cad
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x1407008
push edx
push eax
jmp 0x1406d98
cmp edx, 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, eax
cmp byte [ecx], 0x3b
je 0x1406c81
cmp edx, 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, eax
cmp byte [ecx], 0x2f
jne 0x1406cdf
cmp edx, 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, eax
cmp byte [ecx + 1], 0x2f
je 0x1406c81
cmp esi, 2
jbe 0x1406f9f
cmp edx, 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, eax
movsx eax, byte [ecx]
push eax
call fcn.01434fb0
add esp, 4
test eax, eax
je 0x1406f9f
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 0x1406f9f
cmp ecx, 0xf
lea eax, [ebp - 0x2c]
cmova eax, edx
cmp byte [eax + 2], 0x2f
je 0x1406d40
cmp ecx, 0xf
lea eax, [ebp - 0x2c]
cmova eax, edx
cmp byte [eax + 2], 0x5c
jne 0x1406f9f
mov edx, 0x15866b4
lea ecx, [ebp - 0x1f0]
call fcn.01410a70
cmp dword [ebp - 0x18], 0xf
lea edx, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmova edx, dword [ebp - 0x2c]
mov ecx, eax
call fcn.01412250
add esp, 4
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x1406da0
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1406d96
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1407008
push ecx
push edx
call fcn.01428255
add esp, 8
mov ecx, dword [ebp - 0x150]
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0x144], 1
je 0x1406bc0
lea ecx, [ebp - 0x140]
call fcn.0140fad0
test eax, eax
jne 0x1406def
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.01405ba0
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x200]
call fcn.0140e2d0
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 0x1406e55
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1406e4b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1407008
push ecx
push edx
call fcn.01428255
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.0140d650
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.0142987a
mov ecx, dword [ebp - 0x60]
add esp, 4
cmp ecx, 0xf
jbe 0x1406f14
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1406f0a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1407008
push ecx
push edx
call fcn.01428255
add esp, 8
lea ecx, [ebp - 0x200]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
call fcn.014068c0
mov ecx, dword [ebp - 0x48]
cmp ecx, 0xf
jbe 0x1406f65
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1406f5b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1407008
push ecx
push edx
call fcn.01428255
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 0x1406ff5
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1406feb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1407008
jmp 0x1406feb
mov edx, 0x15866b4
lea ecx, [ebp - 0x1f0]
call fcn.01410a70
cmp dword [ebp - 0x30], 0xf
lea edx, [ebp - 0x44]
push dword [ebp - 0x34]
cmova edx, dword [ebp - 0x44]
mov ecx, eax
call fcn.01412250
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.01412250
add esp, 4
mov edx, str.metahookdlls_
mov ecx, eax
jmp 0x1406d4b
push ecx
push edx
call fcn.01428255
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.0143555a
int3