Function at 0x100397e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10097766
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100c006c]
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 ebx, ecx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x41c], ebx
call fcn.10003080
mov edi, eax
test edi, edi
je 0x10039ae7
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1009c3c4]
mov ecx, edi
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x414], esi
push ecx
mov dword [ebp - 4], 0
mov ecx, esp
push str.CRLog
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x418], 0x400
call fcn.10009810
lea ecx, [ebp - 0x420]
call fcn.1003b330
add esp, 4
test al, al
jne 0x100398ca
lea ecx, [ebp - 0x414]
call fcn.100051d0
mov esi, dword [ebp - 0x414]
add esi, 0xfffffff0
mov ecx, esi
call fcn.1000c040
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10039ac9
mov edi, dword [esi]
push esi
mov edx, dword [edi]
mov esi, dword [edx + 4]
jmp 0x10039abd
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push str.GUID
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003996f
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x414]
push 0x100af434
push eax
call fcn.10023680
add esp, 8
mov edi, esp
mov dword [ebp - 0x41c], edi
mov esi, dword [ebp - 0x414]
lea ecx, [esi - 0x10]
mov dword [ebp - 0x424], ecx
call fcn.1000c040
add eax, 0x10
mov dword [edi], eax
call fcn.10039500
add esp, 4
test al, al
je 0x1003996f
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x424]
mov ecx, esi
call fcn.1000c040
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jmp 0x10039ab3
lea ecx, [ebp - 0x41c]
call fcn.10039710
mov byte [ebp - 4], 1
lea edi, [esi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x424], edi
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x100399f5
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x100399e0
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x100399e0
call fcn.1000c040
mov dword [ebp - 0x42c], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x100399d5
mov edi, dword [edi]
push dword [ebp - 0x424]
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x1009c3c4]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x42c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x414], esi
jmp 0x100399f5
push dword [edx - 0xc]
lea ecx, [ebp - 0x414]
push edx
call fcn.100050e0
mov esi, dword [ebp - 0x414]
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov ecx, dword [ebp - 0x41c]
mov eax, edi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10039a2e
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x1009c3c4]
mov ecx, ebx
call edi
mov ebx, dword [ebp - 0x428]
or edi, 0xffffffff
cmp dword [esi - 4], 1
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x428], eax
jle 0x10039a55
push eax
lea ecx, [ebp - 0x414]
call fcn.10005310
mov esi, dword [ebp - 0x414]
mov eax, dword [ebp - 0x428]
lea eax, [eax*2 + 1]
push eax
mov eax, dword [ebp - 0x420]
push esi
push 1
push 0
push str.GUID
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10039a89
lea ecx, [ebp - 0x414]
call fcn.100051d0
mov esi, dword [ebp - 0x414]
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov ecx, esi
call fcn.1000c040
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x10039ac9
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1009c3c4]
mov ecx, edi
call esi
mov eax, ebx
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.1005771b
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10002e30
int3