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

Disassembly:
push 0x698
mov eax, 0x1017d37a
call fcn.1015f0f4
mov dword [ebp - 0x69c], ecx
xor ebx, ebx
mov esi, 0x208
push esi
lea eax, [ebp - 0x468]
push ebx
mov dword [ebp - 0x690], ebx
push eax
mov dword [ebp - 0x688], ebx
call sub.MSVCR100.dll_memset
push esi
lea eax, [ebp - 0x670]
push ebx
push eax
call sub.MSVCR100.dll_memset
push 0x200
lea eax, [ebp - 0x260]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0x24
mov esi, 0x100
lea eax, [ebp - 0x260]
cmp byte [ebp + 8], bl
je 0x100934dd
push 0x10012b10
jmp 0x100934e2
push 0x10012b68
push esi
push eax
call fcn.1014b6df
xor edi, edi
inc edi
mov dword [ebp - 0x68c], eax
test eax, eax
jns 0x10093563
push 0x2018
call fcn.1014b6df
pop ecx
mov dword [ebp - 0x694], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x1009351f
push 9
push dword [ebp - 0x68c]
mov ecx, eax
call fcn.10068d04
jmp 0x10093521
mov eax, ebx
mov dword [ebp - 0x684], eax
test eax, eax
je 0x10093534
add eax, 4
mov ecx, edi
lock xadd dword [eax], ecx
lea eax, [ebp - 0x684]
push eax
push 0x10012bb0
push 0x1c9
push 0x100126e4
mov dword [ebp - 4], edi
call fcn.1014b6df
jmp 0x10093554
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x684]
call fcn.10053649
xor eax, eax
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x69c]
push 0x27
lea ecx, [ebp - 0x60]
add eax, 0x10
push ecx
push eax
mov dword [ebp - 0x68c], eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x60]
push eax
push esi
lea eax, [ebp - 0x260]
push eax
call fcn.1014b6df
mov esi, eax
test esi, esi
jns 0x1009360c
push 0x2018
call fcn.1014b6df
pop ecx
mov dword [ebp - 0x694], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x100935c4
push 9
push esi
mov ecx, eax
call fcn.10068d04
jmp 0x100935c6
mov eax, ebx
mov dword [ebp - 0x684], eax
test eax, eax
je 0x100935d9
add eax, 4
mov ecx, edi
lock xadd dword [eax], ecx
lea eax, [ebp - 0x684]
push eax
push 0x10012bb0
push 0x1d0
push 0x100126e4
mov dword [ebp - 4], 3
call fcn.1014b6df
jmp 0x100935fd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x684]
call fcn.10053649
lea eax, [ebp - 0x688]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x260]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10093723
cmp eax, 2
jne 0x10093656
cmp dword [ebp - 0x688], 0
je 0x10093969
push dword [ebp - 0x688]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10093969
cmp dword [ebp - 0x688], 0
je 0x1009366b
push dword [ebp - 0x688]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x2018
call fcn.1014b6df
mov esi, eax
pop ecx
mov dword [ebp - 0x6a0], esi
mov dword [ebp - 4], 4
test esi, esi
je 0x100936b9
lea eax, [ebp - 0x694]
push 0x17a
push eax
call fcn.1014b6df
pop ecx
pop ecx
mov ecx, edi
mov dword [ebp - 0x690], ecx
mov ecx, dword [eax]
mov byte [ebp - 4], 5
call fcn.100b7787
push eax
mov ecx, esi
call fcn.1014b6df
jmp 0x100936bb
mov eax, ebx
mov dword [ebp - 0x684], eax
test eax, eax
je 0x100936ce
add eax, 4
mov ecx, edi
lock xadd dword [eax], ecx
lea eax, [ebp - 0x684]
push eax
push 0x10012bf8
push 0x1e0
push 0x100126e4
mov dword [ebp - 4], 7
call fcn.1014b6df
jmp 0x100936f2
lea ecx, [ebp - 0x684]
mov byte [ebp - 4], 6
call fcn.10053649
mov eax, dword [ebp - 0x690]
or dword [ebp - 4], 0xffffffff
test al, 1
je 0x10093723
and eax, 0xfffffffe
lea ecx, [ebp - 0x694]
mov dword [ebp - 0x690], eax
call fcn.10053649
lea eax, [ebp - 0x6a4]
push eax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x698]
push eax
push ebx
push 0x10012c54
push dword [ebp - 0x688]
mov dword [ebp - 0x6a4], 0x206
mov dword [ebp - 0x698], 7
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1009382a
cmp dword [ebp - 0x688], 0
je 0x1009377b
push dword [ebp - 0x688]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x2018
call fcn.1014b6df
mov esi, eax
pop ecx
mov dword [ebp - 0x6a0], esi
mov dword [ebp - 4], 8
test esi, esi
je 0x100937c8
lea eax, [ebp - 0x694]
push 0x17a
push eax
call fcn.1014b6df
pop ecx
pop ecx
or dword [ebp - 0x690], 2
mov ecx, dword [eax]
mov byte [ebp - 4], 9
call fcn.100b7787
push eax
mov ecx, esi
call fcn.1014b6df
jmp 0x100937ca
mov eax, ebx
mov dword [ebp - 0x684], eax
test eax, eax
je 0x100937dd
add eax, 4
mov ecx, edi
lock xadd dword [eax], ecx
lea eax, [ebp - 0x684]
push eax
push 0x10012bf8
push 0x1ec
push 0x100126e4
mov dword [ebp - 4], 0xb
call fcn.1014b6df
jmp 0x10093801
lea ecx, [ebp - 0x684]
mov byte [ebp - 4], 0xa
call fcn.10053649
mov ecx, dword [ebp - 0x690]
or dword [ebp - 4], 0xffffffff
test cl, 2
je 0x1009382a
lea ecx, [ebp - 0x694]
call fcn.10053649
cmp dword [ebp - 0x688], 0
je 0x1009383f
push dword [ebp - 0x688]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [ebp - 0x698], 2
je 0x10093861
push 0x104
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
push 0x70
call fcn.1014b6df
pop ecx
test eax, eax
je 0x10093876
mov ecx, eax
call fcn.10092249
jmp 0x10093878
mov eax, ebx
mov esi, dword [ebp - 0x69c]
push eax
lea ecx, [esi + 8]
call fcn.1014b6df
cmp dword [esi + 8], 0
jne 0x100938a6
push 0x101c2b08
push 0x10012bb0
push 0x1fc
push 0x100126e4
call fcn.1014b6df
test byte [ebp - 0x698], 2
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x670]
jne 0x100938be
lea eax, [ebp - 0x468]
push eax
call fcn.1014b6df
cmp al, 1
jne 0x10093969
mov esi, dword [ebp - 0x68c]
mov eax, dword [ebp - 0x69c]
mov ecx, dword [eax + 8]
lea edi, [ebp - 0x680]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add eax, 0x20
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x680]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 8]
mov esi, eax
test esi, esi
jns 0x10093969
push 0x2018
call fcn.1014b6df
pop ecx
mov dword [ebp - 0x6a0], eax
mov dword [ebp - 4], 0xc
test eax, eax
je 0x10093921
push 9
push esi
mov ecx, eax
call fcn.10068d04
mov ebx, eax
mov dword [ebp - 0x68c], ebx
test ebx, ebx
je 0x10093936
xor ecx, ecx
lea eax, [ebx + 4]
inc ecx
lock xadd dword [eax], ecx
inc ecx
lea eax, [ebp - 0x68c]
push eax
push 0x10012bb0
push 0x20f
push 0x100126e4
mov dword [ebp - 4], 0xd
call fcn.1014b6df
jmp 0x1009395a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68c]
call fcn.10053649
call fcn.1015f177
ret 4