Function at 0x429870
Capabilities:
Access peb ldr_data
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x7290dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push esi
push edi
push 0x2e0
mov esi, ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x228], ebx
je 0x4298b7
mov ecx, eax
call fcn.006f6020
jmp 0x4298b9
xor eax, eax
push eax
mov dword [esp + 0x22c], 0xffffffff
call fcn.006f57b0
mov al, byte [esi + 0x1e]
add esp, 4
push str..Morrowind.ini
push ebx
push str.Screen_Shot_Enable
push str.General
mov byte [0x7de7f8], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x4298f5
mov byte [esi + 0x22], 1
jmp 0x4298f8
mov byte [esi + 0x22], bl
mov eax, dword [0x7c67dc]
cmp dword [eax + 0x30], ebx
je 0x429907
call fcn.006a9a50
mov ecx, dword [0x7c67dc]
mov dword [ecx + 0x30], ebx
mov ecx, dword [esi + 0x64]
cmp ecx, ebx
je 0x42991f
call fcn.00404630
mov dword [esi + 0x64], ebx
cmp byte [esi + 0x1c], bl
je 0x42995f
mov eax, dword [esi + 0x60]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x5c]
mov ecx, dword [esi + 0x64]
mov edi, eax
cmp ecx, edi
je 0x429a0b
cmp ecx, ebx
je 0x42994f
dec dword [ecx + 4]
jne 0x42994f
cmp ecx, ebx
je 0x42994f
mov edx, dword [ecx]
push 1
call dword [edx]
cmp edi, ebx
mov dword [esi + 0x64], edi
je 0x429a0b
jmp 0x429a08
mov eax, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x5c]
push 0xfffffffffffffff8
push eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.USER32.dll_GetClassLongA]
mov ecx, dword [esi + 0x5c]
push eax
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
push 0x40
sub ecx, edx
mov edx, dword [esi + 0x5c]
push ecx
mov ecx, dword [esi + 0x44]
sub eax, edi
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push eax
mov eax, dword [esi + 0x48]
push eax
push ecx
push ebx
push edx
call edi
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push 0x40
push eax
mov eax, dword [esi + 0x60]
push ecx
push ebx
push ebx
push ebx
push eax
call edi
mov eax, dword [esi + 0x60]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x5c]
mov ecx, dword [esi + 0x64]
mov edi, eax
cmp ecx, edi
je 0x429a0b
cmp ecx, ebx
je 0x429a01
dec dword [ecx + 4]
jne 0x429a01
cmp ecx, ebx
je 0x429a01
mov edx, dword [ecx]
push 1
call dword [edx]
cmp edi, ebx
mov dword [esi + 0x64], edi
je 0x429a0b
inc dword [edi + 4]
mov ecx, dword [esi + 0x64]
cmp ecx, ebx
jne 0x429a3e
push 0x7deaa8
lea eax, [esp + 0x24]
push str.Render_Creation_Error:___s_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x2c]
add esp, 0xc
push ecx
call fcn.00477fa0
add esp, 4
lea edx, [esp + 0x20]
push edx
jmp 0x429a59
mov eax, dword [ecx]
call dword [eax + 0x30]
test al, 8
jne 0x429a61
push str.Hardware_Renderer_Creation_Failure
call fcn.00477fa0
add esp, 4
push str.Hardware_Renderer_Creation_Failure
call fcn.00476e20
add esp, 4
push 0x4c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
cmp edi, ebx
mov dword [esp + 0x228], 1
je 0x429a94
push ebx
mov ecx, edi
call fcn.006cef00
mov dword [edi], 0x7468d0
mov byte [edi + 0x48], 1
jmp 0x429a96
xor edi, edi
mov ecx, dword [esi + 0x64]
push edi
add ecx, 8
mov dword [esp + 0x22c], 0xffffffff
call fcn.00471b00
mov byte [0x7c4c90], 1
mov ecx, dword [esi + 0x64]
mov edx, dword [ecx]
lea eax, [esi + 0x68]
push eax
call dword [edx + 0x68]
mov ecx, dword [esi + 0x64]
mov edx, dword [ecx]
push ebx
call dword [edx + 0x50]
mov eax, dword [esi + 0x64]
mov ecx, dword [0x7c67dc]
mov dword [ecx + 0x30], eax
mov eax, dword [esi + 0x3c]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x50]
mov ecx, dword [esi + 8]
mov edx, dword [0x7c67dc]
mov dword [edx + 0x78], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [0x7c67dc]
mov dword [ecx + 0x7c], eax
mov edx, dword [esi + 0x10]
mov eax, dword [0x7c67dc]
mov dword [eax + 0x80], edx
mov ecx, dword [esi + 8]
push ecx
mov ecx, dword [0x7c67dc]
call fcn.0040f2a0
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 8]
mov edx, dword [0x7c67dc]
mov ecx, dword [edx + 0x50]
shr eax, 1
push eax
shr esi, 1
push esi
neg eax
push eax
neg esi
push esi
call fcn.00408740
mov ecx, dword [esp + 0x220]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x220
ret