Function at 0x1000801a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe8
mov eax, dword fs:[0x30]
and byte [eax + 0x68], 0x8f
xor eax, eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
test eax, eax
je 0x1000809c
mov esi, eax
lea eax, [eax*4]
xor edi, edi
dec edi
cmp esi, 0x40000000
cmovb edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
test eax, eax
je 0x1000808c
xor eax, eax
mov ecx, dword [edi + eax*4]
and dword [ecx + 0x40], 0xbfffff9f
mov dword [ecx + 0x44], 0
inc eax
cmp esi, eax
jne 0x10008076
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push str.._settings.ini
push 1
push str.TapePlayerAuto
push str.Scarface
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x10008142
xor ecx, ecx
lea eax, [esp + 0x18]
mov dword [eax + 4], ecx
mov dword [eax], 0x9d9612bc
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0x9dd535f3
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd0], esi
movq mm0, qword [esp + 0xd0]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xd8], ecx
pxor mm0, qword [esp + 0xd8]
movq qword [esp + 0xc8], mm0
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xcc]
mov dword [esp + 4], edx
mov dword [esp], ecx
mov ecx, dword [esp]
mov edx, dword [esp + 4]
mov byte [eax], 0
push 1
push eax
push ecx
call fcn.100026d4
add esp, 0xc
push str.._settings.ini
push 2
push str.Captions
push str.Scarface
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jg 0x10008274
mov esi, eax
lea eax, [esp + 0x16]
mov word [eax], 0x35eb
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 0x87881d65
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x87c3cdef
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xb8], ebx
movq mm0, qword [esp + 0xb8]
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc0], ecx
pxor mm0, qword [esp + 0xc0]
movq qword [esp + 0xb0], mm0
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xb4]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [esp + 4]
push 2
lea eax, [esp + 0x1a]
push eax
push dword [esp + 8]
call fcn.100026d4
add esp, 0xc
test esi, esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 0xa14e0ab3
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0xa1cfd2f7
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], edx
movq mm0, qword [esp + 0xa0]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xa8], eax
pxor mm0, qword [esp + 0xa8]
movq qword [esp + 0x98], mm0
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [esp]
mov ecx, dword [esp + 4]
setne byte [eax]
mov ebx, str.._settings.ini
mov eax, str.Scarface
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebx
push dword [0x1000b004]
push str.RefreshRate
push eax
call edi
xor ecx, ecx
test eax, eax
setne cl
mov dword [0x1000b004], ecx
xor esi, esi
inc esi
push ebx
push esi
push str.VSync
mov eax, str.Scarface
push eax
call edi
test eax, eax
mov eax, 0x80000000
cmovne eax, esi
mov dword [0x1000b008], eax
xor edi, edi
lea esi, [esp + 0x18]
mov dword [esi + 4], edi
mov dword [esi], 0xc1e9c408
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0xc199bd13
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], edx
movq mm0, qword [esp + 0x88]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x90], eax
pxor mm0, qword [esp + 0x90]
movq qword [esp + 0x80], mm0
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esi], 0x1000b0c8
mov ecx, 4
push ecx
push esi
push eax
call fcn.100026d4
add esp, 0xc
mov dword [esi + 4], edi
mov dword [esi], 0xa08a0431
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0xa0ef7777
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], edx
movq mm0, qword [esp + 0x70]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x78], eax
pxor mm0, qword [esp + 0x78]
movq qword [esp + 0x68], mm0
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esi], 0x1000b1c0
mov ecx, 4
push ecx
push esi
push eax
call fcn.100026d4
add esp, 0xc
mov dword [esi + 4], edi
mov dword [esi], 0xb6d81692
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0xb6a89e0b
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], edx
movq mm0, qword [esp + 0x58]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], eax
pxor mm0, qword [esp + 0x60]
movq qword [esp + 0x50], mm0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esi], 0x1000b708
mov ecx, 4
push ecx
push esi
push eax
call fcn.100026d4
add esp, 0xc
mov dword [esi + 4], edi
mov eax, 0xd859ed1e
mov dword [esi], eax
mov dword [esp + 0xc], edi
mov eax, 0xd834360b
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], edx
movq mm0, qword [esp + 0x40]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], eax
pxor mm0, qword [esp + 0x48]
movq qword [esp + 0x38], mm0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [esp + 4]
push 7
push dword [esp + 4]
call fcn.1000271c
add esp, 8
lea eax, [esp + 0x16]
mov word [eax], 0x6a
mov dword [esi + 4], edi
mov ecx, 0xd859ed1e
mov dword [esi], ecx
mov dword [esp + 0xc], edi
mov ecx, 0xd834360b
mov dword [esp + 8], ecx
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov edi, dword [esi]
mov esi, dword [esi + 4]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edi
movq mm0, qword [esp + 0x28]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
pxor mm0, qword [esp + 0x30]
movq qword [esp + 0x20], mm0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 4], edx
mov dword [esp], ecx
mov ecx, dword [esp + 4]
push 2
push eax
push dword [esp + 8]
call fcn.100026d4
add esp, 0xc
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret