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

Disassembly:
push 0xffffffffffffffff
push 0x10024275
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x1002e210]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1002e210]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov eax, dword [esp + 0x254]
mov esi, dword [esp + 0x258]
mov ebp, dword [esp + 0x250]
push 0x100769bc
mov dword [esp + 0x30], eax
mov ebx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
mov dword [esp + 0x248], edi
mov eax, dword [0x10076170]
cmp eax, edi
jne 0x100011d5
call fcn.10001650
mov dword [0x10076170], eax
mov ecx, dword [eax + 0x11c]
cmp ecx, edi
je 0x100011eb
mov edx, dword [eax + 0xc8]
mov dword [esp + 0x24], edx
jmp 0x100011ef
mov dword [esp + 0x24], edi
cmp ecx, edi
je 0x100011ff
mov edx, dword [eax + 0x108]
mov dword [esp + 0x20], edx
jmp 0x10001203
mov dword [esp + 0x20], edi
cmp ecx, edi
je 0x10001213
mov eax, dword [eax + 0x114]
mov dword [esp + 0x18], eax
jmp 0x10001217
mov dword [esp + 0x18], edi
cmp dword [esp + 0x24], edi
je 0x10001360
cmp dword [esp + 0x20], edi
je 0x10001360
cmp dword [esp + 0x18], edi
je 0x10001360
mov eax, dword [esi]
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x14], edi
je 0x10001267
push eax
call fcn.10014052
mov edi, eax
add esp, 4
test edi, edi
jne 0x10001267
push 0x100769bc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [edi + 8]
jmp 0x10001387
lea ecx, [esp + 0x1c]
push ecx
push 0xf003f
push 0
push ebp
push 0x80000002
call dword [esp + 0x38]
mov ebp, eax
test ebp, ebp
jne 0x10001344
mov edx, dword [esp + 0x2c]
push esi
push edi
push ebx
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
call dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
push ecx
mov ebp, eax
call dword [esp + 0x1c]
test ebp, ebp
jne 0x10001344
test edi, edi
je 0x10001351
cmp dword [ebx], 2
jne 0x10001333
mov ebx, dword [sym.imp.SHLWAPI.dll_StrChrW]
push 0x25
push edi
call ebx
mov esi, eax
test esi, esi
je 0x1000132f
push 0x25
add esi, 2
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x1000132f
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x3e]
push eax
mov word [esp + 0x40], dx
call fcn.10016010
add esp, 0xc
push 0x104
lea edx, [esp + 0x38]
push edx
xor ecx, ecx
push esi
mov word [ebx], cx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add ebx, 2
push ebx
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x38]
push ecx
xor eax, eax
mov word [esi - 2], ax
mov eax, dword [esp + 0x38]
push edi
push str._s_s_s
call fcn.100014c0
add esp, 0x10
jmp 0x10001344
mov esi, dword [esp + 0x28]
mov edx, dword [esi]
mov eax, dword [esp + 0x14]
push edx
push edi
push eax
call fcn.1001a4c0
add esp, 0xc
test edi, edi
je 0x10001351
push edi
call fcn.10014710
add esp, 4
push 0x100769bc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebp
jmp 0x10001387
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
push esi
push ecx
push ebx
push edx
push ebp
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push 0x100769bc
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.10014422
add esp, 0x238
ret 0xc