Function at 0x428c30
Capabilities:
Link many functions at runtime
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0x15c
push ebx
push ebp
push esi
push str.Loading_Registry_Data....
mov ebp, ecx
call fcn.006e9a00
mov eax, dword [esp + 0x170]
add esp, 4
push eax
lea ecx, [esp + 0x68]
push str.SoftwareBethesda_Softworks_s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [ebp]
add esp, 0xc
lea eax, [esp + 0x64]
push eax
mov ecx, ebp
call dword [edx + 4]
mov edx, dword [ebp]
mov esi, 0x20
mov ecx, ebp
mov dword [ebp + 8], 0x400
mov dword [ebp + 0xc], 0x300
mov dword [ebp + 0x10], esi
call dword [edx + 0x54]
cmp dword [ebp + 0x10], esi
je 0x428ca0
push str.Morrowind_can_only_run_in_32_bit_mode._Run_the_launcher_and_pick_a_new_video_mode.
call fcn.00476e20
add esp, 4
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
xor ebx, ebx
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42934f
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea edx, [esp + 0x10]
push edx
lea eax, [ebp + 0x44]
push eax
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push str.Screen_X
mov edi, 4
push eax
mov dword [esp + 0x28], edi
call esi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
lea eax, [ebp + 0x48]
push eax
push ebx
push ebx
push str.Screen_Y
push edx
mov dword [esp + 0x28], edi
call esi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
lea eax, [ebp + 0x4c]
push eax
push ebx
push ebx
push str.Render_Distance
push edx
mov dword [esp + 0x28], edi
call esi
fld dword [ebp + 0x4c]
fcomp dword [0x7468cc]
fnstsw ax
test ah, 1
je 0x428d3a
mov dword [ebp + 0x4c], 0x451c4000
jmp 0x428d51
fld dword [ebp + 0x4c]
fcomp dword [0x7468c8]
fnstsw ax
test ah, 0x41
jne 0x428d51
mov dword [ebp + 0x4c], 0x45e00000
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0x50]
push ecx
push ebx
push ebx
push str.Master_Volume
push edx
mov dword [esp + 0x28], 1
call esi
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0x51]
push ecx
push ebx
push ebx
push str.Voice_Volume
push edx
mov dword [esp + 0x28], 1
call esi
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0x52]
push ecx
push ebx
push ebx
push str.Effect_Volume
push edx
mov dword [esp + 0x28], 1
call esi
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0x53]
push ecx
push ebx
push ebx
push str.Footsteps_Volume
push edx
mov dword [esp + 0x28], 1
call esi
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0x54]
push ecx
push ebx
push ebx
push str.Media_Volume
push edx
mov dword [esp + 0x28], edi
call esi
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 0x58]
push ecx
push ebx
push ebx
push str.3D_Sound_Quality
push edx
mov dword [esp + 0x28], 1
call esi
mov ecx, dword [0x7c67dc]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
add ecx, 0xe8
push ecx
push ebx
push ebx
push str.Mouse_Sensitivity
push edx
mov dword [esp + 0x28], edi
call esi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edi
push eax
mov ecx, dword [0x7c67dc]
mov edx, dword [esp + 0x18]
add ecx, 0xec
push ecx
push ebx
push ebx
push str.Horizontal_Sensitivity
push edx
call esi
mov ecx, dword [0x7c67dc]
fld dword [ecx + 0xec]
fcomp dword [0x746468]
fnstsw ax
test ah, 0x40
je 0x428e72
mov dword [ecx + 0xec], 0x3b03126f
push str..Morrowind.ini
push ebx
push str.Number_of_Shadows
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [0x7c67dc]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
add ecx, 0x84
push ecx
push ebx
push ebx
push str.Shadows
push edx
mov dword [esp + 0x28], edi
call esi
mov eax, dword [0x7c67dc]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x84]
jae 0x428ecc
mov dword [eax + 0x84], ecx
mov eax, dword [0x7c67dc]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
add eax, 0xe2
push eax
push ebx
push ebx
push str.Use_Best_Attack
push edx
mov dword [esp + 0x28], 1
call esi
mov ecx, dword [0x7c67dc]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
add ecx, 0xe3
push ecx
push ebx
push ebx
push str.Quick_Save_Rest
push edx
mov dword [esp + 0x28], 1
call esi
mov ecx, dword [0x7c67dc]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
add ecx, 0x88
push ecx
push ebx
push ebx
push str.Help_Delay
push edx
mov dword [esp + 0x28], edi
call esi
mov ecx, dword [0x7c67dc]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
add ecx, 0x8c
push ecx
push ebx
push ebx
push str.HUD_Style
push edx
mov dword [esp + 0x28], edi
call esi
mov ecx, dword [0x7c67dc]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
add ecx, 0x90
push ecx
push ebx
push ebx
push str.Menu_Alpha
push edx
mov dword [esp + 0x28], edi
call esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0x7d16dd
push ebx
push ebx
push str.Mouse_Flip_Y
push ecx
mov dword [esp + 0x28], 1
call esi
mov eax, dword [0x7c67dc]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
add eax, 0x94
push eax
push ebx
push ebx
push str.Cursor_Off
push ecx
mov dword [esp + 0x28], edi
call esi
mov eax, dword [0x7c67dc]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
add eax, 0x98
push eax
push ebx
push ebx
push str.AIDistance
push ecx
mov dword [esp + 0x28], edi
call esi
mov eax, dword [0x7c67dc]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
add eax, 0x9c
push eax
push ebx
push ebx
push str.Difficulty
push ecx
mov dword [esp + 0x28], edi
call esi
mov eax, dword [0x7c67dc]
cmp eax, ebx
je 0x42902a
mov ecx, dword [eax + 0x5c]
cmp ecx, ebx
je 0x42902a
mov ecx, dword [ecx + 0x24]
cmp ecx, ebx
je 0x42902a
mov edx, dword [eax + 0x98]
push edx
call fcn.00571510
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
push str.Subtitles
push edx
mov byte [esp + 0x34], bl
mov dword [esp + 0x28], 1
call esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x7c67dc]
push eax
call fcn.00411970
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x44]
mov edx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x58], eax
add eax, edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x48]
add edx, eax
mov dword [esp + 0x5c], eax
cmp dword [0x7c7390], ebx
mov dword [esp + 0x64], edx
je 0x4290c6
mov eax, dword [0x7c7388]
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x42917b
push 1
lea eax, [esp + 0x5c]
push eax
call dword [0x7c7380]
mov dword [esp + 0x18], eax
mov eax, dword [0x7c7388]
jmp 0x429183
push str.USER32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
cmp edi, ebx
je 0x42914c
push str.GetSystemMetrics
push edi
call esi
cmp eax, ebx
mov dword [0x7c7378], eax
je 0x42914c
push str.MonitorFromWindow
push edi
call esi
cmp eax, ebx
mov dword [0x7c737c], eax
je 0x42914c
push str.MonitorFromRect
push edi
call esi
cmp eax, ebx
mov dword [0x7c7380], eax
je 0x42914c
push str.MonitorFromPoint
push edi
call esi
cmp eax, ebx
mov dword [0x7c7384], eax
je 0x42914c
push str.EnumDisplayMonitors
push edi
call esi
cmp eax, ebx
mov dword [0x7c738c], eax
je 0x42914c
push str.GetMonitorInfoA
push edi
call esi
cmp eax, ebx
mov dword [0x7c7388], eax
je 0x42914c
mov dword [0x7c7390], 1
jmp 0x4290ab
xor eax, eax
mov dword [0x7c7378], ebx
mov dword [0x7c737c], ebx
mov dword [0x7c7380], ebx
mov dword [0x7c7384], ebx
mov dword [0x7c7388], eax
mov dword [0x7c738c], ebx
mov dword [0x7c7390], 1
mov dword [esp + 0x18], 0x12340042
cmp dword [0x7c7390], ebx
mov dword [esp + 0x20], 0x28
je 0x4291b3
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x429277
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push edx
call eax
jmp 0x4292ff
push str.USER32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
cmp edi, ebx
je 0x429249
push str.GetSystemMetrics
push edi
call esi
cmp eax, ebx
mov dword [0x7c7378], eax
je 0x429249
push str.MonitorFromWindow
push edi
call esi
cmp eax, ebx
mov dword [0x7c737c], eax
je 0x429249
push str.MonitorFromRect
push edi
call esi
cmp eax, ebx
mov dword [0x7c7380], eax
je 0x429249
push str.MonitorFromPoint
push edi
call esi
cmp eax, ebx
mov dword [0x7c7384], eax
je 0x429249
push str.EnumDisplayMonitors
push edi
call esi
cmp eax, ebx
mov dword [0x7c738c], eax
je 0x429249
push str.GetMonitorInfoA
push edi
call esi
cmp eax, ebx
mov dword [0x7c7388], eax
je 0x429249
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push edx
mov dword [0x7c7390], 1
call eax
jmp 0x4292ff
mov dword [0x7c7378], ebx
mov dword [0x7c737c], ebx
mov dword [0x7c7380], ebx
mov dword [0x7c7384], ebx
mov dword [0x7c7388], ebx
mov dword [0x7c738c], ebx
mov dword [0x7c7390], 1
cmp dword [esp + 0x18], 0x12340042
jne 0x4292ff
lea eax, [esp + 0x20]
test eax, eax
je 0x4292ff
cmp dword [esp + 0x20], 0x28
jb 0x4292ff
push ebx
lea ecx, [esp + 0x4c]
push ecx
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x4292ff
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call esi
push 1
mov dword [esp + 0x30], eax
call esi
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x34], edx
cmp dword [esp + 0x20], 0x48
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 1
jb 0x429307
push str.DISPLAY
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov esi, dword [ebp + 0x44]
mov edx, dword [esp + 0x34]
cmp esi, edx
pop edi
jge 0x429318
mov dword [ebp + 0x44], edx
jmp 0x429326
mov edx, dword [ebp + 8]
add esi, edx
cmp esi, eax
jbe 0x429326
sub eax, edx
mov dword [ebp + 0x44], eax
mov edx, dword [ebp + 0x48]
mov esi, dword [esp + 0x34]
cmp edx, esi
lea eax, [ebp + 0x48]
jge 0x429342
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 0x15c
ret 4
mov ebp, dword [ebp + 0xc]
add edx, ebp
cmp edx, ecx
jbe 0x42934f
sub ecx, ebp
mov dword [eax], ecx
pop esi
pop ebp
pop ebx
add esp, 0x15c
ret 4