Function at 0x42e620
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x7294a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
mov eax, dword [0x7c6cdc]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax + 0x108]
push edi
mov dword [esp + 0x1c], esi
call fcn.00458d70
call fcn.0041c400
mov edx, dword [0x7c67dc]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edx + 0x18c]
call fcn.00430f70
mov eax, dword [eax]
xor ebx, ebx
push 6
mov ecx, eax
mov dword [esp + 0xac], ebx
call fcn.006cc780
mov eax, dword [esp + 0x14]
or edi, 0xffffffff
cmp eax, ebx
mov dword [esp + 0xa8], edi
je 0x42e6b1
mov ebp, dword [eax + 4]
mov ecx, eax
add eax, 4
dec ebp
mov edx, ebp
cmp edx, ebx
mov dword [eax], ebp
jne 0x42e6b1
cmp ecx, ebx
je 0x42e6b1
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [0x7c67dc]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edx + 0x18c]
call fcn.00430f70
mov eax, dword [eax]
push ebx
mov ecx, eax
mov dword [esp + 0xac], 1
call fcn.006cc7b0
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0xa8], edi
je 0x42e706
mov edi, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edi
mov edx, edi
cmp edx, ebx
mov dword [eax], edi
jne 0x42e706
cmp ecx, ebx
je 0x42e706
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.0060c730
mov ecx, dword [0x7c6cdc]
mov ecx, dword [ecx + 0x108]
call fcn.00458da0
mov edi, dword [esi + 4]
cmp edi, ebx
je 0x42e750
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
cmp eax, ebx
je 0x42e73c
cmp eax, 0x7dd89c
je 0x42e746
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x42e72e
xor al, al
neg al
sbb eax, eax
and eax, edi
jmp 0x42e752
mov al, 1
neg al
sbb eax, eax
and eax, edi
jmp 0x42e752
xor eax, eax
mov edi, dword [eax + 0x24]
mov eax, dword [eax + 0x544]
mov ebp, dword [eax + 8]
mov eax, dword [ebp + 0x24]
mov ecx, dword [edi]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esi + 0x38]
push eax
mov eax, dword [esi + 0x3c]
push eax
push edx
push edi
call dword [ecx + 0x6c]
test eax, eax
je 0x42e78e
push 1
push ebx
push str.ScreenShot:_Unable_to_create_image_surface.
call fcn.005f90c0
add esp, 0xc
jmp 0x42eaf6
mov eax, dword [edi]
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
push edi
call dword [eax + 0x40]
test eax, eax
je 0x42e7b4
push 1
push ebx
push str.ScreenShot:_Unable_to_get_back_buffer.
call fcn.005f90c0
add esp, 0xc
jmp 0x42eaf6
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
lea ecx, [esp + 0x80]
push ecx
push eax
call dword [edx + 0x20]
test eax, eax
je 0x42e7df
push 1
push ebx
push str.ScreenShot:_Unable_to_aquire_BackBuffer_Description
call fcn.005f90c0
add esp, 0xc
jmp 0x42eaf6
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
push 0x800
push ebx
lea ecx, [esp + 0x48]
push ecx
push eax
call dword [edx + 0x24]
test eax, eax
je 0x42e80d
push 1
push ebx
push str.ScreenShot:_Not_enabled._Add__Screen_Shot_Enable__1__to_the__General__section_of_Morrowind.INI_file.
call fcn.005f90c0
add esp, 0xc
jmp 0x42eaf6
push 0x48
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov dword [esp + 0xa8], 2
je 0x42e840
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
push 1
push ebp
push edx
push ecx
mov ecx, eax
call fcn.006d4fc0
mov ebp, eax
jmp 0x42e842
xor ebp, ebp
mov eax, dword [ebp + 0x38]
mov edx, dword [ebp + 0x30]
mov edi, dword [ebp + 0x2c]
mov eax, dword [eax]
mov edx, dword [edx]
mov ecx, dword [esi + 0x3c]
imul edx, dword [ebp + 0x40]
add eax, edi
cmp ecx, ebx
mov edi, dword [esp + 0x44]
mov dword [esp + 0xa8], 0xffffffff
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ebx
jbe 0x42e8ab
mov esi, edi
mov ecx, edx
mov ebx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
add edi, ebx
mov ebx, dword [esi + 0x3c]
add eax, edx
inc ecx
cmp ecx, ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ecx
jb 0x42e873
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov ecx, 0x7cb478
call fcn.004d51b0
mov ebx, eax
mov ecx, 0x7cb478
mov dword [esp + 0x28], ebx
call fcn.004d51e0
push str..Morrowind.ini
push 0x200
mov edi, eax
push edi
push str.ScreenShot
push str.Screen_Shot_Base_Name
push str.General
mov dword [esp + 0x44], edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..Morrowind.ini
push 0
push str.Screen_Shot_Index
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push edi
push str._s__d.bmp
push ebx
mov dword [esp + 0x34], eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push 0x180
push 0x8301
push ebx
call dword [sym.imp.MSVCRT.dll__open]
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esp + 0x3c], eax
je 0x42eadc
mov edx, dword [ebp + 0x30]
mov eax, dword [esi + 0x3c]
mov edi, dword [edx]
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x38]
mov esi, dword [ebp + 0x2c]
mov dword [esp + 0x10], eax
imul eax, edi
mov dword [esp + 0x1c], ecx
mov ecx, dword [edx]
lea eax, [eax + eax*2]
add ecx, esi
push eax
mov dword [esp + 0x3c], ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
xor edx, edx
xor ecx, ecx
dec eax
cmp eax, edx
jl 0x42e9fd
mov ebp, dword [esp + 0x1c]
imul eax, ebp
imul ebp, edi
imul eax, edi
neg ebp
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebp
cmp edi, edx
jbe 0x42e9ea
mov ebx, dword [esp + 0x38]
lea edx, [ebx + 1]
mov ebp, ebx
sub ebx, edx
add eax, edx
sub ebp, edx
add ebx, 2
mov dword [esp + 0x30], ebx
mov edx, edi
mov bl, byte [eax + ebp]
mov byte [esi + ecx], bl
mov bl, byte [eax]
mov byte [esi + ecx + 1], bl
mov ebx, dword [esp + 0x30]
mov bl, byte [ebx + eax]
mov byte [esi + ecx + 2], bl
mov ebx, dword [esp + 0x1c]
add ecx, 3
add eax, ebx
dec edx
jne 0x42e9bd
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
xor edx, edx
add eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x14]
dec ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebp
jne 0x42e9a1
mov eax, dword [esp + 0x10]
imul eax, edi
lea ebp, [eax + eax*2]
mov eax, dword [esp + 0x10]
lea ecx, [ebp + 0x36]
mov dword [esp + 0x4a], ecx
push 0x36
lea ecx, [esp + 0x4c]
mov dword [esp + 0x5e], edi
mov edi, dword [esp + 0x40]
push ecx
push edi
mov word [esp + 0x54], 0x4d42
mov word [esp + 0x5a], dx
mov word [esp + 0x5c], dx
mov dword [esp + 0x5e], 0x36
mov dword [esp + 0x62], 0x28
mov dword [esp + 0x6a], eax
mov word [esp + 0x6e], 1
mov word [esp + 0x70], 0x18
mov dword [esp + 0x72], edx
mov dword [esp + 0x76], ebp
mov dword [esp + 0x7a], edx
mov dword [esp + 0x7e], edx
mov dword [esp + 0x82], edx
mov dword [esp + 0x86], edx
call dword [sym.imp.MSVCRT.dll__write]
push ebp
push esi
push edi
call dword [sym.imp.MSVCRT.dll__write]
push edi
call dword [sym.imp.MSVCRT.dll__close]
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov esi, dword [esp + 0x4c]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x20
push ebx
push str.ScreenShot:_File___s__created.
push esi
call edi
push 1
push 0
push esi
call fcn.005f90c0
mov edx, dword [esp + 0x3c]
add esp, 0x18
inc edx
push edx
push 0x775d8c
push ebx
call edi
add esp, 0xc
push str..Morrowind.ini
push ebx
push str.Screen_Shot_Index
push str.General
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x42eaf6
push ebx
push str.ScreenShot:_Unable_to_create_file___s_.
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
push 1
push 0
push edi
call fcn.005f90c0
add esp, 0x18
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x9c
ret