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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1446dc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f0
push esi
push edi
push 0x1000
push 0x15b7aa0
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x64], 0
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x60], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x140a982
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x74]
call fcn.014073b0
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x140a9c0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.014073b0
mov ecx, dword [ebp - 0x64]
mov byte [ebp - 4], 1
cmp ecx, 1
jb 0x140aa14
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x74]
mov esi, dword [ebp - 0x74]
cmp edx, 0x10
cmovae eax, esi
cmp byte [ecx + eax - 1], 0x5c
je 0x140aa14
cmp edx, 0x10
lea eax, [ebp - 0x74]
cmovae eax, esi
cmp byte [eax + ecx - 1], 0x2f
je 0x140aa14
push 1
push 0x1448d60
lea ecx, [ebp - 0x74]
call fcn.0140f200
push 1
lea ecx, [ebp - 0x1fc]
call fcn.01408870
lea eax, [ebp - 0x1ec]
mov byte [ebp - 4], 2
push 0x15b7aa0
push eax
call fcn.01407000
lea eax, [ebp - 0x1ec]
push 0x1448d64
push eax
call fcn.01407000
cmp dword [ebp - 0x60], 0x10
lea eax, [ebp - 0x74]
push dword [ebp - 0x64]
cmovae eax, dword [ebp - 0x74]
push eax
lea eax, [ebp - 0x1ec]
push eax
call fcn.014076c0
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x1ec]
push eax
call fcn.014076c0
lea eax, [ebp - 0x1ec]
push str.metahookdlls
push eax
call fcn.01407000
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x44]
add esp, 0x30
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x30], 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0x5c], xmm0
cmovae eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x2c], eax
cmp edi, 0x7fffffff
ja 0x140af9d
mov dword [ebp - 0x48], 0xf
cmp edi, 0x10
jae 0x140aadb
mov dword [ebp - 0x4c], edi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x5c], xmm0
jmp 0x140ab1e
mov esi, edi
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x140aaef
mov esi, 0x7fffffff
jmp 0x140aaf9
mov eax, 0x16
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0140f040
lea ecx, [edi + 1]
mov dword [ebp - 0x5c], eax
push ecx
push dword [ebp - 0x2c]
mov dword [ebp - 0x4c], edi
push eax
mov dword [ebp - 0x48], esi
call fcn.014261c0
add esp, 0xc
push 0x1e
push str.metahookconfigsdllpaths.lst
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.0140f200
push 1
lea ecx, [ebp - 0x14c]
call fcn.014083a0
cmp dword [ebp - 0x48], 0x10
lea eax, [ebp - 0x5c]
push 0x40
cmovae eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x14c]
push 1
push eax
mov byte [ebp - 4], 4
call fcn.014104e0
cmp dword [ebp - 0xf0], 0
je 0x140ae54
mov ecx, dword [ebp - 0x14c]
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0x140], 1
jne 0x140adce
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov eax, dword [ecx + 4]
mov eax, dword [ebp + eax - 0x11c]
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], 6
push eax
call fcn.01407e80
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 0x2c], al
mov byte [ebp - 4], 5
test esi, esi
je 0x140abf2
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x140abf2
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.01407b30
mov edi, dword [ebp - 0x18]
add esp, 0xc
cmp edi, 1
jbe 0x140ad7f
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp esi, 0x10
cmovae ecx, eax
setae dl
cmp byte [ecx], 0xd
je 0x140ac45
test dl, dl
lea ecx, [ebp - 0x28]
cmovne ecx, eax
cmp byte [ecx], 0xa
je 0x140ac45
test dl, dl
lea ecx, [ebp - 0x28]
cmovne ecx, eax
cmp byte [ecx], 0
jne 0x140ac77
mov byte [ebp - 4], 4
test dl, dl
je 0x140adb7
inc esi
mov ecx, eax
cmp esi, 0x1000
jb 0x140ac70
mov eax, dword [ecx - 4]
add esi, 0x23
sub ecx, eax
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x140afa2
push esi
push eax
jmp 0x140adaf
test dl, dl
lea ecx, [ebp - 0x28]
cmovne ecx, eax
cmp byte [ecx], 0x3b
je 0x140ac45
test dl, dl
lea ecx, [ebp - 0x28]
cmovne ecx, eax
cmp byte [ecx], 0x2f
jne 0x140ac9f
test dl, dl
lea ecx, [ebp - 0x28]
cmovne ecx, eax
cmp byte [ecx + 1], 0x2f
je 0x140ac45
cmp edi, 2
jbe 0x140ad21
test dl, dl
lea ecx, [ebp - 0x28]
cmovne ecx, eax
movsx eax, byte [ecx]
push eax
call fcn.014316b0
add esp, 4
test eax, eax
je 0x140ad21
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmovae ecx, edx
setae byte [ebp - 0xd]
cmp byte [ecx + 1], 0x3a
jne 0x140ad21
mov cl, byte [ebp - 0xd]
lea eax, [ebp - 0x28]
test cl, cl
cmovne eax, edx
cmp byte [eax + 2], 0x2f
je 0x140acf6
test cl, cl
lea eax, [ebp - 0x28]
cmovne eax, edx
cmp byte [eax + 2], 0x5c
jne 0x140ad21
lea eax, [ebp - 0x1ec]
push 0x1448d64
push eax
call fcn.01407000
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push ecx
push eax
call fcn.014076c0
add esp, 0x14
jmp 0x140ad7f
lea eax, [ebp - 0x1ec]
push 0x1448d64
push eax
call fcn.01407000
cmp dword [ebp - 0x60], 0x10
lea ecx, [ebp - 0x74]
push dword [ebp - 0x64]
cmovae ecx, dword [ebp - 0x74]
push ecx
push eax
call fcn.014076c0
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x44]
push dword [ebp - 0x34]
cmovae ecx, dword [ebp - 0x44]
push ecx
push eax
call fcn.014076c0
push str.metahookdlls_
push eax
call fcn.01407000
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push ecx
push eax
call fcn.014076c0
add esp, 0x34
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
cmp ecx, 0x10
jb 0x140adb7
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x140adad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x140afa2
push ecx
push edx
call fcn.01423f28
add esp, 8
mov ecx, dword [ebp - 0x14c]
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0x140], 1
je 0x140ab81
lea ecx, [ebp - 0x14c]
call fcn.0140f5d0
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x1fc]
call fcn.014111c0
cmp dword [ebp - 0x78], 0x10
lea eax, [ebp - 0x8c]
cmovae eax, dword [ebp - 0x8c]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov ecx, dword [ebp - 0x78]
cmp ecx, 0x10
jb 0x140ae3f
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x140ae35
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x140afa2
push ecx
push edx
call fcn.01423f28
add esp, 8
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
mov eax, dword [ebp - 0x14c]
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 - 0x14c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x150], eax
lea ecx, [ebp - 0x13c]
call fcn.01408f40
mov eax, dword [ebp - 0x14c]
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 - 0x14c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x150], eax
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 7
push eax
mov dword [ebp - 0xdc], vtable.std::ios_base.0
call fcn.01425ab3
mov ecx, dword [ebp - 0x48]
add esp, 4
pop edi
pop esi
cmp ecx, 0x10
jb 0x140af00
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x140aef6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x140afa2
push ecx
push edx
call fcn.01423f28
add esp, 8
lea ecx, [ebp - 0x1fc]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
call fcn.01409e00
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x140af4d
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x140af43
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x140afa2
push ecx
push edx
call fcn.01423f28
add esp, 8
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0x10
jb 0x140af8f
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x140af85
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x140afa2
push ecx
push edx
call fcn.01423f28
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0140f020
call fcn.01431c47
int3