Function at 0x1012cac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb4
push ebx
mov ebx, dword [esp + 0xbc]
xor eax, eax
push ebp
mov ebp, dword [ebx + 0x3bb8]
mov ecx, dword [ebx + 0x30]
mov dword [esp + 0x20], ebp
cmp byte [ebp + 0x4d], al
sete al
lea eax, [eax*2 + 1]
mov dword [esp + 8], eax
lea eax, [ebx + 0x40]
mov dword [esp + 0x1c], eax
cmp ecx, dword [eax]
je 0x1012cd5b
mov eax, dword [ebx + 0x1d0]
push esi
push edi
push 0x94
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x34]
push 0
push eax
call fcn.10513d40
movzx eax, byte [ebp + 0x4c]
lea esi, [ebx + 0x2c]
mov edi, dword [ebx + 0xd8]
push 0
push 0
push dword [esp + 0x2c]
add edi, 0x4c8
mov dword [esp + 0x2c], esi
push 0x120
push eax
push dword [ebp + 0x64]
mov eax, dword [ebx + 0x30]
push dword [ebp + 0x60]
add eax, 7
push dword [ebx + 0x34]
and eax, 0xfffffff8
push eax
lea eax, [esp + 0x60]
push eax
call fcn.100b3800
add esp, 0x34
test eax, eax
je 0x1012cb77
push str.Failed_to_allocate_copy_buffer_for_superres_upscaling
push 2
push dword [esi]
call fcn.1006e850
add esp, 0xc
jmp 0x1012cb7b
mov dword [esp + 0x14], esi
push dword [esp + 0x10]
lea eax, [ebx + 0x40]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x34]
push eax
push edi
call fcn.100f6300
mov ebp, dword [esp + 0xd8]
add esp, 0xc
test ebp, ebp
je 0x1012cc6c
mov eax, dword [ebx + 0xd8]
mov esi, dword [ebp + 0x20]
add eax, 0x4bc
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x18]
push ebp
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esp + 0x10]
push dword [esp + 0x24]
call esi
add esp, 8
test eax, eax
je 0x1012cc01
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x14]
push str.Failed_to_free_current_frame_buffer_before_superres_upscaling
push 2
push dword [esi]
call fcn.1006e850
mov eax, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x24], eax
jmp 0x1012cc05
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
push 0
push dword [esp + 0xd4]
push dword [esp + 0x28]
movzx eax, byte [ecx + 0x4c]
push dword [esp + 0x38]
push dword [esp + 0x20]
push dword [esp + 0x2c]
push 0x120
push eax
push dword [ecx + 0x64]
mov eax, dword [esp + 0x48]
push dword [ecx + 0x60]
push dword [ebx + 0x44]
push dword [eax]
push edi
call fcn.100b3b20
add esp, 0x34
test eax, eax
je 0x1012cc60
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str.Failed_to_allocate_current_frame_buffer_for_superres_upscaling
push 2
push dword [esi]
call fcn.1006e850
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1012cd40
mov eax, dword [edi + 0x64]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x94], eax
mov eax, dword [edi + 0x68]
mov dword [esp + 0x98], eax
mov eax, dword [edi + 0x6c]
mov dword [esp + 0x9c], eax
mov eax, dword [edi + 0x70]
push 0
push dword [esp + 0xd4]
mov dword [esp + 0xa8], eax
mov al, byte [edi + 0x74]
push dword [esp + 0x20]
mov byte [esp + 0xb0], al
mov eax, dword [edi + 0x78]
mov dword [esp + 0xb4], eax
mov eax, dword [edi + 0x7c]
mov dword [esp + 0xb8], eax
movzx eax, byte [ecx + 0x4c]
push 0x120
push eax
push dword [ecx + 0x64]
mov eax, dword [esp + 0x34]
push dword [ecx + 0x60]
push dword [ebx + 0x44]
push dword [eax]
push edi
call fcn.100b3800
add esp, 0x28
test eax, eax
je 0x1012ccfa
push str.Failed_to_reallocate_current_frame_buffer_for_superres_upscaling
push 2
push dword [esi]
call fcn.1006e850
add esp, 0xc
mov eax, dword [esp + 0x94]
mov dword [edi + 0x64], eax
mov eax, dword [esp + 0x98]
mov dword [edi + 0x68], eax
mov eax, dword [esp + 0x9c]
mov dword [edi + 0x6c], eax
mov eax, dword [esp + 0xa0]
mov dword [edi + 0x70], eax
mov al, byte [esp + 0xa4]
mov byte [edi + 0x74], al
mov eax, dword [esp + 0xa8]
mov dword [edi + 0x78], eax
mov eax, dword [esp + 0xac]
mov dword [edi + 0x7c], eax
push edi
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.1012cd70
lea eax, [esp + 0x3c]
push eax
call fcn.100b3ab0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret