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

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov eax, dword [esi + 4]
mov dword [esp + 0x10], ebp
cmp eax, ebp
je 0x47b779
mov ecx, dword [0x5ed028]
cmp ecx, eax
lea ecx, [esi + 8]
jne 0x47b706
mov edx, dword [0x50abe0]
and edx, 0xffff
push edx
jmp 0x47b70b
push 0x83e
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebp
je 0x47b80d
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, ebp
je 0x47b76d
mov ecx, dword [esi + 4]
push edi
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 0x47b76d
lea edx, [esp + 0x10]
push edx
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x47b76d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47b76d
mov ecx, dword [eax]
push 0
push ebp
push ebx
push eax
call dword [ecx + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x47b80b
lea eax, [esi + 8]
push 0x5021a4
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov edi, eax
add esp, 8
cmp edi, ebp
je 0x47b80d
push 2
push ebp
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
mov ebx, eax
add esp, 0x10
cmp ebx, ebp
jbe 0x47b801
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x47b801
push 0
push 0
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
push edi
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 0x47b7f8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47b7f8
mov ecx, dword [eax]
push 0
push ebx
push ebp
push eax
call dword [ecx + 0x10]
push ebp
call fcn.004d7f79
add esp, 4
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor ebp, ebp
mov eax, dword [esp + 0x10]
mov dword [esi + 4], ebp
cmp eax, ebp
mov word [esi + 8], bp
je 0x47b856
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
cmp edi, ebp
je 0x47b844
mov ecx, dword [esp + 0x10]
lea eax, [edi + 4]
push eax
push ecx
mov dword [edi], 0x4e4e7c
mov dword [eax], ebp
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [edi + 8], eax
jmp 0x47b846
xor edi, edi
mov eax, dword [esp + 0x10]
mov dword [esi + 0x21c], edi
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov edi, dword [esi + 0x21c]
cmp edi, ebp
je 0x47b8c1
mov ecx, dword [edi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebp
je 0x47b879
mov dword [edi + 8], eax
mov edx, dword [esp + 0x14]
mov edi, dword [esi + 0x21c]
mov dword [esi + 0x210], edx
lea eax, [esp + 0x14]
mov ecx, dword [edi + 4]
push eax
push ecx
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebp
je 0x47b8a2
mov dword [edi + 8], eax
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x210]
mov dword [esi + 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