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

Disassembly:
push 0xffffffffffffffff
push 0x1001c135
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x100531b0]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100531b0]
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 0x10055708
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 [0x10055490]
cmp eax, edi
jne 0x100010a5
call fcn.10001420
mov dword [0x10055490], eax
mov ecx, dword [eax + 0x11c]
cmp ecx, edi
je 0x100010bb
mov edx, dword [eax + 0xc8]
mov dword [esp + 0x24], edx
jmp 0x100010bf
mov dword [esp + 0x24], edi
cmp ecx, edi
je 0x100010cf
mov edx, dword [eax + 0x108]
mov dword [esp + 0x20], edx
jmp 0x100010d3
mov dword [esp + 0x20], edi
cmp ecx, edi
je 0x100010e3
mov eax, dword [eax + 0x114]
mov dword [esp + 0x18], eax
jmp 0x100010e7
mov dword [esp + 0x18], edi
cmp dword [esp + 0x24], edi
je 0x10001230
cmp dword [esp + 0x20], edi
je 0x10001230
cmp dword [esp + 0x18], edi
je 0x10001230
mov eax, dword [esi]
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x14], edi
je 0x10001137
push eax
call fcn.1000cddf
mov edi, eax
add esp, 4
test edi, edi
jne 0x10001137
push 0x10055708
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [edi + 8]
jmp 0x10001257
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 0x10001214
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 0x10001214
test edi, edi
je 0x10001221
cmp dword [ebx], 2
jne 0x10001203
mov ebx, dword [sym.imp.SHLWAPI.dll_StrChrW]
push 0x25
push edi
call ebx
mov esi, eax
test esi, esi
je 0x100011ff
push 0x25
add esi, 2
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x100011ff
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x3e]
push eax
mov word [esp + 0x40], dx
call fcn.1000e5e0
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.10001290
add esp, 0x10
jmp 0x10001214
mov esi, dword [esp + 0x28]
mov edx, dword [esi]
mov eax, dword [esp + 0x14]
push edx
push edi
push eax
call fcn.10011c20
add esp, 0xc
test edi, edi
je 0x10001221
push edi
call fcn.1000d49d
add esp, 4
push 0x10055708
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebp
jmp 0x10001257
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 0x10055708
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.1000d1af
add esp, 0x238
ret 0xc