Function at 0x6514e0c0
Capabilities:
Set registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x58
mov edx, dword [ecx]
mov edi, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
test byte [0x65157018], 8
je 0x6514e14d
xor eax, eax
test ebx, ebx
je 0x6514e0f0
mov eax, dword [ebx]
mov dword [ebp - 0x34], edx
call sym._wine_dbgstr_wn.constprop.0
mov dword [ebp - 0x30], eax
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov eax, edx
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edx
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], str.__s___ld___p___s_____s_n
mov dword [esp + 8], str.localmon_AddPortExW
mov dword [esp + 4], 0x65157018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test esi, esi
je 0x6514e1a0
mov dword [esp + 4], 0x651591a6
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test ebx, ebx
je 0x6514e1a0
test eax, eax
jne 0x6514e1a0
mov eax, dword [ebx]
test eax, eax
je 0x6514e1a0
cmp word [eax], 0
je 0x6514e1a0
cmp edi, 1
je 0x6514e1c0
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x7c
lea esp, [ebp - 0x10]
xor esi, esi
pop ecx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
xor esi, esi
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
lea eax, [ebp - 0x1c]
mov dword [esp + 4], 0x6515b380
mov dword [esp + 8], eax
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x6514e240
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
xor esi, esi
test byte [0x65157018], 8
je 0x6514e1af
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.___u_with__lu_n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.localmon_AddPortExW
mov dword [esp + 4], 0x65157018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6514e1af
mov eax, dword [ebx]
call sym._does_port_exist
test eax, eax
jne 0x6514e2a3
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 0x651591ce
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov ebx, eax
mov eax, dword [ebp - 0x1c]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test ebx, ebx
jne 0x6514e1e5
mov esi, 1
jmp 0x6514e1f4
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test byte [0x65157018], 8
jne 0x6514e2cd
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
jmp 0x6514e1af
mov dword [esp + 0x10], 0x57
mov dword [esp + 0xc], str.__FALSE_with__u_n
mov dword [esp + 8], str.localmon_AddPortExW
mov dword [esp + 4], 0x65157018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6514e2bb