Function at 0x427e00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push fcn.0043d010
lea eax, [ebp - 8]
lea edi, [ebp + 4]
push eax
add edi, 0xfffffffc
push edi
call fcn.00420810
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0x428610
push eax
push edi
call fcn.00420810
mov esi, dword [ebp + 0x1c]
add esp, 0x18
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
test esi, esi
je 0x427e6f
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
jne 0x427e6f
push str.failed_getting_active_user_token
push 0x360003
call fcn.00424230
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x427e80
xor ecx, ecx
cmp dword [eax], ecx
cmove eax, ecx
mov dword [ebp + 0x10], eax
push 1
push eax
call fcn.00428640
add esp, 8
test eax, eax
je 0x427ea7
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
add eax, 0x1610
push eax
push str.invalid_redir:__s
jmp 0x42804b
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x427eb9
xor eax, eax
cmp dword [ebx], eax
cmove ebx, eax
mov dword [ebp + 0xc], ebx
cmp dword [ebp + 0x14], 0
je 0x428012
test ebx, ebx
jne 0x427ee6
test esi, esi
je 0x428012
push 0
push dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
jne 0x427ef5
mov dword [ebp - 4], eax
jmp 0x427f40
test esi, esi
jne 0x427ecf
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 4], eax
jmp 0x427ef8
mov eax, dword [ebp - 4]
test eax, eax
je 0x427f40
nop dword [eax]
cmp word [eax], 0
je 0x427f40
push eax
push edi
call fcn.00420d10
push 0
push dword [eax]
push dword [ebp - 8]
call fcn.0043c880
mov edx, dword [ebp - 4]
add esp, 0x14
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427f24
sub ecx, esi
lea eax, [edx + 2]
sar ecx, 1
lea eax, [eax + ecx*2]
mov dword [ebp - 4], eax
test eax, eax
jne 0x427f00
test ebx, ebx
je 0x42800d
nop dword [eax + eax]
mov ebx, dword [ebx]
test ebx, ebx
je 0x42800d
mov edi, dword [ebp - 8]
mov dword [ebp - 0x14], edi
mov byte [ebp + 0x1f], 0
cmp dword [edi], 0
jne 0x427f72
push edi
call fcn.0043d050
add esp, 4
push 0x3d
push ebx
call fcn.0053f1e0
mov esi, eax
add esp, 8
test esi, esi
je 0x427f87
sub esi, ebx
jmp 0x427f9d
mov esi, ebx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x427f90
sub esi, ecx
mov byte [ebp + 0x1f], 1
mov edi, dword [edi]
mov eax, dword [edi]
test eax, eax
je 0x427fea
push esi
push ebx
push eax
call fcn.00548120
add esp, 0xc
test eax, eax
jne 0x427fbc
mov eax, dword [edi]
cmp byte [eax + esi], 0x3d
je 0x427fc6
mov eax, dword [edi + 4]
add edi, 4
test eax, eax
jne 0x427fa5
test eax, eax
je 0x427fea
cmp byte [ebp + 0x1f], 0
jne 0x427fdc
push ebx
push edi
call fcn.004218d0
add esp, 8
jmp 0x427ffe
push edi
push dword [ebp - 0x14]
call fcn.0043cfc0
add esp, 8
jmp 0x427ffe
cmp byte [ebp + 0x1f], 0
jne 0x427ffe
push 0
push ebx
push dword [ebp - 0x14]
call fcn.0043c880
add esp, 0xc
mov ebx, dword [ebp + 0xc]
add ebx, 4
mov dword [ebp + 0xc], ebx
jne 0x427f50
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
push 0
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.0043bc50
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push dword [ebp + 0x18]
push 1
push dword [ebp + 0x10]
push ebx
push 0
push dword [eax]
call fcn.00428270
add esp, 0x28
mov esi, eax
pop ebx
test esi, esi
jne 0x42805a
mov eax, dword [ebp - 0xc]
push dword [eax]
push str.failed_CreateProcess__s_:__m
push 0x360003
call fcn.00424230
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
call fcn.004438e0
add esp, 4
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret