Function at 0x4777a0
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov eax, dword [edi + 4]
cmp eax, ebp
je 0x47782c
lea ecx, [edi + 8]
push 0x83e
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebp
je 0x4778c0
mov eax, dword [edi + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, ebp
je 0x477820
mov ecx, dword [edi + 4]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x477820
lea edx, [esp + 0x10]
push edx
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x477820
mov eax, dword [esp + 0x10]
test eax, eax
je 0x477820
mov ecx, dword [eax]
push 0
push ebp
push ebx
push eax
call dword [ecx + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4778be
lea eax, [edi + 8]
push 0x4fbba4
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x4778c0
push 2
push ebp
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
mov ebx, eax
add esp, 0x10
cmp ebx, ebp
jbe 0x4778b4
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4778b4
push 0
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 1
push ebx
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
lea edx, [esp + 0x10]
push edx
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4778ab
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4778ab
mov ecx, dword [eax]
push 0
push ebx
push ebp
push eax
call dword [ecx + 0x10]
push ebp
call fcn.004d2e69
add esp, 4
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor ebp, ebp
mov eax, dword [esp + 0x10]
mov dword [edi + 4], ebp
cmp eax, ebp
mov word [edi + 8], bp
je 0x477909
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebp
je 0x4778f7
mov ecx, dword [esp + 0x10]
lea eax, [esi + 4]
push eax
push ecx
mov dword [esi], 0x4dfe54
mov dword [eax], ebp
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x4778f9
xor esi, esi
mov eax, dword [esp + 0x10]
mov dword [edi + 0x21c], esi
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov esi, dword [edi + 0x21c]
cmp esi, ebp
je 0x477974
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebp
je 0x47792c
mov dword [esi + 8], eax
mov edx, dword [esp + 0x14]
mov esi, dword [edi + 0x21c]
mov dword [edi + 0x210], edx
lea eax, [esp + 0x14]
mov ecx, dword [esi + 4]
push eax
push ecx
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebp
je 0x477955
mov dword [esi + 8], eax
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x210]
mov dword [edi + 0x214], edx
xor eax, eax
pop edi
cmp ecx, ebp
pop esi
pop ebp
setg al
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret