Function at 0x413cd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499318
mov eax, dword fs:[0]
push eax
sub esp, 0x34
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 dword [ebp - 0x28], ebx
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov edi, closesocket
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], vtable.Registry.0
mov dword [ebp - 0x18], closesocket
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x413d36
mov eax, dword [esi]
jmp 0x413d38
mov eax, esi
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
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 - 0x24]
cmp dword [esi + 0x14], 8
jb 0x413d67
mov esi, dword [esi]
lea eax, [ebp - 0x24]
push eax
push 0x20006
push 0
push esi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push dword [ebx + 0x10]
test eax, eax
mov ecx, ebx
lea eax, [ebp - 0x40]
cmove edi, dword [ebp - 0x24]
push eax
mov dword [ebp - 0x14], edi
call fcn.0040c310
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x413d9f
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413da4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.Compression
push edi
call ebx
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x413de3
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040aba0
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
mov edx, dword [edx + 0x14]
call fcn.0040ab80
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x413dfb
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413e00
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push 0x4af6e4
push edi
call ebx
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x413e39
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040aba0
mov eax, dword [ebp - 0x28]
mov esi, 0x4ae8c0
mov ecx, str.False
mov edx, esi
cmp byte [eax + 0x18], 0
cmove edx, ecx
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x24], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413e57
sub ecx, dword [ebp - 0x24]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.Enabled
push edi
call ebx
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
movsd xmm1, qword [eax + 0x20]
call fcn.0041df80
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x413e96
mov edx, dword [edx]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x24], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413ea0
sub ecx, dword [ebp - 0x24]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.JpegCompressionFactor
push edi
call ebx
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x413eda
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040aba0
mov eax, dword [ebp - 0x28]
cmp byte [eax + 0x28], 0
mov eax, str.False
cmove esi, eax
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413ef0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push esi
push 1
push 0
push str.Resampling
push edi
call ebx
test edi, edi
je 0x413f1f
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