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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x4a0]
push eax
push 0x20019
xor edi, edi
push edi
push dword [0x107fde4]
mov dword [ebp - 0x4a4], esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x4a0], edi
mov dword [ebp - 0x4a8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1070ccf
push 0x100edf4
lea eax, [esi + 0xc]
push eax
mov dword [ebp - 0x49c], edi
mov dword [ebp - 0x498], 1
call fcn.010593e7
test eax, eax
jne 0x1070cc3
push 0x100bd78
push esi
call fcn.010593e7
test eax, eax
jne 0x1070cc3
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x498]
push eax
push edi
push 0x1011588
push dword [ebp - 0x4a0]
mov ebx, 0x208
mov dword [ebp - 0x49c], ebx
call esi
test eax, eax
jne 0x1070cc2
cmp dword [ebp - 0x498], 1
jne 0x1070cc2
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x4a4]
add eax, 0x10
push eax
mov word [ebp - 6], di
call fcn.010593e7
test eax, eax
jne 0x1070cc2
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x498]
push eax
push edi
push 0x101156c
push dword [ebp - 0x4a0]
mov dword [ebp - 0x49c], ebx
call esi
test eax, eax
jne 0x1070cc2
cmp dword [ebp - 0x498], 1
jne 0x1070cc2
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x4a4]
add eax, 4
push eax
call fcn.010593e7
test eax, eax
jne 0x1070cc2
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x498]
push eax
push edi
push 0x1011550
push dword [ebp - 0x4a0]
mov dword [ebp - 0x49c], ebx
call esi
test eax, eax
jne 0x1070cc2
cmp dword [ebp - 0x498], 1
jne 0x1070cc2
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x4a4]
add eax, 0x18
push eax
call fcn.010593e7
test eax, eax
jne 0x1070cc2
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x498]
push eax
push edi
push 0x1011508
push dword [ebp - 0x4a0]
mov dword [ebp - 0x49c], ebx
call esi
test eax, eax
jne 0x1070cc2
cmp dword [ebp - 0x498], 1
je 0x1070aa8
cmp dword [ebp - 0x498], 2
jne 0x1070cc2
cmp dword [ebp - 0x498], 2
mov ebx, 0x103
mov esi, 0x1082220
lea eax, [ebp - 0x20c]
jne 0x1070aec
push eax
push ebx
push esi
call fcn.01034c79
lea edi, [ebx + 1]
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1070cc2
push edi
lea eax, [ebp - 0x20c]
jmp 0x1070af1
push 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x1070cc2
mov edi, dword [ebp - 0x4a4]
lea eax, [ebp - 0x20c]
push eax
add edi, 0x1c
push edi
call fcn.010593e7
test eax, eax
jne 0x1070cc2
push dword [edi]
call fcn.01056f43
test eax, eax
je 0x1070b48
push 0x104
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x1070cc2
jmp 0x1070b51
push dword [edi]
push ebx
push esi
call fcn.01034c79
push esi
push 0x100a298
push ebx
push 0x1082630
call fcn.01034d76
add esp, 0x10
push esi
push ebx
push 0x1082428
call fcn.01034c79
push dword [edi]
push 0x100a298
push ebx
push esi
call fcn.01034d76
add esp, 0x10
push dword [edi]
push ebx
push 0x1082838
call fcn.01034c79
push esi
push edi
call fcn.010593e7
test eax, eax
jne 0x1070cc2
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x498]
push eax
push 0
push 0x1011538
push dword [ebp - 0x4a0]
mov dword [ebp - 0x49c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1070cc2
cmp dword [ebp - 0x498], 1
jne 0x1070cc2
cmp word [ebp - 0x20c], 0x20
lea eax, [ebp - 0x20c]
push eax
push dword [edi]
mov ebx, 0x10040c8
mov esi, 0x143
lea eax, [ebp - 0x494]
jne 0x1070c0f
push 0x1004478
jmp 0x1070c10
push ebx
push esi
push eax
call fcn.01034d76
add esp, 0x14
lea eax, [ebp - 0x494]
push eax
mov eax, dword [ebp - 0x4a4]
add eax, 0x14
push eax
call fcn.010593e7
test eax, eax
jne 0x1070cc2
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x498]
push eax
push 0
push 0x1011520
push dword [ebp - 0x4a0]
mov dword [ebp - 0x49c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1070cb8
cmp dword [ebp - 0x498], 1
jne 0x1070cb8
cmp word [ebp - 0x20c], 0x20
lea eax, [ebp - 0x20c]
push eax
push dword [edi]
lea eax, [ebp - 0x494]
jne 0x1070c97
push 0x1004478
jmp 0x1070c98
push ebx
push esi
push eax
call fcn.01034d76
add esp, 0x14
lea eax, [ebp - 0x494]
push eax
mov eax, dword [ebp - 0x4a4]
add eax, 8
push eax
call fcn.010593e7
mov dword [ebp - 0x4a8], 1
pop ebx
push dword [ebp - 0x4a0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4a8]
pop edi
xor ecx, ebp
pop esi
call fcn.01047417
leave
ret 4