Function at 0x417060
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4992e8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
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 edi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov esi, 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 [edi + 0x14], 8
jb 0x4170c3
mov eax, dword [edi]
jmp 0x4170c5
mov eax, edi
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 esi, dword [ebp - 0x24]
cmp dword [edi + 0x14], 8
jb 0x4170f4
mov edi, dword [edi]
lea eax, [ebp - 0x24]
push eax
push 0x20006
push 0
push edi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
lea edx, [ebx + 4]
cmove esi, dword [ebp - 0x24]
cmp dword [edx + 0x14], 8
mov dword [ebp - 0x14], esi
jb 0x41711f
mov edx, dword [edx]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417124
sub ecx, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.Color
push esi
call edi
cmp byte [ebx + 0x1c], 0
mov eax, str.False
mov edx, 0x4ae8c0
cmove edx, eax
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x24], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417167
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 esi
call edi
cmp byte [ebx + 0x1d], 0
mov eax, str.False
mov edx, 0x4ae8c0
cmove edx, eax
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x24], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4171a5
sub ecx, dword [ebp - 0x24]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.FontAsOutline
push esi
call edi
cmp dword [ebx + 0x34], 8
lea edx, [ebx + 0x20]
jb 0x4171d5
mov edx, dword [edx]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x24], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4171e0
sub ecx, dword [ebp - 0x24]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.FontName
push esi
call edi
mov edx, dword [ebx + 0x38]
lea ecx, [ebp - 0x3c]
call fcn.0040ab80
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x41721a
mov edx, dword [edx]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x24], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417222
sub ecx, dword [ebp - 0x24]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.FontOutlineWidth
push esi
call edi
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x41725c
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.0040aba0
movss xmm1, dword [ebx + 0x3c]
lea ecx, [ebp - 0x3c]
call fcn.0041dba0
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x417273
mov edx, dword [edx]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x24], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417280
sub ecx, dword [ebp - 0x24]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.FontSize
push esi
call edi
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x4172ba
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.0040aba0
cmp dword [ebx + 0x54], 8
lea edx, [ebx + 0x40]
jb 0x4172c5
mov edx, dword [edx]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x24], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4172d0
sub ecx, dword [ebp - 0x24]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.PostScriptFontName
push esi
call edi
cmp dword [ebx + 0x6c], 8
lea edx, [ebx + 0x58]
jb 0x417300
mov edx, dword [edx]
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417305
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.StampText
push esi
call edi
test esi, esi
je 0x417334
push esi
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