Function at 0x47fcc0
Capabilities:
Extract resource via kernel32 functions
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ed20
mov eax, dword fs:[0]
push eax
sub esp, 0x3c4
mov eax, dword [0x59c388]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x3d0], esi
test esi, esi
jne 0x47ff3d
call sym.uninstaller.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0xc0]
call sym.uninstaller.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
mov dword [ebp - 4], edi
call sym.uninstaller.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.uninstaller.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
je 0x47fe0c
push dword [ebp + 8]
lea ecx, [ebp - 0xc0]
call sym.uninstaller.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push edi
push 0x80
push 3
push edi
push 1
push accept
lea ecx, [ebp - 0xc0]
call sym.uninstaller.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x3b8], ebx
cmp ebx, 0xffffffff
jne 0x47fd79
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc0]
call sym.uninstaller.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x47ffff
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x47fda7
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call sym.uninstaller.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x47ffff
push edi
mov dword [ebp - 0x3c8], 0
call fcn.004f3ae2
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x3c8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x3b8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3b8]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
cmp dword [ebp - 0x3c8], edi
je 0x47ff26
push ebx
call fcn.004f3d9c
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call sym.uninstaller.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x47ffff
call sym.uninstaller.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0xc0]
call sym.uninstaller.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
call sym.uninstaller.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x47fe2d
call sym.uninstaller.exe_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x47fe47
call sym.uninstaller.exe_public:_static_char_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZipPassword_void_
push eax
lea ecx, [ebp - 0xc0]
call sym.uninstaller.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.00475660
add esp, 8
mov dword [ebp - 0x3b4], eax
test eax, eax
jne 0x47fe68
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call sym.uninstaller.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x47ffff
lea ecx, [ebp - 0x3a8]
push ecx
lea ecx, [ebp - 0x3c4]
push ecx
push 1
push dword [ebp + 8]
push eax
call fcn.00474d90
add esp, 0x14
test eax, eax
je 0x47fe9f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call sym.uninstaller.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x47ffff
mov edi, dword [ebp - 0x17c]
test edi, edi
jne 0x47fec0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call sym.uninstaller.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x47ffff
push edi
call fcn.004f3ae2
push edi
mov ebx, eax
push ebx
push dword [ebp - 0x3c4]
push dword [ebp - 0x3b4]
call fcn.00475c90
add esp, 0x14
test eax, eax
je 0x47ff0f
cmp eax, 0x600
je 0x47ff0f
push ebx
call fcn.004f3d9c
add esp, 4
call sym.uninstaller.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x47fdf5
push dword [ebp - 0x3b4]
call fcn.00474630
jmp 0x47fdf2
call sym.uninstaller.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x47ff26
push dword [ebp - 0x3b4]
call fcn.00474630
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call sym.uninstaller.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x47fff7
mov ecx, str.COLOR
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47ff6a
test dx, dx
je 0x47ff66
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47ff6a
add eax, 4
add ecx, 4
test dx, dx
jne 0x47ff44
xor eax, eax
jmp 0x47ff6f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x47ff7b
lea ebx, [eax + 1]
jmp 0x4800aa
push esi
push dword [ebp + 8]
call sym.uninstaller.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
mov dword [ebp - 0x3bc], ebx
test ebx, ebx
je 0x47ffff
push ebx
call sym.uninstaller.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x3c4], eax
push ebx
test eax, eax
jne 0x47ffb7
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x47ffff
call sym.uninstaller.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x47ffff
push edi
call fcn.004f3ae2
add esp, 4
mov ebx, eax
push edi
push dword [ebp - 0x3c4]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call fcn.0050b2a0
add esp, 0xc
push dword [ebp - 0x3bc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
jne 0x4800aa
push 0
push 0x80
push 3
push 0
push 1
push accept
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x3b8], ebx
cmp ebx, 0xffffffff
je 0x48003d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x48005b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f3d68
mov esp, ebp
pop ebp
ret
push edi
mov dword [ebp - 0x3bc], 0
call fcn.004f3ae2
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x3bc]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x3b8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3bc], edi
je 0x4800a6
push ebx
call fcn.004f3d9c
add esp, 4
jmp 0x48003d
test ebx, ebx
je 0x48003d
mov dword [ebp - 0x3b4], 0
mov dword [ebp - 0x3cc], 1
mov dword [ebp - 0x3b8], 1
test esi, esi
je 0x480102
mov ecx, str.COLOR
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4800f9
test dx, dx
je 0x4800f5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4800f9
add eax, 4
add ecx, 4
test dx, dx
jne 0x4800d3
xor eax, eax
jmp 0x4800fe
sbb eax, eax
or eax, 1
test eax, eax
je 0x48016d
lea eax, [edi + ebx]
mov dword [ebp - 0x168], 0
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0x3b4]
push 4
push eax
lea eax, [ebp - 0x3b8]
mov dword [ebp - 0x158], 0
push eax
lea eax, [ebp - 0x3cc]
mov dword [ebp - 0xc8], ebx
push eax
lea eax, [ebp - 0x178]
mov dword [ebp - 0xd0], ebx
push eax
call fcn.00488450
mov edi, eax
push ebx
mov dword [ebp - 0x3b4], edi
call fcn.004f3d9c
add esp, 0x18
test edi, edi
je 0x48003d
mov edx, dword [ebp - 0x3b8]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x3cc]
mov ebx, edx
imul ebx, ecx
mov eax, edx
neg eax
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x34], eax
push 0
push 0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x3c], 0x28
lea eax, [ebx*4]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3b0]
push eax
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x30], 0x200001
push eax
push 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3a9], 0
mov dword [ebp - 0x3b0], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x3c8], eax
test eax, eax
je 0x48003d
mov dword [ebp - 0x3c0], 0
test esi, esi
je 0x48029a
mov ecx, str.COLOR
mov eax, esi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x480236
test dx, dx
je 0x480232
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x480236
add eax, 4
add ecx, 4
test dx, dx
jne 0x480210
xor eax, eax
jmp 0x48023b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x48029a
mov dword [ebp - 0x3c4], eax
mov eax, dword [ebp + 8]
cmp word [eax], 0x23
jne 0x480255
push eax
call dword [sym.imp.USER32.dll_CharNextW]
push 0x10
lea ecx, [ebp - 0x3c4]
push ecx
push eax
call fcn.0051c7a9
mov ecx, eax
mov byte [ebp - 0x3be], al
shr ecx, 0x18
lea edx, [ebp - 0x3c0]
mov byte [ebp - 0x3bd], cl
add esp, 0xc
mov ecx, eax
mov dword [ebp - 0x3b4], edx
shr ecx, 8
shr eax, 0x10
mov byte [ebp - 0x3bf], cl
mov byte [ebp - 0x3c0], al
jmp 0x4802a0
mov edx, dword [ebp - 0x3b4]
xor edi, edi
test ebx, ebx
jle 0x4803b3
mov esi, ebx
nop dword [eax]
mov eax, dword [ebp - 0x3b0]
mov cl, byte [edx + edi*4 + 3]
mov byte [eax + edi*4 + 3], cl
mov eax, dword [ebp - 0x3b0]
cmp byte [eax + edi*4 + 3], 0xff
lea ebx, [eax + edi*4]
jae 0x48033e
movzx eax, byte [edx + edi*4 + 3]
movzx ecx, byte [edx + edi*4 + 2]
imul ecx, eax
mov eax, 0x80808081
mul ecx
shr edx, 7
mov byte [ebx], dl
mov ebx, dword [ebp - 0x3b4]
movzx eax, byte [ebx + edi*4 + 3]
movzx ecx, byte [ebx + edi*4 + 1]
imul ecx, eax
mov eax, 0x80808081
mul ecx
mov eax, dword [ebp - 0x3b0]
shr edx, 7
mov byte [eax + edi*4 + 1], dl
movzx eax, byte [ebx + edi*4 + 3]
movzx ecx, byte [ebx + edi*4]
mov bl, 1
imul ecx, eax
mov eax, 0x80808081
mov byte [ebp - 0x3a9], bl
mul ecx
mov eax, dword [ebp - 0x3b0]
shr edx, 7
mov byte [eax + edi*4 + 2], dl
mov edx, dword [ebp - 0x3b4]
jmp 0x480367
mov al, byte [edx + edi*4 + 2]
mov byte [ebx], al
mov eax, dword [ebp - 0x3b0]
movzx ecx, byte [edx + edi*4 + 1]
mov bl, byte [ebp - 0x3a9]
mov byte [eax + edi*4 + 1], cl
mov eax, dword [ebp - 0x3b0]
movzx ecx, byte [edx + edi*4]
mov byte [eax + edi*4 + 2], cl
mov eax, dword [ebp - 0x3b0]
mov ecx, dword [ebp + 0x10]
cmp dword [eax + edi*4], ecx
jne 0x4803a2
mov byte [eax + edi*4], 0
mov bl, 1
mov eax, dword [ebp - 0x3b0]
mov byte [ebp - 0x3a9], bl
mov byte [eax + edi*4 + 1], 0
mov eax, dword [ebp - 0x3b0]
mov byte [eax + edi*4 + 2], 0
mov eax, dword [ebp - 0x3b0]
mov byte [eax + edi*4 + 3], 0
inc edi
cmp edi, esi
jl 0x4802b0
mov esi, dword [ebp - 0x3d0]
jmp 0x4803b9
mov bl, byte [ebp - 0x3a9]
test esi, esi
je 0x4803f1
mov eax, str.COLOR
mov cx, word [esi]
cmp cx, word [eax]
jne 0x4803e8
test cx, cx
je 0x4803e4
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x4803e8
add esi, 4
add eax, 4
test cx, cx
jne 0x4803c2
xor eax, eax
jmp 0x4803ed
sbb eax, eax
or eax, 1
test eax, eax
je 0x4803fa
push edx
call fcn.005107b2
add esp, 4
push 0xa0
call fcn.004f3aa4
add esp, 4
mov dword [ebp - 0x3d0], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x480423
mov ecx, eax
call sym.uninstaller.exe_public:_void___thiscall_DuiLib::tagTImageInfo::constructor_void_
mov ecx, eax
jmp 0x480425
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x3b0]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x3cc]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x3b8]
mov dword [ecx + 0x10], eax
mov eax, ecx
mov byte [ecx + 0x14], bl
mov byte [ecx + 0x15], 0
mov dword [ecx + 8], 0
jmp 0x48003f