Function at 0x413a60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498517
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4cc06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [vtable.LocalMutex.0]
mov ecx, 0x4cd5f8
call dword [eax + 4]
mov dword [ebp - 4], 0
mov ecx, 0x4cd5f8
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [0x4d01a4]
mov eax, dword [esi + 0x6c]
lea ecx, [esi + 0x6c]
call dword [eax + 4]
lea ebx, [esi + 0x54]
mov dword [ebp - 4], 1
lea ecx, [esi + 0x6c]
mov eax, dword [esi + 0x6c]
call dword [eax + 8]
mov esi, dword [ebp - 0x10]
lea ecx, [esi + 0x84]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ecx]
lea edx, [esi + 0x90]
push edx
mov dword [ebp - 0x24], edx
call dword [eax + 0x18]
mov ecx, ebx
call fcn.00423370
push dword [esi + 0x94]
mov ecx, ebx
call fcn.00423a20
mov dword [ebp - 0x34], vtable.StringStorage.0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 2
push eax
push 1
mov ecx, eax
call fcn.00421760
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4b0eac
push ecx
call fcn.004735c0
add esp, 0xc
mov dword [ebp - 4], 3
xor esi, esi
mov edx, dword [ebx + 8]
sub edx, dword [ebx + 4]
sar edx, 4
xor edi, edi
mov dword [ebp - 0x20], edx
nop word [eax + eax]
mov ecx, dword [ebx + 0x10]
cmp edx, ecx
mov eax, ecx
cmovb eax, edx
cmp esi, eax
jae 0x413bf5
push esi
lea eax, [ebp - 0x34]
push 0x4b3fdc
push eax
call fcn.0043a5e0
mov eax, dword [ebx + 8]
add esp, 0xc
mov ecx, dword [ebx + 4]
sub eax, ecx
sar eax, 4
cmp eax, esi
jbe 0x413cfb
mov eax, dword [ebx + 0x14]
mov edx, dword [ecx + edi + 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x413be9
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x14], ecx
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413bc0
sub eax, dword [ebp - 0x14]
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x20]
inc esi
add edi, 0x10
jmp 0x413b70
cmp edx, ecx
jbe 0x413c00
mov ecx, ebx
call fcn.00423590
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], vtable.StringStorage.0
test ecx, ecx
je 0x413c47
mov eax, dword [ebp - 0x28]
sub eax, ecx
sar eax, 1
lea edx, [eax + eax]
mov eax, ecx
cmp edx, 0x1000
jb 0x413c3d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413d00
push edx
push ecx
call fcn.00471cb1
add esp, 8
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x94]
sub eax, ecx
sar eax, 1
add eax, 0xffffffff
je 0x413ca9
push ecx
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004230d0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 4
lea ebx, [esi + 0x40]
push eax
mov ecx, ebx
call fcn.00422bb0
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], vtable.RegistrySettingsManager.0
test ecx, ecx
je 0x413c99
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebp - 0x1c], vtable.SettingsManager.0
mov dword [ebp - 4], 0xffffffff
jmp 0x413cac
lea ebx, [esi + 0x40]
mov edi, dword [esi + 0xa0]
push 0x38
call fcn.0047217f
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, eax
mov dword [ebp - 4], 6
call fcn.00403570
push dword [ebp - 0x24]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00403760
push ebx
push esi
mov ecx, edi
call fcn.00418060
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00423c40
call fcn.0047d9a1
int3