Function at 0xd54f50
Capabilities:
Allocate or change rwx memory
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd59075
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0xd5f010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [sym.imp.msvcp140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0xd5ad50
call fcn.00d552c0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, dword [sym.imp.msvcp140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.00d554e0
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00d49740
call fcn.00d48610
add esp, 0x18
test al, al
jne 0xd54fda
or esi, 0xffffffff
jmp 0xd5509f
mov ecx, dword [sym.imp.msvcp140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push 0xd554b0
call dword [sym.imp.msvcp140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov ecx, dword [sym.imp.msvcp140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0xd5ad64
push 0xd554b0
call fcn.00d552c0
mov ecx, eax
call dword [sym.imp.msvcp140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
push 0xd5f1ac
lea ecx, [ebp - 0x44]
call fcn.00d49740
push 0xd5ad78
push 0x65
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.kernel32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.kernel32.dll_VirtualProtect]
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x44]
mov edx, esi
cmovae ecx, dword [ebp - 0x44]
push ecx
mov ecx, edi
call fcn.00d54ce0
add esp, 4
mov ecx, edi
call fcn.00d563e0
mov ecx, dword [ebp - 0x30]
xor esi, esi
cmp ecx, 0x10
jb 0xd5509f
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0xd55095
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0xd550c5
push ecx
push edx
call fcn.00d56dab
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0xd550d5
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0xd550cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0xd550cb
call dword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00d56dab
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00d56a37
mov esp, ebp
pop ebp
ret