Function at 0x43db30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da920
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x540c80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov eax, dword [0x5406d8]
mov ecx, 0x5406d8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
mov eax, dword [0x5406d8]
mov ecx, 0x5406d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x10]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
je 0x43dbe8
push 0x52524c
lea edx, [ebp + 0x10]
lea ecx, [ebp - 0x14]
call fcn.00418660
add esp, 4
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x24]
call fcn.004026b0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43dbe8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0043c180
test al, al
je 0x43dcca
cmp edi, reloc.OLEAUT32.dll_SysReAllocString
je 0x43dcca
mov edx, dword [ebp - 0x18]
push 1
lea ecx, [ebp - 0x20]
call fcn.0043cec0
add esp, 4
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.0040f160
add esp, 4
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x1c]
call fcn.004026b0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43dc51
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43dc71
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43dcaa
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x43dcb4
push dword [ebp - 0x14]
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.0043e470
mov esi, dword [ebp - 0x1c]
add esp, 8
mov edx, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x30]
call fcn.0043cec0
add esp, 4
mov byte [ebp - 4], 0xb
push eax
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.0040f160
add esp, 4
mov byte [ebp - 4], 0xc
mov edx, dword [eax]
lea ecx, [esi - 0x10]
lea eax, [edx - 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ecx
cmp eax, ecx
je 0x43dd4d
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x43dd3e
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x43dd3e
mov ecx, dword [ebp - 0x20]
call fcn.004028c0
mov dword [ebp - 0x20], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x43dd36
mov esi, dword [ebp - 0x18]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
jmp 0x43dd4d
push dword [edx - 0xc]
lea ecx, [ebp - 0x1c]
push edx
call fcn.00402790
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43dd6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43dd8d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43ddc3
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x43ddcc
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x18]
push eax
push 0x2001f
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43dde9
mov byte [ebp - 0xd], 0
jmp 0x43de1d
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
lea eax, [eax*2 + 2]
push eax
mov eax, dword [ebp - 0x2c]
push ecx
push 1
push 0
push dword [eax]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete byte [ebp - 0xd]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43de3d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43de5a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0x10]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x43de7b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret