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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424486
mov eax, dword fs:[0]
push eax
sub esp, 0x870
mov eax, dword [0x42f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.DUID
lea ecx, [ebp - 0x860]
call fcn.00410c80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x874]
cmp dword [0x42fce4], 8
mov eax, 0x42fcd0
push ecx
cmovae eax, dword [0x42fcd0]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x84c], 8
lea ecx, [ebp - 0x82c]
push ecx
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x830], 1
push ecx
lea ecx, [ebp - 0x830]
mov dword [ebp - 0x82c], 0x800
push ecx
lea eax, [ebp - 0x860]
cmovae eax, dword [ebp - 0x860]
push 0
push eax
push dword [ebp - 0x874]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40dcb3
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dc43
mov eax, dword [0x42f090]
sub ecx, edx
sar ecx, 1
cmp ecx, eax
ja 0x40dc8f
cmp eax, 8
mov dword [0x42f08c], ecx
lea esi, [ecx + ecx]
mov edi, 0x42f07c
cmovae edi, dword [0x42f07c]
lea eax, [ebp - 0x810]
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x40decd
lea eax, [ebp - 0x810]
mov byte [ebp - 0x878], 0
push eax
push dword [ebp - 0x878]
push ecx
mov ecx, 0x42f07c
call fcn.004166b0
jmp 0x40decd
lea eax, [ebp - 0x870]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x870]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringA]
mov edx, dword [ebp - 0x878]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x838], 0
movups xmmword [ebp - 0x848], xmm0
mov dword [ebp - 0x834], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dd00
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x848]
call fcn.00416400
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x848]
cmp dword [ebp - 0x834], 0x10
mov eax, dword [ebp - 0x838]
cmovae ecx, dword [ebp - 0x848]
add eax, ecx
cmp dword [ebp - 0x834], 0x10
lea ecx, [ebp - 0x848]
cmovae ecx, dword [ebp - 0x848]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x828]
call fcn.00415280
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x874]
cmp dword [0x42fce4], 8
mov eax, 0x42fcd0
push ecx
cmovae eax, dword [0x42fcd0]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40de38
cmp dword [ebp - 0x814], 8
lea edx, [ebp - 0x828]
mov eax, dword [ebp - 0x818]
lea ecx, [ebp - 0x860]
cmovae edx, dword [ebp - 0x828]
cmp dword [ebp - 0x84c], 8
cmovae ecx, dword [ebp - 0x860]
add eax, eax
push eax
push edx
push 1
push 0
push ecx
push dword [ebp - 0x874]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40de38
cmp dword [ebp - 0x814], 8
lea ecx, [ebp - 0x828]
mov edi, dword [ebp - 0x818]
cmovae ecx, dword [ebp - 0x828]
mov eax, dword [0x42f090]
cmp edi, eax
ja 0x40de1f
cmp eax, 8
mov dword [0x42f08c], edi
lea eax, [edi + edi]
mov esi, 0x42f07c
cmovae esi, dword [0x42f07c]
push eax
push ecx
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x40de38
push ecx
mov byte [ebp - 0x87c], 0
mov ecx, 0x42f07c
push dword [ebp - 0x87c]
push edi
call fcn.004166b0
mov ecx, dword [ebp - 0x814]
cmp ecx, 8
jb 0x40de74
mov edx, dword [ebp - 0x828]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40de6a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40debd
push ecx
push edx
call fcn.004228bd
add esp, 8
mov ecx, dword [ebp - 0x834]
xor eax, eax
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
cmp ecx, 0x10
jb 0x40decd
mov edx, dword [ebp - 0x848]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40dec3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40dec3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004228bd
add esp, 8
push dword [ebp - 0x874]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x84c]
cmp ecx, 8
jb 0x40df1b
mov edx, dword [ebp - 0x860]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40df11
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40df11
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004228bd
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422454
mov esp, ebp
pop ebp
ret