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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008adfd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x100d0040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov edx, dword [edi + 0x2c]
push ecx
push edx
mov eax, dword [edx]
call dword [eax + 0x34]
mov esi, eax
test esi, esi
js 0x100044bc
mov eax, dword [ebp - 0x14]
lea edx, [edi + 0x164]
push edx
push 0x100bb9d8
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
js 0x100044bc
mov ecx, dword [edi + 0x164]
lea edx, [ebp - 0x28]
xorps xmm0, xmm0
mov eax, 3
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x10]
mov esi, eax
test esi, esi
js 0x100044bc
cmp word [ebp - 0x28], 3
jne 0x10004386
mov ecx, dword [ebp - 0x20]
mov eax, ecx
and eax, 0xff000000
cmp eax, 0xfc000000
je 0x10004378
cmp dword [0x100d55b4], 7
lea ecx, [ebp - 0x10]
push ecx
push 0x20119
mov eax, 0x100d55a0
cmova eax, dword [0x100d55a0]
push 0
push eax
push reloc.d2d1.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000430b
cmp dword [0x100d556c], 7
lea edx, [ebp - 0x18]
push edx
lea ecx, [edi + 0x218]
mov dword [ebp - 0x18], 4
push ecx
push 0
mov eax, 0x100d5558
cmova eax, dword [0x100d5558]
push 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10004465
cmp dword [0x100d55b4], 7
lea ecx, [ebp - 0x18]
push ecx
push 0x20106
mov eax, 0x100d55a0
lea esi, [edi + 0x218]
cmova eax, dword [0x100d55a0]
push 0
push eax
push reloc.d2d1.dll_Ordinal_1
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000446e
cmp dword [0x100d556c], 7
mov eax, 0x100d5558
push 4
cmova eax, dword [0x100d5558]
push esi
push 4
push 0
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000446e
mov dword [edi + 0x218], ecx
mov ch, byte [ebp - 0x20]
jmp 0x1000448d
cmp dword [0x100d55b4], 7
lea ecx, [ebp - 0x18]
push ecx
mov eax, 3
mov word [ebp - 0x28], ax
mov eax, 0x100d55a0
cmova eax, dword [0x100d55a0]
push 0x20119
push 0
push eax
push reloc.d2d1.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100043ff
cmp dword [0x100d556c], 7
lea edx, [ebp - 0x10]
push edx
lea ecx, [edi + 0x218]
mov dword [ebp - 0x10], 4
push ecx
push 0
mov eax, 0x100d5558
cmova eax, dword [0x100d5558]
push 0
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10004465
cmp dword [0x100d55b4], 7
lea ecx, [ebp - 0x18]
push ecx
push 0x20106
mov eax, 0x100d55a0
lea esi, [edi + 0x218]
cmova eax, dword [0x100d55a0]
push 0
push eax
push reloc.d2d1.dll_Ordinal_1
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000446e
cmp dword [0x100d556c], 7
mov eax, 0x100d5558
push 4
cmova eax, dword [0x100d5558]
push esi
push 4
push 0
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000446e
lea esi, [edi + 0x218]
mov dword [ebp - 0x10], esi
mov ecx, dword [edi + 0x164]
lea edx, [ebp - 0x28]
mov eax, dword [esi]
push edx
push dword [edi + 0x30]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ch, byte [eax]
mov edx, dword [edi + 0x1f0]
mov cl, ch
mov eax, edx
or edx, 1
and eax, 0xfffffffe
and cl, 1
cmove edx, eax
test ch, 2
je 0x100044b0
or edx, 0x100000
jmp 0x100044b6
and edx, 0xffefffff
mov dword [edi + 0x1f0], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100044d0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret