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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1445c76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push 0x1000
push 0x15b6970
push 0x1447ce8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, 0x15b6970
mov dword [ebp - 0x8c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x88], 0
movups xmmword [ebp - 0x9c], xmm0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x14098e0
sub ecx, edx
push esi
sar ecx, 1
push ecx
push 0x15b6970
lea ecx, [ebp - 0x9c]
call fcn.01406190
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1409925
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x78]
call fcn.014060f0
push 0x1e
push str.metahookconfigsdllpaths.lst
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.0140de50
push 1
lea ecx, [ebp - 0x15c]
call fcn.014072d0
cmp dword [ebp - 0x64], 0x10
lea eax, [ebp - 0x78]
push 0x40
cmovae eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x15c]
push 1
push eax
mov byte [ebp - 4], 2
call fcn.0140f450
cmp dword [ebp - 0x100], 0
je 0x1409e3b
mov ecx, dword [ebp - 0x15c]
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0x150], 1
jne 0x1409e10
push edi
nop dword [eax]
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov eax, dword [ecx + 4]
mov eax, dword [ebp + eax - 0x12c]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0xa0], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 4
push eax
call fcn.01406db0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 0x7c], al
mov byte [ebp - 4], 3
test esi, esi
je 0x1409a11
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x1409a11
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [ebp - 0x7c]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.01406a60
mov edi, dword [ebp - 0x34]
add esp, 0xc
mov esi, dword [ebp - 0x44]
cmp edi, 1
jbe 0x1409dc1
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x44]
cmp ecx, 0x10
cmovae eax, esi
setae dl
mov byte [ebp - 0xd], dl
cmp byte [eax], 0xd
je 0x1409a67
test dl, dl
lea eax, [ebp - 0x44]
cmovne eax, esi
cmp byte [eax], 0xa
je 0x1409a67
test dl, dl
lea eax, [ebp - 0x44]
cmovne eax, esi
cmp byte [eax], 0
jne 0x1409a79
mov byte [ebp - 4], 2
test dl, dl
je 0x1409df8
inc ecx
jmp 0x1409dd0
test dl, dl
lea eax, [ebp - 0x44]
cmovne eax, esi
cmp byte [eax], 0x3b
je 0x1409a67
test dl, dl
lea eax, [ebp - 0x44]
cmovne eax, esi
cmp byte [eax], 0x2f
jne 0x1409aa1
test dl, dl
lea eax, [ebp - 0x44]
cmovne eax, esi
cmp byte [eax + 1], 0x2f
je 0x1409a67
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 5
cmp edi, 2
jbe 0x1409c0c
test dl, dl
lea eax, [ebp - 0x44]
cmovne eax, esi
movsx eax, byte [eax]
push eax
call fcn.01430620
add esp, 4
test eax, eax
je 0x1409c0c
mov dl, byte [ebp - 0xd]
lea eax, [ebp - 0x44]
test dl, dl
cmovne eax, esi
cmp byte [eax + 1], 0x3a
jne 0x1409c0c
test dl, dl
lea eax, [ebp - 0x44]
cmovne eax, esi
cmp byte [eax + 2], 0x2f
je 0x1409b18
test dl, dl
lea eax, [ebp - 0x44]
cmovne eax, esi
cmp byte [eax + 2], 0x5c
jne 0x1409c0c
test dl, dl
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x18]
cmovne ecx, esi
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], ecx
cmp edi, edx
ja 0x1409b57
mov eax, dword [ebp - 0x34]
lea edi, [ebp - 0x2c]
cmp edx, 0x10
mov dword [ebp - 0x1c], eax
push eax
cmovae edi, dword [ebp - 0x2c]
push ecx
push edi
call fcn.01425130
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov byte [eax + edi], 0
jmp 0x1409c7b
cmp edi, 0x7fffffff
ja 0x1409f43
mov ecx, edi
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x1409b77
mov ecx, 0x7fffffff
jmp 0x1409b9b
mov eax, edx
shr eax, 1
mov dword [ebp - 0x14], eax
mov eax, 0x7fffffff
sub eax, dword [ebp - 0x14]
cmp edx, eax
jbe 0x1409b91
mov ecx, 0x7fffffff
jmp 0x1409b9b
mov eax, dword [ebp - 0x14]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x14], ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0140dc30
mov ecx, dword [ebp - 0x14]
push edi
push dword [ebp - 0x80]
mov dword [ebp - 0x60], eax
push eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ecx
call fcn.01425130
mov eax, dword [ebp - 0x60]
add esp, 0xc
mov ecx, dword [ebp - 0x84]
mov byte [edi + eax], 0
cmp ecx, 0x10
jb 0x1409c04
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1409bf7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1409f3e
push ecx
push edx
call fcn.01423512
mov eax, dword [ebp - 0x60]
add esp, 8
mov dword [ebp - 0x2c], eax
jmp 0x1409c7b
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1409c12
sub ecx, edx
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.0140e2d0
push 1
push 0x1447d14
lea ecx, [ebp - 0x2c]
call fcn.0140de50
mov ecx, dword [ebp + 8]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1409c40
sub ecx, edx
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.0140de50
push 0xf
push str.metahookdlls_
lea ecx, [ebp - 0x2c]
call fcn.0140de50
cmp byte [ebp - 0xd], 0
lea eax, [ebp - 0x44]
push edi
cmovne eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.0140de50
mov esi, dword [ebp - 0x44]
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
xor eax, eax
mov dword [ebp - 0x48], 7
movups xmmword [ebp - 0x5c], xmm0
mov word [ebp - 0x5c], ax
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0
push dword [ebp - 0x1c]
mov byte [ebp - 4], 6
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x4c]
mov edi, eax
cmp edi, ecx
ja 0x1409cd6
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x4c], edi
cmovae ecx, dword [ebp - 0x5c]
xor eax, eax
mov word [ecx + edi*2], ax
jmp 0x1409ce5
mov eax, edi
sub eax, ecx
lea ecx, [ebp - 0x5c]
push 0
push eax
call fcn.0140dfb0
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x5c]
push edi
cmovae ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
push ecx
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 1
push 0x1447d28
lea ecx, [ebp - 0x9c]
call fcn.0140e150
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
push dword [ebp - 0x4c]
cmovae eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x9c]
push eax
call fcn.0140e150
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 5
cmp ecx, 8
jb 0x1409d75
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1409d6b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1409f3e
push ecx
push edx
call fcn.01423512
add esp, 8
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x1409dc1
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1409db7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1409f3e
push ecx
push edx
call fcn.01423512
add esp, 8
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x1409df8
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x1409dee
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1409f3e
push ecx
push esi
call fcn.01423512
add esp, 8
mov ecx, dword [ebp - 0x15c]
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0x150], 1
je 0x14099a0
pop edi
lea ecx, [ebp - 0x15c]
call fcn.0140e540
cmp dword [ebp - 0x88], 8
lea eax, [ebp - 0x9c]
cmovae eax, dword [ebp - 0x9c]
push eax
push 0x1447ce8
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [ebp - 0x15c]
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 - 0x15c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x160], eax
lea ecx, [ebp - 0x14c]
call fcn.01407f00
mov eax, dword [ebp - 0x15c]
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 - 0x15c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x160], eax
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 7
push eax
mov dword [ebp - 0xec], vtable.std::ios_base.0
call fcn.01424bd7
mov ecx, dword [ebp - 0x64]
add esp, 4
pop esi
cmp ecx, 0x10
jb 0x1409ee2
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1409ed8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1409f3e
push ecx
push edx
call fcn.01423512
add esp, 8
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
cmp ecx, 8
jb 0x1409f30
mov edx, dword [ebp - 0x9c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1409f26
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1409f3e
push ecx
push edx
call fcn.01423512
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.01430d04
call fcn.0140dc00
int3