Function at 0x70dffa58
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
cmp word [eax + 2], 0
je 0x70dffb4d
mov edx, 0xa
mov word [eax], dx
jmp 0x70dffb4d
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70e6deae
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x22c], eax
xor ecx, ecx
mov eax, 0x101
mov edx, 2
mul edx
seto cl
mov dword [ebp - 0x224], 0x100
neg ecx
or ecx, eax
push ecx
call fcn.70df39ac
mov edi, eax
add esp, 4
mov dword [ebp - 0x230], edi
mov edx, dword [ebp - 0x22c]
lea eax, [ebp - 0x224]
push eax
push edi
lea ecx, [ebp - 0x228]
push ecx
xor esi, esi
push esi
mov dword [ebp - 4], esi
mov eax, dword [ebx]
push edx
push eax
mov dword [ebp - 0x228], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x70e02143
cmp eax, 0xea
mov eax, dword [ebp - 0x228]
sete cl
cmp eax, 1
je 0x70dffb1e
cmp eax, 2
je 0x70dffb1e
cmp eax, 7
jne 0x70e02184
test cl, cl
jne 0x70e021b0
cmp eax, 2
je 0x70e02230
cmp eax, 7
jne 0x70dffb5e
mov edx, dword [ebp - 0x224]
shr edx, 1
xor ecx, ecx
dec edx
mov eax, edi
je 0x70dffb5e
cmp word [eax], 0
je 0x70dffa40
mov edx, dword [ebp - 0x224]
shr edx, 1
inc ecx
dec edx
add eax, 2
cmp ecx, edx
jb 0x70dffb43
mov edx, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x224]
xor eax, eax
push edx
mov word [edi + ecx*2 + 2], ax
call fcn.70df3e38
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.70df3455
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.70df25ed
mov esp, ebp
pop ebp
ret 8
cmp eax, 0xea
je 0x70dffb02
mov ecx, eax
cmp eax, esi
jle 0x70e02160
and ecx, 0xffff
or ecx, 0x80070000
mov dword [ebp - 0x21c], ecx
push 0x70e77870
lea ecx, [ebp - 0x220]
push ecx
mov dword [ebp - 0x220], 0x70e0795c
mov dword [ebp - 0x18], eax
call fcn.70e610ef
push 0x70e77870
lea edx, [ebp - 0x220]
push edx
mov dword [ebp - 0x21c], 0x80070001
mov dword [ebp - 0x220], 0x70e0795c
mov dword [ebp - 0x18], 1
call fcn.70e610ef
mov eax, dword [ebp - 0x224]
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.70df39ac
mov esi, eax
add esp, 4
cmp edi, esi
je 0x70e021e9
push edi
call fcn.70df3455
mov edi, esi
add esp, 4
mov dword [ebp - 0x230], edi
mov edx, dword [ebp - 0x22c]
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebx]
push edi
lea ecx, [ebp - 0x228]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x70e02219
cmp eax, 0xea
jne 0x70e022e7
cmp eax, 0xea
sete al
test al, al
jne 0x70e021b0
mov eax, dword [ebp - 0x228]
jmp 0x70dffb26
mov eax, dword [ebp - 0x224]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.70df39ac
mov esi, eax
add esp, 4
mov dword [ebp - 0x238], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x224]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
cmp ebx, dword [ebp - 0x224]
jbe 0x70e022af
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.70df39ac
add esp, 4
mov dword [ebp - 0x22c], eax
cmp esi, eax
je 0x70e022a6
push esi
call fcn.70df3455
mov esi, dword [ebp - 0x22c]
add esp, 4
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x238], 0
cmp edi, esi
je 0x70e022ce
push edi
call fcn.70df3455
mov edi, esi
add esp, 4
mov dword [ebp - 0x230], edi
push 0
mov byte [ebp - 4], 0
call fcn.70df3455
mov eax, dword [ebp - 0x228]
add esp, 4
jmp 0x70dffb2f
mov ecx, eax
test eax, eax
jg 0x70e02154
jmp 0x70e02160