Function at 0x40e970
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 [0x413080], 8
jne 0x40eb00
mov eax, dword [0x415440]
lea edx, [ebx + 0x8c]
mov ecx, 0x10
mov edi, edx
mov dword [ebx], eax
mov eax, dword [0x415444]
mov dword [ebx + 4], eax
mov eax, dword [0x415448]
mov dword [ebx + 8], eax
mov eax, dword [0x41544c]
mov dword [ebx + 0xc], eax
mov eax, dword [0x415450]
mov dword [ebx + 0x10], eax
mov eax, dword [0x415454]
mov dword [ebx + 0x14], eax
mov eax, dword [0x415458]
mov dword [ebx + 0x18], eax
mov eax, dword [0x41545c]
mov dword [ebx + 0x1c], eax
mov eax, dword [0x415460]
mov dword [ebx + 0x20], eax
mov eax, dword [0x415464]
mov dword [ebx + 0x24], eax
mov eax, dword [0x415468]
mov dword [ebx + 0x28], eax
mov eax, dword [0x41546c]
mov dword [ebx + 0x2c], eax
mov eax, dword [0x415470]
mov dword [ebx + 0x30], eax
mov eax, dword [0x415474]
mov dword [ebx + 0x34], eax
mov eax, dword [0x415478]
mov dword [ebx + 0x38], eax
mov eax, dword [0x41547c]
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 + 0x70], 0x96
mov edi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
movdqu xmm0, xmmword [0x4155d0]
sub esp, 0xc
mov dword [ebx + 0x40], eax
lea eax, [ebp - 0x14]
mov dword [ebx + 0x88], 0x190
movups xmmword [ebx + 0x50], xmm0
movdqu xmm0, xmmword [0x4155e0]
mov dword [ebx + 0x78], 0x19
mov dword [ebx + 0x74], 0x50
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4150b6
mov dword [esp], 0x80000001
movups xmmword [ebx + 0x60], xmm0
call edi
sub esp, 0xc
test eax, eax
je 0x40eb70
test byte [0x413080], 8
jne 0x40eb30
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], 0x413080
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x40e98b
mov eax, ebx
call sym._debugstr_config
mov dword [esp + 0xc], 0x414f6c
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.load_config
mov dword [esp + 4], 0x413080
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 0x40ebe0
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 0x40ebc8
test byte [0x413080], 8
jne 0x40ebf0
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 0x40eaea
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x40ebc8
mov eax, dword [ebp - 0x18]
shr eax, 0x10
je 0x40ec4e
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 0x40ec21
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], 0x413080
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x40ebad
movzx esi, word [ebp - 0x18]
mov dword [esp], str._04x
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf_1
jmp 0x40ec21