Function at 0x411830
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499190
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4cb070]
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 esi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x34], xmm0
mov edi, closesocket
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], vtable.Registry.0
mov dword [ebp - 0x30], closesocket
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x411893
mov eax, dword [esi]
jmp 0x411895
mov eax, esi
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0xf013f
push 1
push 0
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
cmove edi, dword [ebp - 0x3c]
cmp dword [esi + 0x14], 8
jb 0x4118c4
mov esi, dword [esi]
lea eax, [ebp - 0x3c]
push eax
push 0x20006
push 0
push esi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov edx, 0x4ae8c0
mov eax, str.Flase
cmove edi, dword [ebp - 0x3c]
cmp byte [ebx + 4], 0
mov dword [ebp - 0x2c], edi
cmove edx, eax
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411900
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.Enabled
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push ecx
lea eax, [ebx + 8]
mov word [ebp - 0x28], cx
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
call fcn.0040a610
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
push 2
xor eax, eax
mov dword [ebp - 0x58], 7
push 0x4af538
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x6c], ax
call fcn.0040a9c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
push 1
xor eax, eax
mov dword [ebp - 0x40], 7
push 0x4ae80c
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], ax
call fcn.0040a9c0
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x28]
call fcn.004467f0
mov eax, dword [ebp - 0x40]
add esp, 4
cmp eax, 8
jb 0x4119c4
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.0040aba0
xor eax, eax
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x44], 0
cmp eax, 8
jb 0x4119ed
inc eax
lea ecx, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
call fcn.0040aba0
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411a00
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.File
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x411a3d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040aba0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
test edi, edi
je 0x411a5c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.00459a5d
mov esp, ebp
pop ebp
ret 4