Function at 0x4223a6
Capabilities:
Extract resource via kernel32 functions
Terminate process

Disassembly:
push 0x268
mov eax, 0x4fced4
call fcn.004cda1c
mov edi, ecx
push 0xfffffffffffffff0
call sym.RedAlert.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
mov ecx, edi
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
call sym.RedAlert.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call sym.RedAlert.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x14]
mov ecx, edi
sub eax, dword [ebp - 0x1c]
push 0x20
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 0
call sym.RedAlert.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push dword [edi + 4]
lea ebx, [edi + 0x2c]
mov ecx, ebx
call sym.RedAlert.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::Init_struct_HWND_____wchar_t_const__
mov ecx, edi
lea eax, [edi + 0x24]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, ebx
call sym.RedAlert.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::AddPreMessageFilter_class_DuiLib::IMessageFilterUI__
lea ecx, [ebp - 0x270]
call sym.RedAlert.exe_public:_void___thiscall_DuiLib::CDialogBuilder::constructor_void_
and dword [ebp - 4], 0
call sym.RedAlert.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x128]
call sym.RedAlert.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 1
call sym.RedAlert.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
je 0x4224cd
lea eax, [ebp - 0xa4]
push eax
call sym.RedAlert.exe_public:_static_class_DuiLib::CDuiString___cdecl_DuiLib::CPaintManagerUI::GetInstancePath_void_
pop ecx
push eax
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 2
call fcn.00430757
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 1
call sym.RedAlert.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov eax, dword [edi]
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, edi
call dword [eax + 0x20]
mov ecx, eax
mov byte [ebp - 4], 3
call sym.RedAlert.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
lea ecx, [ebp - 0x128]
call sym.RedAlert.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 1
call sym.RedAlert.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
lea ecx, [ebp - 0x128]
call sym.RedAlert.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call sym.RedAlert.exe_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourcePath_wchar_t_const__
mov eax, dword [edi]
pop ecx
mov ecx, edi
call dword [eax + 0x2c]
dec eax
sub eax, 1
je 0x42259c
dec eax
sub eax, 1
jne 0x4225ce
mov eax, dword [edi]
mov ecx, edi
push str.ZIPRES
call dword [eax + 0x34]
push eax
call sym.RedAlert.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4226cc
push esi
call sym.RedAlert.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x274], eax
push esi
test eax, eax
jne 0x422540
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4226cc
call sym.RedAlert.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4226cc
push ebx
call fcn.004cd2e2
mov dword [sym.RedAlert.exe_unsigned_char__DuiLib::WindowImplBase::m_lpResourceZIPBuffer], eax
pop ecx
test eax, eax
je 0x422582
push ebx
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [sym.RedAlert.exe_unsigned_char__DuiLib::WindowImplBase::m_lpResourceZIPBuffer]
call fcn.004cee80
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebx
push dword [sym.RedAlert.exe_unsigned_char__DuiLib::WindowImplBase::m_lpResourceZIPBuffer]
call sym.RedAlert.exe_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourceZip_void___unsigned_int_
pop ecx
pop ecx
lea ebx, [edi + 0x2c]
jmp 0x4225ce
mov eax, dword [edi]
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, edi
call dword [eax + 0x30]
push 1
mov ecx, eax
mov byte [ebp - 4], 4
call sym.RedAlert.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call sym.RedAlert.exe_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourceZip_wchar_t_const___bool_
pop ecx
pop ecx
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 1
call sym.RedAlert.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
mov edx, dword [edi]
mov ecx, edi
cmp eax, 3
jne 0x42263e
lea eax, [ebp - 0xa4]
push eax
call dword [edx + 0x24]
mov ecx, eax
mov byte [ebp - 4], 5
call sym.RedAlert.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.004d9ac7
pop ecx
push eax
lea ecx, [ebp - 0x274]
call sym.RedAlert.exe_public:_void___thiscall_DuiLib::STRINGorID::constructor_unsigned_int_
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 1
call sym.RedAlert.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov ecx, edi
lea eax, [edi + 0x28]
neg ecx
push 0
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
push 0x505fd0
push dword [ebp - 0x274]
lea ecx, [ebp - 0x270]
call sym.RedAlert.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CDialogBuilder::Create_class_DuiLib::STRINGorID__wchar_t_const___class_DuiLib::IDialogBuilderCallback___class_DuiLib::CPaintManagerUI___class_DuiLib::CControlUI__
mov esi, eax
jmp 0x42268b
mov esi, edi
lea eax, [edi + 0x28]
neg esi
sbb esi, esi
and esi, eax
lea eax, [ebp - 0xa4]
push eax
call dword [edx + 0x24]
push 0
push ebx
push esi
push 0
push ecx
mov ecx, eax
mov byte [ebp - 4], 6
mov esi, esp
call sym.RedAlert.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
mov ecx, esi
call sym.RedAlert.exe_public:_void___thiscall_DuiLib::STRINGorID::constructor_wchar_t_const__
lea ecx, [ebp - 0x270]
call sym.RedAlert.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CDialogBuilder::Create_class_DuiLib::STRINGorID__wchar_t_const___class_DuiLib::IDialogBuilderCallback___class_DuiLib::CPaintManagerUI___class_DuiLib::CControlUI__
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 1
mov esi, eax
call sym.RedAlert.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
test esi, esi
jne 0x4226aa
push 0x10
push str.Duilib
push 0x505fe8
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov ecx, ebx
call sym.RedAlert.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::AttachDialog_class_DuiLib::CControlUI__
mov edx, edi
lea eax, [edi + 0x20]
neg edx
mov ecx, ebx
sbb edx, edx
and edx, eax
push edx
call sym.RedAlert.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::AddNotifier_class_DuiLib::INotifyUI__
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
lea ecx, [ebp - 0x128]
call sym.RedAlert.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
lea ecx, [ebp - 0x270]
call sym.RedAlert.exe_public:_void___thiscall_DuiLib::CMarkup::destructor_void_
xor eax, eax
call fcn.004cd9da
ret 0x10