Function at 0x77cb32d4
Capabilities:
Query environment variable

Disassembly:
lea eax, [ebp - 0x24]
push eax
call fcn.77cc7890
jmp 0x77cb3348
mov dword [ebp + 0xc], ebx
jmp 0x77cb3837
mov dword [ebp + 8], 0xd
jmp 0x77cb333f
cmp dword [ebp - 0x20], 2
je 0x77cb3864
jmp 0x77cd7830
mov esi, 0x77d1a580
push esi
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
push dword [ebp - 0x28]
call fcn.77cc7d61
push esi
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
jmp 0x77cb3351
cmp edi, ebx
je 0x77c9e17a
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x77c9e178
cmp dword [edi], ecx
jb 0x77c9e178
mov word [eax], bx
mov dword [edi], ecx
mov dword [ebp + 8], ebx
jmp 0x77cb3870
mov dword [ebp - 0x1c], esi
jmp 0x77cb3827
push 0x18
push 0x77cb3360
call fcn.77cc73d0
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
cmp dword [ebp + 8], 0x80000004
je 0x77cd77e0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.77cc741a
mov esi, eax
cmp esi, ebx
je 0x77cd77e8
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x77ca9195
cmp word [eax], bx
je 0x77ca9195
lea ecx, [ebp - 0x1c]
push ecx
push 1
push ebx
push eax
push esi
call sym.ADVAPI32.dll_RegOpenKeyExW
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x77cb3827
cmp dword [ebp - 0x24], ebx
jne 0x77c81ca6
cmp dword [ebp - 0x28], ebx
jne 0x77c9e146
mov eax, dword [ebp + 8]
call fcn.77cc73b0
ret 0x10
mov edi, dword [ebp + 0x14]
cmp edi, ebx
je 0x77c81cb4
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
call sym.ADVAPI32.dll_RegQueryValueExW
mov dword [ebp + 8], eax
cmp dword [ebp - 0x1c], esi
jne 0x77cb3901
cmp dword [ebp + 8], ebx
jne 0x77cb3864
cmp dword [ebp - 0x20], 1
jne 0x77c95ff4
push 2
pop ecx
cmp dword [ebp + 8], ecx
je 0x77c9e166
cmp dword [ebp + 8], ebx
jne 0x77cb333f
cmp dword [ebp - 0x20], ecx
jne 0x77cb333f
cmp edi, ebx
je 0x77c81cbc
cmp dword [ebp + 0x10], ebx
je 0x77c81cbc
mov esi, dword [edi]
cmp dword [ebp + 0xc], esi
jle 0x77cb389d
mov esi, dword [ebp + 0xc]
mov eax, dword fs:[0x18]
push esi
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
je 0x77cd783c
push dword [edi]
push dword [ebp + 0x10]
push ebx
call sub.ntdll.dll_memcpy
add esp, 0xc
shr esi, 1
push esi
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp + 0xc]
shr ecx, 1
cmp eax, ecx
jg 0x77cd7848
mov dword [edi], eax
push ebx
push 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ebx, ebx
jmp 0x77cb333f
test byte [ebp - 0x1c], 1
jne 0x77cd77f4
lea eax, [ebp - 0x1c]
push eax
call fcn.77cc7890
jmp 0x77cb3855
push 6
pop eax
jmp 0x77cb3354
mov dword [ebp + 8], 6
jmp 0x77cb333f
push 0xfffffffffffffffe
pop esi
and dword [ebp - 0x1c], esi
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.77d059d8
mov dword [ebp - 4], esi
jmp 0x77cb3855
mov dword [ebp + 8], 0xd
jmp 0x77cb3864
mov dword [ebp + 8], 8
jmp 0x77cb38fa
mov dword [ebp + 8], 0xea
jmp 0x77cb38e3