Function at 0x401dd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x6c]
push ebx
sub esp, 0xac
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20006
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWinMine
mov dword [esp], 0x80000001
call sym._RegCreateKeyExW_36
sub esp, 0x24
test eax, eax
je 0x401e40
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], 4
mov eax, dword [ebp + 8]
xor esi, esi
lea ebx, [ebp - 0x68]
mov dword [esp + 0xc], 4
lea edi, [ebp - 0x1a]
add eax, 0x64
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov dword [esp + 4], str.Xpos
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
mov dword [esp + 0x14], 4
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 4
add eax, 0x68
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov dword [esp + 4], str.Ypos
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
mov dword [esp + 0x14], 4
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 4
add eax, 0x154
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov dword [esp + 4], str.Difficulty
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
mov dword [esp + 0x14], 4
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 4
add eax, 0x7c
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov dword [esp + 4], str.Height
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
mov dword [esp + 0x14], 4
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 4
sub eax, 0xffffff80
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov dword [esp + 4], str.Width
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
mov dword [esp + 0x14], 4
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 4
add eax, 0x84
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x40607a
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
mov dword [esp + 0x14], 4
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.Mark
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, dword [ebp + 8]
sub esp, 0x18
add eax, 0x88
mov dword [ebp - 0x7c], eax
add esi, 1
mov dword [esp + 4], str.Name_u
mov dword [esp + 8], esi
mov dword [esp], ebx
call sym._wsprintfW
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x58]
jmp 0x40200e
add eax, 2
add edx, 2
mov word [eax - 2], cx
cmp eax, edi
je 0x402016
movzx ecx, word [edx]
test cx, cx
jne 0x402000
xor edx, edx
mov word [eax], dx
cmp word [ebp - 0x58], 0
je 0x402120
lea eax, [ebp - 0x58]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402030
lea edx, [ebp - 0x58]
sub eax, edx
add eax, 2
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x58]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call sym._RegSetValueExW_24
add dword [ebp - 0x7c], 0x40
sub esp, 0x18
cmp esi, 3
jne 0x401fdc
mov eax, dword [ebp + 8]
xor esi, esi
lea edi, [eax + 0x148]
add esi, 1
mov dword [esp + 4], str.Time_u
mov dword [esp + 8], esi
mov dword [esp], ebx
call sym._wsprintfW
mov dword [esp + 0x10], edi
add edi, 4
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
cmp esi, 3
jne 0x402086
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
test byte [section..data], 8
je 0x401e2e
mov dword [esp + 0xc], str.Board_has_been_saved._n
mov dword [esp + 8], str.SaveBoard
mov dword [esp + 4], 0x405000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x402041