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

Disassembly:
push 0x268
mov eax, 0x1029b73c
call fcn.1010062a
mov edi, ecx
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x20]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x14]
xor esi, esi
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 esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
push dword [edi + 4]
lea ebx, [edi + 0x2c]
mov ecx, ebx
call sym.nsDui.dll_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
je 0x100a5a69
push ecx
lea ecx, [edi + 0x2fc]
call sym.nsDui.dll_public:_bool___thiscall_DuiLib::CDuiPtrArray::Add_void__
lea ecx, [ebp - 0x270]
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CDialogBuilder::constructor_void_
push sym.nsDui.dll_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrResourcePath
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], esi
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x128]
cmp word [eax], si
jne 0x100a5aee
lea eax, [ebp - 0xa4]
push eax
call sym.nsDui.dll_public:_static_class_DuiLib::CDuiString___cdecl_DuiLib::CPaintManagerUI::GetInstancePath_void_
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x128]
push dword [eax]
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CDuiString::Assign_wchar_t_const___int_
lea ecx, [ebp - 0xa4]
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov eax, dword [edi]
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, edi
call dword [eax + 0x20]
cmp dword [eax], 0
je 0x100a5add
push dword [eax]
lea ecx, [ebp - 0x128]
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CDuiString::Append_wchar_t_const__
lea ecx, [ebp - 0xa4]
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov eax, dword [ebp - 0x128]
push eax
call sym.nsDui.dll_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 0x100a5be0
dec eax
sub eax, 1
jne 0x100a5c0c
cmp dword [sym.nsDui.dll_unsigned_char__DuiLib::WindowImplBase::m_lpResourceZIPBuffer], eax
jne 0x100a5c0c
mov esi, dword [sym.nsDui.dll_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hResourceInstance]
mov ecx, edi
mov eax, dword [edi]
test esi, esi
push 0x103322fc
cmove esi, dword [sym.nsDui.dll_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hInstance]
call dword [eax + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x100a5ce0
mov eax, dword [sym.nsDui.dll_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hResourceInstance]
test eax, eax
push esi
cmove eax, dword [sym.nsDui.dll_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hInstance]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push esi
test ebx, ebx
jne 0x100a5b71
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x100a5ce0
mov eax, dword [sym.nsDui.dll_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hResourceInstance]
test eax, eax
cmove eax, dword [sym.nsDui.dll_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hInstance]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [sym.nsDui.dll_unsigned_long_int_DuiLib::WindowImplBase::m_dwResourceSize], eax
test eax, eax
je 0x100a5ce0
push eax
call fcn.10100009
mov dword [sym.nsDui.dll_unsigned_char__DuiLib::WindowImplBase::m_lpResourceZIPBuffer], eax
pop ecx
test eax, eax
je 0x100a5bbf
push dword [sym.nsDui.dll_unsigned_long_int_DuiLib::WindowImplBase::m_dwResourceSize]
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [sym.nsDui.dll_unsigned_char__DuiLib::WindowImplBase::m_lpResourceZIPBuffer]
call fcn.1026b580
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [sym.nsDui.dll_unsigned_long_int_DuiLib::WindowImplBase::m_dwResourceSize]
push dword [sym.nsDui.dll_unsigned_char__DuiLib::WindowImplBase::m_lpResourceZIPBuffer]
call sym.nsDui.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourceZip_void___unsigned_int_
pop ecx
pop ecx
lea ebx, [edi + 0x2c]
xor esi, esi
jmp 0x100a5c0c
mov eax, dword [edi]
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, edi
call dword [eax + 0x30]
mov byte [ebp - 4], 2
push 1
push dword [eax]
call sym.nsDui.dll_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.nsDui.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
lea ecx, [ebp - 0xa4]
cmp eax, 3
mov eax, dword [edi]
push ecx
mov ecx, edi
jne 0x100a5c60
call dword [eax + 0x24]
push dword [eax]
call fcn.1027a3b9
pop ecx
lea ecx, [ebp - 0xa4]
movzx esi, ax
call sym.nsDui.dll_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 0x1033230c
push esi
lea ecx, [ebp - 0x270]
call sym.nsDui.dll_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 0x100a5c99
call dword [eax + 0x24]
mov ecx, edi
mov byte [ebp - 4], 3
mov edx, dword [eax]
neg ecx
push esi
sbb ecx, ecx
lea eax, [edi + 0x28]
and ecx, eax
push ebx
push ecx
push esi
push ecx
mov eax, esp
lea ecx, [ebp - 0x270]
mov dword [eax], edx
call sym.nsDui.dll_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.nsDui.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
test esi, esi
jne 0x100a5cb8
push 0x10
push str.Duilib
push 0x10332324
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.nsDui.dll_public:_bool___thiscall_DuiLib::CPaintManagerUI::AttachDialog_class_DuiLib::CControlUI__
mov edx, edi
lea eax, [edi + 0x20]
neg edx
sbb edx, edx
and edx, eax
je 0x100a5cd9
push edx
lea ecx, [edi + 0x2e4]
call sym.nsDui.dll_public:_bool___thiscall_DuiLib::CDuiPtrArray::Add_void__
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
lea ecx, [ebp - 0x128]
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
lea ecx, [ebp - 0x270]
call sym.nsDui.dll_public:_void___thiscall_DuiLib::CMarkup::Release_void_
xor eax, eax
call fcn.101005d4
ret 0x10