Function at 0x401e50
Capabilities:
Set registry value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
lea eax, [esp + 0x4c]
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 dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
je 0x401ec0
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x14], 4
xor edi, edi
mov ebx, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Xpos
add eax, 0x64
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call ebx
sub esp, 0x18
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Ypos
add eax, 0x68
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call ebx
sub esp, 0x18
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Difficulty
add eax, 0x154
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call ebx
sub esp, 0x18
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Height
add eax, 0x7c
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call ebx
sub esp, 0x18
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Width
sub eax, 0xffffff80
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call ebx
sub esp, 0x18
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40607a
add eax, 0x84
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call ebx
sub esp, 0x18
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Mark
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call ebx
sub esp, 0x18
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x3c], ebx
lea esi, [esp + 0x50]
lea ebp, [esp + 0x9e]
add eax, 0x88
mov ebx, eax
add edi, 1
mov dword [esp + 4], str.Name_u
mov dword [esp + 8], edi
mov dword [esp], esi
call dword [sym.imp.user32.dll_wsprintfW]
lea eax, [esp + 0x60]
mov edx, ebx
jmp 0x4020ae
add eax, 2
add edx, 2
mov word [eax - 2], cx
cmp eax, ebp
je 0x4020b6
movzx ecx, word [edx]
test cx, cx
jne 0x4020a0
xor edx, edx
mov word [eax], dx
cmp word [esp + 0x60], 0
je 0x4021d0
lea eax, [esp + 0x60]
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x4020d0
lea edx, [esp + 0x60]
sub eax, edx
add eax, 2
mov dword [esp + 0x14], eax
lea eax, [esp + 0x60]
add ebx, 0x40
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
call eax
sub esp, 0x18
cmp edi, 3
jne 0x40207c
mov eax, dword [esp + 0xc0]
xor ebp, ebp
mov ebx, dword [esp + 0x3c]
lea edi, [eax + 0x148]
add ebp, 1
mov dword [esp + 4], str.Time_u
mov dword [esp + 8], ebp
mov dword [esp], esi
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [esp + 0x4c]
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], esi
mov dword [esp], eax
call ebx
sub esp, 0x18
cmp ebp, 3
jne 0x402131
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test byte [section..data], 8
je 0x401eae
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 fcn.00401760
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x4020e2