Function at 0x1000ef61
Capabilities:
Query environment variable

Disassembly:
test esi, esi
je 0x1000f1da
mov ecx, esi
call fcn.1000c4cf
push ecx
mov ecx, esi
call fcn.1000ec53
jmp 0x1000f1da
mov esi, ebx
jmp 0x1000eff3
push 8
pop edi
jmp 0x1000f1a7
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10041914]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
xor eax, eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x21c], ecx
cmp byte [ecx + 0xd0], al
lea ecx, [ebp - 0x210]
push esi
mov esi, dword [ebp + 0x10]
sete al
dec eax
push ecx
and eax, 0x200
add eax, 0x20019
push eax
push ebx
push edx
push esi
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000f1da
push 0x30
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1000ef4d
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], 5
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
push edi
test esi, esi
je 0x1000ef54
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x24], eax
lea eax, [esi + 0x20]
push eax
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 0x18]
push eax
push dword [ebp - 0x210]
call fcn.1000edc1
mov edi, eax
test edi, edi
jne 0x1000f1bd
lea eax, [esi + 4]
push eax
push 0x1000f08c
push dword [ebp - 0x210]
call fcn.1000ec6f
mov edi, eax
test edi, edi
jne 0x1000f0ac
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], ebx
push eax
push 0x1000f09c
push dword [ebp - 0x210]
call fcn.1000ec6f
mov edi, eax
test edi, edi
jne 0x1000f153
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1002099e
jmp 0x10020994
cmp edi, 2
jne 0x1000f167
lea eax, [esi + 8]
push eax
push 0x1000f0d0
push dword [ebp - 0x210]
call fcn.1000ec6f
mov edi, eax
jmp 0x1000f167
mov ax, word [ecx]
add ecx, edx
cmp ax, bx
jne 0x1000f0dc
sub ecx, dword [ebp - 0x214]
sar ecx, 1
lea eax, [ecx + 1]
xor ecx, ecx
mov dword [ebp - 0x214], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x100209c7
mov edx, dword [ebp - 0x214]
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, eax
call fcn.1000d402
test eax, eax
js 0x100209cf
mov eax, dword [ebp - 0x214]
cmp eax, 1
jbe 0x1000f153
mov ecx, dword [esi]
push 0x5c
pop edx
cmp dx, word [ecx + eax*2 - 4]
je 0x1000f210
cmp dword [ebp - 0x218], ebx
je 0x1000f167
push dword [ebp - 0x218]
call fcn.1000ff4f
pop ecx
test edi, edi
jne 0x1000f1bd
lea eax, [esi + 0xc]
push eax
push 0x1000f1f0
push dword [ebp - 0x210]
call fcn.1000ec6f
lea edi, [eax - 2]
neg edi
sbb edi, edi
and edi, eax
jne 0x1000f1bd
lea eax, [esi + 0x10]
push eax
push 0x1000f1f8
push dword [ebp - 0x210]
call fcn.1000ec6f
mov edi, eax
cmp edi, 2
jne 0x1000f1a7
mov edi, ebx
test edi, edi
jne 0x1000f1bd
mov eax, dword [ebp - 0x21c]
push esi
add eax, 4
push eax
call fcn.1000ebcc
mov ebx, eax
push dword [ebp - 0x210]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1000ef31
test ebx, ebx
je 0x1000ef31
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.10001a60
mov esp, ebp
pop ebp
ret 0x10
xor edx, edx
mov word [ecx + eax*2 - 4], dx
jmp 0x1000f153
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100209a8
cmp eax, 0x104
jbe 0x100209b0
push 8
pop edi
test edi, edi
jne 0x1000f153
lea ecx, [ebp - 0x20c]
lea eax, [ecx + 2]
push 2
mov dword [ebp - 0x214], eax
pop edx
jmp 0x1000f0dc
push 8
pop edi
jmp 0x1000f153
mov ecx, eax
and ecx, 0x1fff0000
cmp ecx, 0x70000
jne 0x100209e7
movzx edi, ax
jmp 0x1000f153
mov edi, eax
jmp 0x1000f153