Function at 0x474b90
Capabilities:
Extract resource via kernel32 functions
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c867d
mov eax, dword fs:[0]
push eax
sub esp, 0x514
mov eax, dword [0x5052a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4e0], ecx
push 0xfffffffffffffff0
mov ecx, dword [ebp - 0x4e0]
call sym.Setup.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [ebp - 0x2c0], eax
mov eax, dword [ebp - 0x2c0]
and eax, 0xff3fffff
mov dword [ebp - 0x2c0], eax
mov ecx, dword [ebp - 0x2c0]
or ecx, 0x4000000
or ecx, 0x2000000
push ecx
push 0xfffffffffffffff0
mov ecx, dword [ebp - 0x4e0]
call sym.Setup.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea edx, [ebp - 0x4a4]
push edx
mov ecx, dword [ebp - 0x4e0]
call sym.Setup.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x20
mov eax, dword [ebp - 0x498]
sub eax, dword [ebp - 0x4a0]
push eax
mov ecx, dword [ebp - 0x49c]
sub ecx, dword [ebp - 0x4a4]
push ecx
mov edx, dword [ebp - 0x4a0]
push edx
mov eax, dword [ebp - 0x4a4]
push eax
push 0
mov ecx, dword [ebp - 0x4e0]
call sym.Setup.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 0x4e0]
mov edx, dword [ecx + 4]
push edx
mov ecx, dword [ebp - 0x4e0]
add ecx, 0x2c
call sym.Setup.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::Init_struct_HWND____
cmp dword [ebp - 0x4e0], 0
je 0x474c9c
mov eax, dword [ebp - 0x4e0]
add eax, 0x24
mov dword [ebp - 0x4e4], eax
jmp 0x474ca6
mov dword [ebp - 0x4e4], 0
mov ecx, dword [ebp - 0x4e4]
push ecx
mov ecx, dword [ebp - 0x4e0]
add ecx, 0x2c
call sym.Setup.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::AddPreMessageFilter_class_DuiLib::IMessageFilterUI__
lea ecx, [ebp - 0x40c]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDialogBuilder::constructor_void_
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x4e0]
add ecx, 0x2c
call sym.Setup.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x494]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x494]
call sym.Setup.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
movzx edx, al
test edx, edx
je 0x474d43
lea eax, [ebp - 0x9c]
push eax
call sym.Setup.exe_public:_static_class_DuiLib::CDuiString___cdecl_DuiLib::CPaintManagerUI::GetInstancePath_void_
add esp, 4
mov dword [ebp - 0x4e8], eax
mov ecx, dword [ebp - 0x4e8]
mov dword [ebp - 0x4ec], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x4ec]
push edx
lea ecx, [ebp - 0x494]
call fcn.00462f90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x9c]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x4e0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x4e0]
mov eax, dword [edx + 0xa0]
call eax
mov dword [ebp - 0x4f0], eax
mov ecx, dword [ebp - 0x4f0]
mov dword [ebp - 0x4f4], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x4f4]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
lea ecx, [ebp - 0x494]
call sym.Setup.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x124]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
lea ecx, [ebp - 0x494]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
mov ecx, dword [ebp - 0x4e0]
add ecx, 0x2c
call sym.Setup.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SetResourcePath_wchar_t_const__
mov edx, dword [ebp - 0x4e0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4e0]
mov edx, dword [eax + 0xac]
call edx
mov dword [ebp - 0x4f8], eax
cmp dword [ebp - 0x4f8], 1
je 0x474df6
cmp dword [ebp - 0x4f8], 2
je 0x474e15
cmp dword [ebp - 0x4f8], 4
je 0x474e78
jmp 0x474fe1
lea ecx, [ebp - 0x494]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
mov ecx, dword [ebp - 0x4e0]
add ecx, 0x2c
call sym.Setup.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SetResourcePath_wchar_t_const__
jmp 0x474fe1
lea eax, [ebp - 0x1ac]
push eax
mov ecx, dword [ebp - 0x4e0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x4e0]
mov eax, dword [edx + 0xb0]
call eax
mov dword [ebp - 0x4fc], eax
mov ecx, dword [ebp - 0x4fc]
mov dword [ebp - 0x500], ecx
mov byte [ebp - 4], 4
push 1
mov ecx, dword [ebp - 0x500]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
mov ecx, dword [ebp - 0x4e0]
add ecx, 0x2c
call sym.Setup.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SetResourceZip_wchar_t_const___bool_
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1ac]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x474fe1
push str.ZIPRES
mov edx, dword [ebp - 0x4e0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4e0]
mov edx, dword [eax + 0xb4]
call edx
push eax
call sym.Setup.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x4b4], eax
cmp dword [ebp - 0x4b4], 0
jne 0x474ee5
mov dword [ebp - 0x4bc], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x494]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40c]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CMarkup::destructor_void_
mov eax, dword [ebp - 0x4bc]
jmp 0x475286
mov dword [ebp - 0x4ac], 0
mov eax, dword [ebp - 0x4b4]
push eax
call sym.Setup.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x4b0], eax
cmp dword [ebp - 0x4b0], 0
jne 0x474f54
mov ecx, dword [ebp - 0x4b4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0x4c0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x494]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40c]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CMarkup::destructor_void_
mov eax, dword [ebp - 0x4c0]
jmp 0x475286
mov edx, dword [ebp - 0x4b4]
push edx
call sym.Setup.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x4ac], eax
cmp dword [ebp - 0x4ac], 0
jne 0x474fac
mov dword [ebp - 0x4c4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x494]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40c]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CMarkup::destructor_void_
mov eax, dword [ebp - 0x4c4]
jmp 0x475286
push str.membuffer
mov eax, dword [ebp - 0x4ac]
push eax
mov ecx, dword [ebp - 0x4b0]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, dword [ebp - 0x4e0]
add ecx, 0x2c
call sym.Setup.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SetResourceZip_void___unsigned_int__wchar_t__
mov edx, dword [ebp - 0x4b4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0x4a8], 0
mov eax, dword [ebp - 0x4e0]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x4e0]
mov eax, dword [edx + 0xac]
call eax
cmp eax, 3
jne 0x4750cc
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x4e0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4e0]
mov edx, dword [eax + 0xa4]
call edx
mov dword [ebp - 0x504], eax
mov eax, dword [ebp - 0x504]
mov dword [ebp - 0x508], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x508]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.004c31a2
add esp, 4
mov dword [ebp - 0x4d4], eax
movzx ecx, word [ebp - 0x4d4]
mov dword [ebp - 0x4b8], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
cmp dword [ebp - 0x4e0], 0
je 0x47508d
mov edx, dword [ebp - 0x4e0]
add edx, 0x28
mov dword [ebp - 0x50c], edx
jmp 0x475097
mov dword [ebp - 0x50c], 0
push 0
mov eax, dword [ebp - 0x4e0]
add eax, 0x2c
push eax
mov ecx, dword [ebp - 0x50c]
push ecx
push 0x4d3ba8
mov edx, dword [ebp - 0x4b8]
push edx
lea ecx, [ebp - 0x40c]
call sym.Setup.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 dword [ebp - 0x4a8], eax
jmp 0x475192
cmp dword [ebp - 0x4e0], 0
je 0x4750e6
mov eax, dword [ebp - 0x4e0]
add eax, 0x28
mov dword [ebp - 0x510], eax
jmp 0x4750f0
mov dword [ebp - 0x510], 0
lea ecx, [ebp - 0x2bc]
push ecx
mov edx, dword [ebp - 0x4e0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4e0]
mov edx, dword [eax + 0xa4]
call edx
mov dword [ebp - 0x514], eax
mov eax, dword [ebp - 0x514]
mov dword [ebp - 0x518], eax
mov byte [ebp - 4], 6
push 0
mov ecx, dword [ebp - 0x4e0]
add ecx, 0x2c
push ecx
mov edx, dword [ebp - 0x510]
push edx
push 0
mov ecx, dword [ebp - 0x518]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
mov dword [ebp - 0x4dc], eax
push ecx
mov eax, esp
mov dword [ebp - 0x4c8], esp
mov dword [ebp - 0x4d8], eax
mov ecx, dword [ebp - 0x4d8]
mov edx, dword [ebp - 0x4dc]
mov dword [ecx], edx
lea ecx, [ebp - 0x40c]
call sym.Setup.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 dword [ebp - 0x51c], eax
mov eax, dword [ebp - 0x51c]
mov dword [ebp - 0x4a8], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2bc]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
cmp dword [ebp - 0x4a8], 0
jne 0x4751e4
push 0x4d3b48
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x4a8]
push ecx
mov ecx, dword [ebp - 0x4e0]
add ecx, 0x2c
call sym.Setup.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::AttachDialog_class_DuiLib::CControlUI__
cmp dword [ebp - 0x4e0], 0
je 0x475213
mov edx, dword [ebp - 0x4e0]
add edx, 0x20
mov dword [ebp - 0x520], edx
jmp 0x47521d
mov dword [ebp - 0x520], 0
mov eax, dword [ebp - 0x520]
push eax
mov ecx, dword [ebp - 0x4e0]
add ecx, 0x2c
call sym.Setup.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::AddNotifier_class_DuiLib::INotifyUI__
push 1
mov ecx, dword [ebp - 0x4e0]
add ecx, 0x2c
call sym.Setup.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SetBackgroundTransparent_bool_
mov ecx, dword [ebp - 0x4e0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x4e0]
mov eax, dword [edx + 0x18]
call eax
mov dword [ebp - 0x4d0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x494]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40c]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CMarkup::destructor_void_
mov eax, dword [ebp - 0x4d0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00434ee7
mov esp, ebp
pop ebp
ret 0x10