Function at 0x435d60
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1ba5
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x5023a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x2f8], 0
cmp dword [ebp + 0x10], 0
jne 0x436065
mov ecx, dword [ebp + 0xc]
call sym.Setup.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0xc0]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
call sym.Setup.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.Setup.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
movzx eax, al
test eax, eax
je 0x435f18
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xc0]
call sym.Setup.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xc0]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0xffffffff
jne 0x435e38
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x43613c
push 0
mov edx, dword [ebp - 0x314]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2f8], eax
cmp dword [ebp - 0x2f8], 0
jne 0x435e6d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x43613c
mov dword [ebp - 0x32c], 0
mov eax, dword [ebp - 0x2f8]
push eax
call fcn.004978aa
add esp, 4
mov dword [ebp - 0x344], eax
mov ecx, dword [ebp - 0x344]
mov dword [ebp - 0x2fc], ecx
push 0
lea edx, [ebp - 0x32c]
push edx
mov eax, dword [ebp - 0x2f8]
push eax
mov ecx, dword [ebp - 0x2fc]
push ecx
mov edx, dword [ebp - 0x314]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x32c]
cmp ecx, dword [ebp - 0x2f8]
je 0x435f13
mov edx, dword [ebp - 0x2fc]
mov dword [ebp - 0x348], edx
mov eax, dword [ebp - 0x348]
push eax
call fcn.0049766a
add esp, 4
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x43613c
jmp 0x43604e
mov ecx, dword [ebp + 0xc]
call sym.Setup.exe_public:_void____thiscall_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
mov dword [ebp - 0x324], eax
cmp dword [ebp - 0x324], 0
jne 0x435f46
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x43613c
lea ecx, [ebp - 0x2f0]
push ecx
lea edx, [ebp - 0x350]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x324]
push ecx
call fcn.004567e0
add esp, 0x14
test eax, eax
je 0x435f84
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x43613c
mov edx, dword [ebp - 0xc4]
mov dword [ebp - 0x2f8], edx
cmp dword [ebp - 0x2f8], 0
jne 0x435fb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x43613c
mov eax, dword [ebp - 0x2f8]
push eax
call fcn.004978aa
add esp, 4
mov dword [ebp - 0x34c], eax
mov ecx, dword [ebp - 0x34c]
mov dword [ebp - 0x2fc], ecx
push 3
mov edx, dword [ebp - 0x2f8]
push edx
mov eax, dword [ebp - 0x2fc]
push eax
mov ecx, dword [ebp - 0x350]
push ecx
mov edx, dword [ebp - 0x324]
push edx
call fcn.00457970
add esp, 0x14
mov dword [ebp - 0x33c], eax
cmp dword [ebp - 0x33c], 0
je 0x43604e
cmp dword [ebp - 0x33c], 0x600
je 0x43604e
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x354], eax
mov ecx, dword [ebp - 0x354]
push ecx
call fcn.0049766a
add esp, 4
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x43613c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x436134
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
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 - 0x310], eax
cmp dword [ebp - 0x310], 0
jne 0x43608d
jmp 0x43613c
mov ecx, dword [ebp - 0x310]
push ecx
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 - 0x338], eax
cmp dword [ebp - 0x338], 0
jne 0x4360be
mov edx, dword [ebp - 0x310]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x43613c
mov eax, dword [ebp - 0x310]
push eax
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 - 0x2f8], eax
cmp dword [ebp - 0x2f8], 0
jne 0x4360e2
jmp 0x43613c
mov ecx, dword [ebp - 0x2f8]
push ecx
call fcn.004978aa
add esp, 4
mov dword [ebp - 0x358], eax
mov edx, dword [ebp - 0x358]
mov dword [ebp - 0x2fc], edx
mov eax, dword [ebp - 0x2f8]
push eax
mov ecx, dword [ebp - 0x338]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov edx, dword [ebp - 0x2fc]
push edx
call fcn.0049afe0
add esp, 0xc
mov eax, dword [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor ecx, ecx
jne 0x435da0
cmp dword [ebp - 0x2fc], 0
jne 0x436232
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x318], 0xffffffff
jne 0x436179
jmp 0x436232
push 0
mov eax, dword [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2f8], eax
cmp dword [ebp - 0x2f8], 0
jne 0x43619c
jmp 0x436232
mov dword [ebp - 0x340], 0
mov ecx, dword [ebp - 0x2f8]
push ecx
call fcn.004978aa
add esp, 4
mov dword [ebp - 0x35c], eax
mov edx, dword [ebp - 0x35c]
mov dword [ebp - 0x2fc], edx
push 0
lea eax, [ebp - 0x340]
push eax
mov ecx, dword [ebp - 0x2f8]
push ecx
mov edx, dword [ebp - 0x2fc]
push edx
mov eax, dword [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x318]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x340]
cmp edx, dword [ebp - 0x2f8]
je 0x43622b
mov eax, dword [ebp - 0x2fc]
mov dword [ebp - 0x360], eax
mov ecx, dword [ebp - 0x360]
push ecx
call fcn.0049766a
add esp, 4
mov dword [ebp - 0x2fc], 0
jmp 0x436232
cmp dword [ebp - 0x2fc], 0
jne 0x436242
xor eax, eax
jmp 0x436611
mov dword [ebp - 0x308], 0
push 4
lea edx, [ebp - 0x36c]
push edx
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x31c]
push ecx
mov edx, dword [ebp - 0x2f8]
push edx
mov eax, dword [ebp - 0x2fc]
push eax
call fcn.004778c0
add esp, 0x18
mov dword [ebp - 0x308], eax
mov ecx, dword [ebp - 0x2fc]
mov dword [ebp - 0x364], ecx
mov edx, dword [ebp - 0x364]
push edx
call fcn.0049766a
add esp, 4
cmp dword [ebp - 0x308], 0
jne 0x4362aa
xor eax, eax
jmp 0x436611
push 0x2c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.0049b560
add esp, 0xc
mov dword [ebp - 0x3c], 0x28
mov ecx, dword [ebp - 0x31c]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x320]
neg edx
mov dword [ebp - 0x34], edx
mov eax, 1
mov word [ebp - 0x30], ax
mov ecx, 0x20
mov word [ebp - 0x2e], cx
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x31c]
imul edx, dword [ebp - 0x320]
shl edx, 2
mov dword [ebp - 0x28], edx
mov byte [ebp - 0x301], 0
mov dword [ebp - 0x300], 0
push 0
push 0
lea eax, [ebp - 0x300]
push eax
push 0
lea ecx, [ebp - 0x3c]
push ecx
push 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x334], eax
cmp dword [ebp - 0x334], 0
jne 0x436341
xor eax, eax
jmp 0x436611
mov dword [ebp - 0x2f4], 0
jmp 0x43635c
mov edx, dword [ebp - 0x2f4]
add edx, 1
mov dword [ebp - 0x2f4], edx
mov eax, dword [ebp - 0x31c]
imul eax, dword [ebp - 0x320]
cmp dword [ebp - 0x2f4], eax
jge 0x436533
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x300]
mov eax, dword [ebp - 0x2f4]
mov esi, dword [ebp - 0x308]
mov al, byte [esi + eax*4 + 3]
mov byte [edx + ecx*4 + 3], al
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x300]
movzx eax, byte [edx + ecx*4 + 3]
cmp eax, 0xff
jge 0x436472
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x308]
movzx eax, byte [edx + ecx*4 + 2]
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x308]
movzx ecx, byte [edx + ecx*4 + 3]
imul eax, ecx
xor edx, edx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x300]
mov byte [ecx + edx*4], al
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x308]
movzx eax, byte [eax + edx*4 + 1]
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x308]
movzx ecx, byte [edx + ecx*4 + 3]
imul eax, ecx
xor edx, edx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x300]
mov byte [ecx + edx*4 + 1], al
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x308]
movzx eax, byte [eax + edx*4]
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x308]
movzx ecx, byte [edx + ecx*4 + 3]
imul eax, ecx
xor edx, edx
mov ecx, 0xff
div ecx
mov edx, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x300]
mov byte [ecx + edx*4 + 2], al
mov byte [ebp - 0x301], 1
jmp 0x4364d0
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x300]
mov ecx, dword [ebp - 0x2f4]
mov esi, dword [ebp - 0x308]
mov cl, byte [esi + ecx*4 + 2]
mov byte [eax + edx*4], cl
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x300]
mov ecx, dword [ebp - 0x2f4]
mov esi, dword [ebp - 0x308]
mov cl, byte [esi + ecx*4 + 1]
mov byte [eax + edx*4 + 1], cl
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x300]
mov ecx, dword [ebp - 0x2f4]
mov esi, dword [ebp - 0x308]
mov cl, byte [esi + ecx*4]
mov byte [eax + edx*4 + 2], cl
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x300]
mov ecx, dword [eax + edx*4]
cmp ecx, dword [ebp + 0x14]
jne 0x43652e
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x300]
mov byte [eax + edx*4], 0
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x300]
mov byte [edx + ecx*4 + 1], 0
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x300]
mov byte [ecx + eax*4 + 2], 0
mov edx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x300]
mov byte [eax + edx*4 + 3], 0
mov byte [ebp - 0x301], 1
jmp 0x43634d
mov ecx, dword [ebp - 0x308]
push ecx
call fcn.004778a0
add esp, 4
push 0xa0
call fcn.0049786c
add esp, 4
mov dword [ebp - 0x328], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x328], 0
je 0x436581
mov ecx, dword [ebp - 0x328]
add ecx, 0x18
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_void_
mov edx, dword [ebp - 0x328]
mov dword [ebp - 0x330], edx
jmp 0x43658b
mov dword [ebp - 0x330], 0
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x368], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x368]
mov dword [ebp - 0x30c], ecx
mov edx, dword [ebp - 0x30c]
mov eax, dword [ebp - 0x334]
mov dword [edx], eax
mov ecx, dword [ebp - 0x30c]
mov edx, dword [ebp - 0x300]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x30c]
mov ecx, dword [ebp - 0x31c]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x30c]
mov eax, dword [ebp - 0x320]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x30c]
mov dl, byte [ebp - 0x301]
mov byte [ecx + 0x14], dl
mov eax, dword [ebp - 0x30c]
mov byte [eax + 0x15], 0
mov ecx, dword [ebp - 0x30c]
mov dword [ecx + 8], 0
mov eax, dword [ebp - 0x30c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049765c
mov esp, ebp
pop ebp
ret