Function at 0x405b70
Capabilities:
Access peb ldr_data
Get process heap flags

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, 0x28
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
cmp eax, 0x4e
je 0x405bf0
cmp eax, 0x111
je 0x405bd0
cmp eax, 0x18
je 0x405bb0
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp], ebx
call sym._set_window_title
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov edi, edx
xor eax, eax
shr edi, 0x10
jne case.default.0x405be4
sub edx, 0x2329
cmp edx, 4
ja case.default.0x405be4
jmp dword [edx*4 + 0x418754]
xor eax, eax
cmp dword [ecx + 8], 0xffffff38
jne case.default.0x405be4
mov eax, dword [0x415a44]
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.csmt
mov dword [esp + 4], str.Direct3D
mov dword [esp], eax
call sym._get_reg_key
test eax, eax
je 0x406067
xor edx, edx
cmp word [eax], 0
setne dl
mov esi, edx
mov edx, dword fs:[0x18]
mov dword [esp + 8], eax
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov eax, dword [sym.imp.user32.dll_CheckDlgButton]
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], 0x2329
mov dword [esp], ebx
mov dword [ebp - 0x1c], eax
call eax
sub esp, 0xc
mov dword [esp], str.DXVA2
call sym._keypath
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [0x415a44]
mov dword [esp + 8], str.backend
mov dword [esp], eax
call sym._get_reg_key
mov esi, eax
test eax, eax
je 0x406060
mov dword [esp + 4], 0x41869c
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscmp]
xor ecx, ecx
test eax, eax
sete cl
mov edx, dword fs:[0x18]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x24], ecx
mov dword [esp], eax
call edi
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x232a
mov dword [esp], ebx
call eax
sub esp, 0xc
mov dword [esp], str.DirectSound
call sym._keypath
mov dword [esp + 0xc], 0x4186a6
mov dword [esp + 4], eax
mov eax, dword [0x415a44]
mov dword [esp + 8], str.EAXEnabled
mov dword [esp], eax
call sym._get_reg_key
movzx esi, word [eax]
and esi, 0xffffffdf
cmp si, 0x59
sete cl
cmp si, 0x54
sete dl
mov esi, edx
mov edx, dword [ebp - 0x20]
or esi, ecx
cmp word [eax], 0x31
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
sete cl
or esi, ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov eax, esi
sub esp, 0xc
movzx esi, al
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x232b
mov dword [esp], ebx
call eax
sub esp, 0xc
mov dword [esp], 0x418718
call sym._keypath
mov dword [esp + 0xc], 0x4186a6
mov dword [esp + 4], eax
mov eax, dword [0x415a44]
mov dword [esp + 8], str.HideWineExports
mov dword [esp], eax
call sym._get_reg_key
movzx esi, word [eax]
and esi, 0xffffffdf
cmp si, 0x54
sete cl
cmp si, 0x59
sete dl
mov esi, edx
mov edx, dword [ebp - 0x20]
or esi, ecx
cmp word [eax], 0x31
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
sete cl
or esi, ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov eax, esi
sub esp, 0xc
movzx esi, al
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x232c
mov dword [esp], ebx
call eax
sub esp, 0xc
mov dword [esp], 0x418718
call sym._keypath
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [0x415a44]
mov dword [esp + 8], str.ThemeEngine
mov dword [esp], eax
call sym._get_reg_key
mov esi, eax
test eax, eax
je 0x406059
mov dword [esp + 4], 0x4186aa
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
xor edx, edx
test eax, eax
sete dl
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 8], edx
mov dword [esp + 4], 0x232d
mov dword [esp], ebx
call eax
sub esp, 0xc
jmp 0x405ba0
mov dword [esp + 4], 0x232c
mov esi, 0x4186a2
mov dword [esp], ebx
call dword [sym.imp.user32.dll_IsDlgButtonChecked]
sub esp, 8
cmp eax, 1
mov eax, 0x4186a6
mov dword [esp], 0x418718
cmovne esi, eax
call sym._keypath
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.HideWineExports
mov dword [esp + 4], eax
mov eax, dword [0x415a44]
mov dword [esp], eax
call sym._set_reg_key
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetParent]
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x468
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, 1
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 4], 0x232b
mov esi, 0x4186a2
mov dword [esp], ebx
call dword [sym.imp.user32.dll_IsDlgButtonChecked]
sub esp, 8
cmp eax, 1
mov eax, 0x4186a6
mov dword [esp], str.DirectSound
cmovne esi, eax
call sym._keypath
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.EAXEnabled
jmp 0x405ee4
mov dword [esp + 4], 0x232a
mov esi, 0x41869c
mov dword [esp], ebx
call dword [sym.imp.user32.dll_IsDlgButtonChecked]
sub esp, 8
cmp eax, 1
mov eax, 0
mov dword [esp], str.DXVA2
cmovne esi, eax
call sym._keypath
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.backend
jmp 0x405ee4
mov dword [esp], ebx
mov dword [esp + 4], 0x2329
call dword [sym.imp.user32.dll_IsDlgButtonChecked]
sub esp, 8
cmp eax, 1
sete al
mov dword [esp + 8], str.csmt
movzx eax, al
mov dword [esp + 4], str.Direct3D
mov dword [esp + 0xc], eax
mov eax, dword [0x415a44]
mov dword [esp], eax
call sym._set_reg_key_dword
jmp 0x405ef5
mov dword [esp + 4], 0x232d
mov esi, 0x4186aa
mov dword [esp], ebx
call dword [sym.imp.user32.dll_IsDlgButtonChecked]
sub esp, 8
cmp eax, 1
mov eax, 0
mov dword [esp], 0x418718
cmovne esi, eax
call sym._keypath
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.ThemeEngine
jmp 0x405ee4
xor edx, edx
jmp 0x405e63
xor ecx, ecx
jmp 0x405cc5
mov esi, 1
jmp 0x405c33