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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e890
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa0
mov eax, dword [0x56a040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x64], 0
jne 0x48fbaf
push str.Creating_multi_target_renderer_for_Lua..._n
call fcn.00403a40
add esp, 4
lea eax, [ebp - 0x24]
push eax
push dword [0x67355c]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x67353c]
test eax, eax
je 0x48f95a
lea ecx, [ebp - 0x34]
push ecx
vpxor xmm0, xmm0, xmm0
push eax
vmovdqu xmmword [ebp - 0x34], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
movzx eax, ax
sub ecx, eax
mov dword [ebp - 0x18], ecx
jmp 0x48f95d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov edx, 1
cmp eax, edx
cmovl eax, edx
cmp ecx, edx
mov dword [edi + 0x6c], eax
cmovl ecx, edx
push ecx
push eax
push str.Lua_dc_size:__d__d_n
mov dword [edi + 0x70], ecx
call fcn.00403a40
add esp, 0xc
push 0
push dword [0x673560]
push 0
push dword [0x67355c]
push dword [edi + 0x70]
push dword [edi + 0x6c]
push 0
push 0
push 0x50000000
push 0x546f05
push str.lua_d2d_overlay
push 0x80000
call dword [sym.imp.USER32.dll_CreateWindowExA]
push edi
push 0xffffffffffffffeb
push eax
mov dword [edi + 0x5c], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
lea eax, [edi + 0x74]
push eax
push 0x55d5fc
push 0
call dword [sym.imp.DWrite.dll_DWriteCreateFactory]
push dword [edi + 0x70]
lea eax, [edi + 0x58]
mov ecx, dword [edi + 0x5c]
push dword [edi + 0x6c]
lea esi, [edi + 0x48]
mov dword [edi + 0xfc], 1
push eax
lea eax, [edi + 0x54]
push eax
lea eax, [edi + 0x50]
push eax
lea eax, [edi + 0x4c]
push eax
push esi
lea eax, [edi + 0x30]
push eax
lea eax, [edi + 0x44]
push eax
lea eax, [edi + 0x40]
push eax
lea eax, [edi + 0x3c]
push eax
lea eax, [edi + 0x38]
push eax
lea eax, [edi + 0x34]
push eax
lea eax, [edi + 0x2c]
push eax
lea eax, [edi + 0x28]
push eax
lea eax, [edi + 0x24]
push eax
lea eax, [edi + 0x20]
push eax
lea eax, [edi + 0x1c]
push eax
lea edx, [edi + 0x18]
call fcn.00486d60
add esp, 0x48
test al, al
jne 0x48fa4a
push str.Failed_to_set_up_composition_n
call fcn.00403a40
add esp, 4
jmp 0x48fbaf
mov eax, dword [esi]
lea ecx, [edi + 0xc8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
call fcn.00490ff0
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], vtable.std::_Func_impl_no_alloc_class__public:_void___thiscall_LuaEnvironment::create_renderer_void_::_2::_lambda_1___void__struct_IDWriteTextLayout__.0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x84], 0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00491510
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xb0], 0x80
call fcn.00491750
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x48fac4
mov edx, dword [ecx]
lea eax, [ebp - 0x60]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0xb0]
push eax
lea ecx, [edi + 0x78]
call fcn.0048fbd0
lea ecx, [ebp - 0x80]
call fcn.00486c30
mov ecx, dword [ebp - 0x84]
test ecx, ecx
je 0x48fb03
mov edx, dword [ecx]
lea eax, [ebp - 0xa8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x84], 0
push dword [0x67355c]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [edi + 0x70]
mov dword [edi + 0x64], eax
push dword [edi + 0x6c]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [edi + 0x64]
mov dword [edi + 0x68], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push dword [0x67355c]
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0
push dword [0x673560]
push 0
push dword [0x67355c]
push dword [edi + 0x70]
push dword [edi + 0x6c]
push 0
push 0
push 0x50000000
push 0x546f06
push str.lua_gdi_overlay
push 0x80000
call dword [sym.imp.USER32.dll_CreateWindowExA]
push edi
push 0xffffffffffffffeb
push eax
mov dword [edi + 0x60], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 1
push 0
push 0xff00ff
push dword [edi + 0x60]
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
push dword [0x27d5450]
lea eax, [ebp - 0x24]
push eax
push dword [edi + 0x64]
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, edi
call fcn.0048f860
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d7bf5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret