Function at 0x49cfa0
Capabilities:
Enumerate process modules
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52d1a1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x14d4
call fcn.0050b990
mov eax, dword [0x588790]
xor eax, esp
mov dword [esp + 0x14d0], eax
push ebx
push esi
push edi
mov eax, dword [0x588790]
xor eax, esp
push eax
lea eax, [esp + 0x14e8]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
xor ebx, ebx
cmp esi, ebx
jne 0x49d412
mov edx, dword [sym.zSignInstall.exe_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrResourcePath]
xor ecx, ecx
push 0xffffffffffffffff
lea eax, [esp + 0x1064]
mov word [esp + 0x1064], cx
push edx
lea ecx, [esp + 0x1064]
mov dword [esp + 0x1064], eax
call sym.zSignInstall.exe_public:_void___thiscall_DuiLib::CDuiString::Assign_wchar_t_const___int_
mov dword [esp + 0x14f0], ebx
mov eax, dword [sym.zSignInstall.exe_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrResourceZip]
cmp word [eax], bx
jne 0x49d11a
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x49d04b
push eax
lea ecx, [esp + 0x1060]
call sym.zSignInstall.exe_public:_void___thiscall_DuiLib::CDuiString::Append_wchar_t_const__
mov eax, dword [esp + 0x105c]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x49d09f
mov dword [esp + 0x14f0], 0xffffffff
mov eax, dword [esp + 0x105c]
lea ecx, [esp + 0x1060]
cmp eax, ecx
je 0x49d524
push eax
call fcn.0050567c
add esp, 4
jmp 0x49d524
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jne 0x49d0dc
mov dword [esp + 0x14f0], 0xffffffff
mov eax, dword [esp + 0x105c]
lea edx, [esp + 0x1060]
cmp eax, edx
je 0x49d524
push eax
call fcn.0050567c
add esp, 4
jmp 0x49d524
push esi
mov dword [esp + 0x1c], ebx
call fcn.004ef56e
add esp, 4
push 0
mov ebx, eax
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], esi
je 0x49d3e3
push ebx
call fcn.00506929
add esp, 4
jmp 0x49d070
push eax
lea ecx, [esp + 0x1060]
call sym.zSignInstall.exe_public:_void___thiscall_DuiLib::CDuiString::Append_wchar_t_const__
mov ecx, dword [sym.zSignInstall.exe_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrResourceZipPwd]
push 0xffffffffffffffff
lea edx, [esp + 0x10ec]
xor eax, eax
push ecx
lea ecx, [esp + 0x10ec]
mov dword [esp + 0x10ec], edx
mov word [esp + 0x10f0], ax
call sym.zSignInstall.exe_public:_void___thiscall_DuiLib::CDuiString::Assign_wchar_t_const___int_
mov byte [esp + 0x14f0], 1
cmp byte [sym.zSignInstall.exe_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
je 0x49d16d
mov edi, dword [sym.zSignInstall.exe_void__DuiLib::CPaintManagerUI::m_hResourceZip]
jmp 0x49d1a4
mov edx, dword [esp + 0x10e4]
push edx
call fcn.0048eb70
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x105c]
push 2
push 0
push eax
mov edi, esi
call fcn.00426ef0
add esp, 0xc
mov edi, eax
test esi, esi
je 0x49d1a4
push esi
call fcn.00506929
add esp, 4
test edi, edi
jne 0x49d1e3
mov eax, dword [esp + 0x10e4]
lea ecx, [esp + 0x10e8]
cmp eax, ecx
je 0x49d1c3
push eax
call fcn.0050567c
add esp, 4
mov dword [esp + 0x14f0], 0xffffffff
mov eax, dword [esp + 0x105c]
lea edx, [esp + 0x1060]
cmp eax, edx
jmp 0x49d08b
mov edx, dword [ebp + 8]
xor ecx, ecx
or ebx, 0xffffffff
push ebx
lea eax, [esp + 0x1174]
mov word [esp + 0x1174], cx
push edx
lea ecx, [esp + 0x1174]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1174], eax
call sym.zSignInstall.exe_public:_void___thiscall_DuiLib::CDuiString::Assign_wchar_t_const___int_
push 0x537b74
push 0x536fac
lea ecx, [esp + 0x1174]
mov byte [esp + 0x14f8], 2
call sym.zSignInstall.exe_public:_int___thiscall_DuiLib::CDuiString::Replace_wchar_t_const___wchar_t_const__
cmp dword [edi], 1
je 0x49d246
mov dword [0x58f510], 0x80000
jmp 0x49d26b
mov ecx, dword [esp + 0x116c]
mov edx, dword [edi + 4]
lea eax, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x12b4]
call fcn.004267d0
mov dword [0x58f510], eax
test eax, eax
je 0x49d2bd
mov eax, dword [esp + 0x116c]
lea edx, [esp + 0x1170]
cmp eax, edx
je 0x49d286
push eax
call fcn.0050567c
add esp, 4
mov eax, dword [esp + 0x10e4]
lea ecx, [esp + 0x10e8]
cmp eax, ecx
je 0x49d2a1
push eax
call fcn.0050567c
add esp, 4
mov dword [esp + 0x14f0], ebx
mov eax, dword [esp + 0x105c]
lea edx, [esp + 0x1060]
cmp eax, edx
jmp 0x49d08b
mov esi, dword [esp + 0x14d8]
test esi, esi
jne 0x49d30a
mov eax, dword [esp + 0x116c]
lea ecx, [esp + 0x1170]
cmp eax, ecx
je 0x49d2e3
push eax
call fcn.0050567c
add esp, 4
mov eax, dword [esp + 0x10e4]
lea edx, [esp + 0x10e8]
cmp eax, edx
je 0x49d2fe
push eax
call fcn.0050567c
add esp, 4
mov dword [esp + 0x14f0], ebx
jmp 0x49d07b
push esi
call fcn.004ef56e
add esp, 4
cmp dword [edi], 1
mov ebx, eax
je 0x49d326
mov dword [0x58f510], 0x80000
jmp 0x49d349
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 4]
push 3
push esi
push edx
push eax
mov ecx, ebx
call fcn.004269f0
mov dword [0x58f510], eax
test eax, eax
je 0x49d39f
cmp eax, 0x600
je 0x49d39f
push ebx
call fcn.00506929
add esp, 4
cmp byte [sym.zSignInstall.exe_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
jne 0x49d360
call fcn.00427400
mov eax, dword [esp + 0x116c]
lea ecx, [esp + 0x1170]
cmp eax, ecx
je 0x49d37b
push eax
call fcn.0050567c
add esp, 4
mov eax, dword [esp + 0x10e4]
lea edx, [esp + 0x10e8]
cmp eax, edx
je 0x49d070
push eax
call fcn.0050567c
add esp, 4
jmp 0x49d070
cmp byte [sym.zSignInstall.exe_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
jne 0x49d3ad
call fcn.00427400
mov eax, dword [esp + 0x116c]
lea edx, [esp + 0x1170]
cmp eax, edx
je 0x49d3c8
push eax
call fcn.0050567c
add esp, 4
mov eax, dword [esp + 0x10e4]
lea ecx, [esp + 0x10e8]
cmp eax, ecx
je 0x49d3e3
push eax
call fcn.0050567c
add esp, 4
mov dword [esp + 0x14f0], 0xffffffff
mov eax, dword [esp + 0x105c]
lea edx, [esp + 0x1060]
cmp eax, edx
je 0x49d520
push eax
call fcn.0050567c
add esp, 4
jmp 0x49d520
cmp eax, ebx
jne 0x49d41b
call sym.zSignInstall.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
mov ebx, eax
mov eax, dword [ebp + 8]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x49d4d2
push 0xffc
push eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x38], eax
call fcn.00509940
add esp, 0xc
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push edi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x49d524
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push 0x400
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test dword [esp + 0x18], 0xfffffffc
mov dword [esp + 0x20], edi
jbe 0x49d4c3
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 8]
mov ebx, dword [esp + edx*4 + 0x2c]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x49d4c3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
inc eax
shr ecx, 2
mov dword [esp + 0x20], eax
cmp eax, ecx
jb 0x49d495
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x49d524
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x24], eax
push edi
test eax, eax
jne 0x49d4eb
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x49d524
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x49d524
push esi
call fcn.004ef56e
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x24]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call fcn.00509040
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
jne 0x49d5a1
mov ecx, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x49d59a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x49d59a
push esi
mov dword [esp + 0x20], 0
call fcn.004ef56e
add esp, 4
push 0
lea edx, [esp + 0x20]
push edx
push esi
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x1c], esi
je 0x49d596
push ebx
call fcn.00506929
add esp, 4
xor eax, eax
jmp 0x49d7b2
test ebx, ebx
jne 0x49d5a1
xor eax, eax
jmp 0x49d7b2
xor eax, eax
mov dword [esp + 0x1204], eax
mov dword [esp + 0x1214], eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
add esi, ebx
push ecx
lea eax, [esp + 0x30]
lea ecx, [esp + 0x11fc]
mov dword [esp + 0x12ac], ebx
mov dword [esp + 0x12a4], ebx
mov dword [esp + 0x12b0], esi
mov dword [esp + 0x12a8], esi
call fcn.0048edf0
push ebx
mov esi, eax
call fcn.00506929
add esp, 0xc
test esi, esi
je 0x49d59a
push 0x2c
lea edx, [esp + 0x1034]
push 0
push edx
call fcn.00509940
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add esp, 0xc
push 0
mov dword [esp + 0x1038], edi
imul edi, eax
push 0
mov ecx, eax
neg ecx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1044], ecx
push 0
lea ecx, [esp + 0x1040]
push ecx
lea edx, [edi*4]
push 0
mov dword [esp + 0x1048], 0x28
mov dword [esp + 0x1054], 0x200001
mov dword [esp + 0x1058], 0
mov dword [esp + 0x34], edi
mov dword [esp + 0x105c], edx
xor bl, bl
mov dword [esp + 0x2c], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0x18], eax
test eax, eax
je 0x49d59a
xor ecx, ecx
test edi, edi
jle 0x49d76a
mov eax, dword [esp + 0x14]
jmp 0x49d6a0
mov dl, byte [esi + ecx*4 + 3]
mov byte [eax + ecx*4 + 3], dl
mov edi, dword [esp + 0x14]
cmp byte [edi + ecx*4 + 3], 0xff
jae 0x49d70e
movzx eax, byte [esi + ecx*4 + 3]
movzx edx, byte [esi + ecx*4 + 2]
imul edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
mov byte [edi + ecx*4], dl
movzx eax, byte [esi + ecx*4 + 3]
movzx edx, byte [esi + ecx*4 + 1]
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esp + 0x14]
shr edx, 7
mov byte [eax + ecx*4 + 1], dl
movzx eax, byte [esi + ecx*4 + 3]
movzx edx, byte [esi + ecx*4]
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esp + 0x14]
shr edx, 7
mov byte [eax + ecx*4 + 2], dl
mov bl, 1
jmp 0x49d72e
mov dl, byte [esi + ecx*4 + 2]
mov byte [edi + ecx*4], dl
movzx eax, byte [esi + ecx*4 + 1]
mov edx, dword [esp + 0x14]
mov byte [edx + ecx*4 + 1], al
movzx eax, byte [esi + ecx*4]
mov edx, dword [esp + 0x14]
mov byte [edx + ecx*4 + 2], al
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0x10]
cmp dword [eax + ecx*4], edx
jne 0x49d75f
mov byte [eax + ecx*4], 0
mov eax, dword [esp + 0x14]
mov byte [eax + ecx*4 + 1], 0
mov edx, dword [esp + 0x14]
mov byte [edx + ecx*4 + 2], 0
mov eax, dword [esp + 0x14]
mov byte [eax + ecx*4 + 3], 0
mov eax, dword [esp + 0x14]
mov bl, 1
inc ecx
cmp ecx, dword [esp + 0x1c]
jl 0x49d6a0
push esi
call fcn.0050567c
add esp, 4
push 0xa0
call fcn.004a47f3
xor edx, edx
add esp, 4
cmp eax, edx
je 0x49d793
lea ecx, [eax + 0x1c]
xor esi, esi
mov dword [eax + 0x18], ecx
mov word [ecx], si
jmp 0x49d795
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov edx, dword [esp + 0x20]
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov byte [eax + 0x14], bl
mov ecx, dword [esp + 0x14e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14d0]
xor ecx, esp
call fcn.00503edf
mov esp, ebp
pop ebp
ret