Function at 0x427dd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push fcn.0043cfb0
lea eax, [ebp - 8]
lea edi, [ebp + 4]
push eax
add edi, 0xfffffffc
push edi
call fcn.004207e0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0x4285e0
push eax
push edi
call fcn.004207e0
mov esi, dword [ebp + 0x1c]
add esp, 0x18
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
test esi, esi
je 0x427e3f
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
jne 0x427e3f
push str.failed_getting_active_user_token
push 0x360003
call fcn.00424200
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x427e50
xor ecx, ecx
cmp dword [eax], ecx
cmove eax, ecx
mov dword [ebp + 0x10], eax
push 1
push eax
call fcn.00428610
add esp, 8
test eax, eax
je 0x427e77
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
add eax, 0x1610
push eax
push str.invalid_redir:__s
jmp 0x42801b
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x427e89
xor eax, eax
cmp dword [ebx], eax
cmove ebx, eax
mov dword [ebp + 0xc], ebx
cmp dword [ebp + 0x14], 0
je 0x427fe2
test ebx, ebx
jne 0x427eb6
test esi, esi
je 0x427fe2
push 0
push dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
jne 0x427ec5
mov dword [ebp - 4], eax
jmp 0x427f10
test esi, esi
jne 0x427e9f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 4], eax
jmp 0x427ec8
mov eax, dword [ebp - 4]
test eax, eax
je 0x427f10
nop dword [eax]
cmp word [eax], 0
je 0x427f10
push eax
push edi
call fcn.00420ce0
push 0
push dword [eax]
push dword [ebp - 8]
call fcn.0043c820
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 0x427ef4
sub ecx, esi
lea eax, [edx + 2]
sar ecx, 1
lea eax, [eax + ecx*2]
mov dword [ebp - 4], eax
test eax, eax
jne 0x427ed0
test ebx, ebx
je 0x427fdd
nop dword [eax + eax]
mov ebx, dword [ebx]
test ebx, ebx
je 0x427fdd
mov edi, dword [ebp - 8]
mov dword [ebp - 0x14], edi
mov byte [ebp + 0x1f], 0
cmp dword [edi], 0
jne 0x427f42
push edi
call fcn.0043cff0
add esp, 4
push 0x3d
push ebx
call fcn.0053f150
mov esi, eax
add esp, 8
test esi, esi
je 0x427f57
sub esi, ebx
jmp 0x427f6d
mov esi, ebx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x427f60
sub esi, ecx
mov byte [ebp + 0x1f], 1
mov edi, dword [edi]
mov eax, dword [edi]
test eax, eax
je 0x427fba
push esi
push ebx
push eax
call fcn.00548090
add esp, 0xc
test eax, eax
jne 0x427f8c
mov eax, dword [edi]
cmp byte [eax + esi], 0x3d
je 0x427f96
mov eax, dword [edi + 4]
add edi, 4
test eax, eax
jne 0x427f75
test eax, eax
je 0x427fba
cmp byte [ebp + 0x1f], 0
jne 0x427fac
push ebx
push edi
call fcn.004218a0
add esp, 8
jmp 0x427fce
push edi
push dword [ebp - 0x14]
call fcn.0043cf60
add esp, 8
jmp 0x427fce
cmp byte [ebp + 0x1f], 0
jne 0x427fce
push 0
push ebx
push dword [ebp - 0x14]
call fcn.0043c820
add esp, 0xc
mov ebx, dword [ebp + 0xc]
add ebx, 4
mov dword [ebp + 0xc], ebx
jne 0x427f20
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
push 0
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.0043bbf0
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.00428240
add esp, 0x28
mov esi, eax
pop ebx
test esi, esi
jne 0x42802a
mov eax, dword [ebp - 0xc]
push dword [eax]
push str.failed_CreateProcess__s_:__m
push 0x360003
call fcn.00424200
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
call fcn.00443880
add esp, 4
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret