Function at 0x4066b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x20
mov dword [ebp - 0x18], eax
test byte [0x413034], 8
jne 0x406860
mov eax, dword [0x416280]
lea edx, [ebx + 0x8c]
mov ecx, 0x10
mov edi, edx
mov dword [ebx], eax
mov eax, dword [0x416284]
mov dword [ebx + 4], eax
mov eax, dword [0x416288]
mov dword [ebx + 8], eax
mov eax, dword [0x41628c]
mov dword [ebx + 0xc], eax
mov eax, dword [0x416290]
mov dword [ebx + 0x10], eax
mov eax, dword [0x416294]
mov dword [ebx + 0x14], eax
mov eax, dword [0x416298]
mov dword [ebx + 0x18], eax
mov eax, dword [0x41629c]
mov dword [ebx + 0x1c], eax
mov eax, dword [0x4162a0]
mov dword [ebx + 0x20], eax
mov eax, dword [0x4162a4]
mov dword [ebx + 0x24], eax
mov eax, dword [0x4162a8]
mov dword [ebx + 0x28], eax
mov eax, dword [0x4162ac]
mov dword [ebx + 0x2c], eax
mov eax, dword [0x4162b0]
mov dword [ebx + 0x30], eax
mov eax, dword [0x4162b4]
mov dword [ebx + 0x34], eax
mov eax, dword [0x4162b8]
mov dword [ebx + 0x38], eax
mov eax, dword [0x4162bc]
mov dword [ebx + 0x3c], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.user32.dll_GetDpiForSystem]
mov dword [ebx + 0x48], 0x19
mov dword [ebx + 0x4c], 1
mov dword [ebx + 0x84], 1
call esi
mov edi, dword [sym.imp.kernel32.dll_MulDiv]
mov dword [esp], 0x10
mov dword [esp + 8], 0x60
mov dword [esp + 4], eax
call edi
sub esp, 0xc
mov dword [ebx + 0x44], eax
call esi
mov dword [esp + 8], 0x60
mov dword [esp + 4], eax
mov dword [esp], 8
call edi
mov dword [ebx + 0x50], 0xf
mov edi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
mov dword [ebx + 0x40], eax
lea eax, [ebp - 0x14]
mov dword [ebx + 0x88], 0x190
mov dword [ebx + 0x54], 0xf5
mov dword [ebx + 0x58], 0x32
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 1
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0x50
mov dword [ebx + 0x70], 0x96
mov dword [ebx + 0x74], 0x50
mov dword [ebx + 0x78], 0x19
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x415b72
mov dword [esp], 0x80000001
call edi
sub esp, 0xc
test eax, eax
je 0x4068d0
test byte [0x413034], 8
jne 0x406890
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.Loading_default_console_settings_n
mov dword [esp + 8], str.load_config
mov dword [esp + 4], 0x413034
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x4066cb
mov eax, ebx
call sym._debugstr_config
mov dword [esp + 0xc], 0x415a28
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.load_config
mov dword [esp + 4], 0x413034
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov edx, ebx
call sym._load_registry_key
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x406940
lea eax, [ebp - 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call edi
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 0xc
test eax, eax
jne 0x406928
test byte [0x413034], 8
jne 0x406950
mov eax, dword [ebp - 0x10]
mov edx, ebx
call sym._load_registry_key
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call edi
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call edi
sub esp, 4
jmp 0x40684a
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x406928
mov eax, dword [ebp - 0x18]
shr eax, 0x10
je 0x4069ae
mov esi, dword [ebp - 0x18]
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x406981
mov eax, esi
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Loading__s_console_settings_n
mov dword [esp + 8], str.load_config
mov dword [esp + 4], 0x413034
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x40690d
movzx esi, word [ebp - 0x18]
mov dword [esp], str._04x
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf_1
jmp 0x406981