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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x4c
mov dword [ebp - 0x2c], eax
test byte [0x413034], 8
jne 0x406a10
mov eax, dword [0x416220]
lea edx, [ebx + 0x8c]
mov ecx, 0x10
mov edi, edx
mov dword [ebx], eax
mov eax, dword [0x416224]
mov dword [ebx + 4], eax
mov eax, dword [0x416228]
mov dword [ebx + 8], eax
mov eax, dword [0x41622c]
mov dword [ebx + 0xc], eax
mov eax, dword [0x416230]
mov dword [ebx + 0x10], eax
mov eax, dword [0x416234]
mov dword [ebx + 0x14], eax
mov eax, dword [0x416238]
mov dword [ebx + 0x18], eax
mov eax, dword [0x41623c]
mov dword [ebx + 0x1c], eax
mov eax, dword [0x416240]
mov dword [ebx + 0x20], eax
mov eax, dword [0x416244]
mov dword [ebx + 0x24], eax
mov eax, dword [0x416248]
mov dword [ebx + 0x28], eax
mov eax, dword [0x41624c]
mov dword [ebx + 0x2c], eax
mov eax, dword [0x416250]
mov dword [ebx + 0x30], eax
mov eax, dword [0x416254]
mov dword [ebx + 0x34], eax
mov eax, dword [0x416258]
mov dword [ebx + 0x38], eax
mov eax, dword [0x41625c]
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 - 0x20]
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], 0x415af6
mov dword [esp], 0x80000001
call edi
sub esp, 0xc
test eax, eax
je 0x406a80
test byte [0x413034], 8
jne 0x406a40
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 0x40687b
mov eax, ebx
call sym._debugstr_config
mov dword [esp + 0xc], 0x4159ac
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 - 0x20]
mov edx, ebx
call sym._load_registry_key
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x406af0
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call edi
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 0xc
test eax, eax
jne 0x406ad8
test byte [0x413034], 8
jne 0x406b00
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call sym._load_registry_key
mov eax, dword [ebp - 0x1c]
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call edi
sub esp, 4
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call edi
sub esp, 4
jmp 0x4069fa
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x406ad8
mov eax, dword [ebp - 0x2c]
shr eax, 0x10
je 0x406b5e
mov esi, dword [ebp - 0x2c]
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 0x406b31
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 0x406abd
movzx esi, word [ebp - 0x2c]
mov dword [esp], str._04x
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf_1
jmp 0x406b31