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

Disassembly:
push 0x310
mov eax, 0x4df7f7
call fcn.004b653c
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x314], eax
mov esi, ebx
test eax, eax
jne 0x43c47f
call sym.GameDownloader.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0xc0]
call sym.GameDownloader.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
mov dword [ebp - 4], ebx
call sym.GameDownloader.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.GameDownloader.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
je 0x43c38d
push dword [ebp + 8]
lea ecx, [ebp - 0xc0]
call sym.GameDownloader.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push ebx
push 0x80
push 3
push ebx
inc ebx
lea ecx, [ebp - 0xc0]
push ebx
push closesocket
call sym.GameDownloader.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x2fc], edi
cmp edi, 0xffffffff
jne 0x43c32d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call sym.GameDownloader.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x43c540
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x43c345
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43c319
and dword [ebp - 0x318], 0
push esi
call fcn.004b5f5f
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x318]
push eax
push esi
push edi
push dword [ebp - 0x2fc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2fc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x318], esi
je 0x43c46b
push edi
call fcn.004b5d5d
pop ecx
jmp 0x43c319
call sym.GameDownloader.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0xc0]
call sym.GameDownloader.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
call sym.GameDownloader.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x43c3ae
call sym.GameDownloader.exe_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x43c3c5
push 2
push ebx
lea ecx, [ebp - 0xc0]
call sym.GameDownloader.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.00440e72
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 0x2f8], eax
inc ebx
test eax, eax
je 0x43c319
lea ecx, [ebp - 0x2f0]
push ecx
lea ecx, [ebp - 0x304]
push ecx
push ebx
push dword [ebp + 8]
push eax
call fcn.004408e7
add esp, 0x14
test eax, eax
jne 0x43c319
mov esi, dword [ebp - 0xc4]
test esi, esi
je 0x43c319
push esi
call fcn.004b5f5f
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x304]
push dword [ebp - 0x2f8]
call fcn.0044125c
add esp, 0x18
test eax, eax
je 0x43c456
cmp eax, 0x600
je 0x43c456
push edi
call fcn.004b5d5d
pop ecx
call sym.GameDownloader.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x43c319
push dword [ebp - 0x2f8]
call fcn.00440713
jmp 0x43c38a
call sym.GameDownloader.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x43c46b
push dword [ebp - 0x2f8]
call fcn.00440713
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call sym.GameDownloader.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x43c538
mov edx, 0x4e9b60
mov ecx, eax
mov di, word [ecx]
xor ebx, ebx
inc ebx
cmp di, word [edx]
jne 0x43c4af
test di, di
je 0x43c4ab
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x43c4af
add ecx, 4
add edx, 4
test di, di
jne 0x43c486
xor ecx, ecx
jmp 0x43c4b3
sbb ecx, ecx
or ecx, ebx
test ecx, ecx
jne 0x43c4be
mov edi, ebx
jmp 0x43c5d2
push eax
push dword [ebp + 8]
call sym.GameDownloader.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [ebp - 0x300], esi
test esi, esi
je 0x43c540
push esi
call sym.GameDownloader.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x304], eax
push esi
test eax, eax
jne 0x43c4fa
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x43c540
call sym.GameDownloader.exe_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x43c540
push esi
call fcn.004b5f5f
pop ecx
push esi
push dword [ebp - 0x304]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.004b76c0
add esp, 0xc
push dword [ebp - 0x300]
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
jne 0x43c5cc
xor esi, esi
push esi
push 0x80
push 3
push esi
push ebx
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x2fc], edi
cmp edi, 0xffffffff
je 0x43c57c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x43c584
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.004b64fa
ret
and dword [ebp - 0x300], 0
push esi
call fcn.004b5f5f
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x300]
push eax
push esi
push edi
push dword [ebp - 0x2fc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2fc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x300], esi
je 0x43c5c8
push edi
call fcn.004b5d5d
pop ecx
jmp 0x43c57c
test edi, edi
je 0x43c57c
mov eax, dword [ebp - 0x314]
and dword [ebp - 0x2fc], 0
mov ecx, ebx
mov dword [ebp - 0x30c], ebx
mov dword [ebp - 0x310], ecx
test eax, eax
je 0x43c62f
mov edx, 0x4e9b60
mov cx, word [eax]
cmp cx, word [edx]
mov ecx, ebx
jne 0x43c627
cmp word [eax], 0
je 0x43c623
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
mov word [ebp - 0x2f6], cx
mov ecx, ebx
jne 0x43c627
add eax, 4
add edx, 4
cmp word [ebp - 0x2f6], 0
jne 0x43c5f0
xor eax, eax
jmp 0x43c62b
sbb eax, eax
or eax, ebx
test eax, eax
je 0x43c66c
push 4
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x30c]
push eax
push esi
push edi
call fcn.0046361a
mov esi, eax
push edi
mov dword [ebp - 0x2fc], esi
call fcn.004b5d5d
add esp, 0x1c
test esi, esi
je 0x43c57c
mov ecx, dword [ebp - 0x310]
mov edx, dword [ebp - 0x30c]
mov eax, ecx
and dword [ebp - 0x14], 0
neg eax
and dword [ebp - 0x2c], 0
xorps xmm0, xmm0
imul ecx, edx
push 0x20
mov dword [ebp - 0x34], eax
pop eax
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x2f4]
shl ecx, 2
mov dword [ebp - 0x28], ecx
xor ecx, ecx
push ecx
push ecx
push eax
push ecx
lea eax, [ebp - 0x3c]
movlpd qword [ebp - 0x24], xmm0
push eax
push ecx
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x3c], 0x28
mov dword [ebp - 0x38], edx
mov word [ebp - 0x30], bx
mov byte [ebp - 0x2f5], cl
mov dword [ebp - 0x2f4], ecx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x318], eax
test eax, eax
je 0x43c57c
and dword [ebp - 0x308], 0
mov edi, dword [ebp - 0x314]
test edi, edi
je 0x43c780
mov edx, 0x4e9b60
mov ecx, edi
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x43c71f
test ax, ax
je 0x43c71b
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x43c71f
add ecx, 4
add edx, 4
test ax, ax
jne 0x43c6f9
xor eax, eax
jmp 0x43c723
sbb eax, eax
or eax, ebx
test eax, eax
jne 0x43c780
and dword [ebp - 0x304], eax
mov eax, dword [ebp + 8]
cmp word [eax], 0x23
jne 0x43c73d
push eax
call dword [sym.imp.USER32.dll_CharNextW]
push 0x10
lea ecx, [ebp - 0x304]
push ecx
push eax
call fcn.004c94a4
mov ecx, eax
mov byte [ebp - 0x306], al
shr ecx, 0x18
add esp, 0xc
mov byte [ebp - 0x305], cl
mov ecx, eax
shr ecx, 8
shr eax, 0x10
mov byte [ebp - 0x308], al
lea eax, [ebp - 0x308]
mov byte [ebp - 0x307], cl
mov dword [ebp - 0x2fc], eax
mov eax, dword [ebp - 0x310]
xor esi, esi
imul eax, dword [ebp - 0x30c]
test eax, eax
jle 0x43c89e
mov edi, dword [ebp - 0x2fc]
mov edx, 0xff
mov eax, dword [ebp - 0x2f4]
mov cl, byte [edi + esi*4 + 3]
mov byte [eax + esi*4 + 3], cl
mov ecx, dword [ebp - 0x2f4]
cmp byte [ecx + esi*4 + 3], dl
jae 0x43c827
movzx ecx, byte [edi + esi*4 + 2]
xor edx, edx
movzx eax, byte [edi + esi*4 + 3]
imul eax, ecx
mov ecx, 0xff
mov byte [ebp - 0x2f5], bl
div ecx
mov ecx, dword [ebp - 0x2f4]
xor edx, edx
mov byte [ecx + esi*4], al
movzx ecx, byte [edi + esi*4 + 3]
movzx eax, byte [edi + esi*4 + 1]
imul eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 0x2f4]
xor edx, edx
mov byte [ecx + esi*4 + 1], al
movzx ecx, byte [edi + esi*4]
movzx eax, byte [edi + esi*4 + 3]
imul eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 0x2f4]
mov edx, 0xff
mov byte [ecx + esi*4 + 2], al
jmp 0x43c849
mov al, byte [edi + esi*4 + 2]
mov byte [ecx + esi*4], al
mov eax, dword [ebp - 0x2f4]
mov cl, byte [edi + esi*4 + 1]
mov byte [eax + esi*4 + 1], cl
mov eax, dword [ebp - 0x2f4]
mov cl, byte [edi + esi*4]
mov byte [eax + esi*4 + 2], cl
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [ebp + 0x10]
cmp dword [eax + esi*4], ecx
jne 0x43c882
mov byte [eax + esi*4], 0
mov eax, dword [ebp - 0x2f4]
mov byte [ebp - 0x2f5], bl
mov byte [eax + esi*4 + 1], 0
mov eax, dword [ebp - 0x2f4]
mov byte [eax + esi*4 + 2], 0
mov eax, dword [ebp - 0x2f4]
mov byte [eax + esi*4 + 3], 0
mov eax, dword [ebp - 0x310]
inc esi
imul eax, dword [ebp - 0x30c]
cmp esi, eax
jl 0x43c7a2
mov edi, dword [ebp - 0x314]
test edi, edi
je 0x43c8d5
mov eax, 0x4e9b60
mov cx, word [edi]
cmp cx, word [eax]
jne 0x43c8cd
test cx, cx
je 0x43c8c9
mov cx, word [edi + 2]
cmp cx, word [eax + 2]
jne 0x43c8cd
add edi, 4
add eax, 4
test cx, cx
jne 0x43c8a7
xor eax, eax
jmp 0x43c8d1
sbb eax, eax
or eax, ebx
test eax, eax
je 0x43c8e1
push dword [ebp - 0x2fc]
call fcn.00403dc0
pop ecx
push 0xa0
call fcn.004b5cee
mov esi, eax
pop ecx
mov dword [ebp - 0x304], esi
mov dword [ebp - 4], ebx
test esi, esi
je 0x43c905
lea ecx, [esi + 0x18]
call sym.GameDownloader.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_void_
jmp 0x43c907
xor esi, esi
mov eax, dword [ebp - 0x318]
mov dword [esi], eax
mov ecx, dword [ebp - 0x2f4]
mov al, byte [ebp - 0x2f5]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x30c]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 0x310]
and dword [esi + 8], 0
mov byte [esi + 0x14], al
mov eax, esi
mov dword [esi + 0x10], ecx
mov byte [esi + 0x15], 0
jmp 0x43c57e