Function at 0x4982b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
movzx ecx, word [ebp + 0xc]
push esi
push edi
cmp eax, 2
jne 0x4983d6
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push ecx
push dword [ebp + 8]
call sub.gdiplus.dll_GdipCreateBitmapFromResource
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipGetImageHeight
mov esi, dword [ebp - 4]
lea eax, [ebp + 0x10]
push eax
push edi
mov dword [ebp + 0x10], 0
call sub.gdiplus.dll_GdipGetImageWidth
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x508910]
lea eax, [ebp + 0x10]
push eax
push edi
push 0
cvtpd2ps xmm1, xmm0
sub esp, 0x10
movd xmm0, esi
cvtdq2pd xmm0, xmm0
shr esi, 0x1f
addsd xmm0, qword [esi*8 + 0x508910]
cvtpd2ps xmm0, xmm0
movss dword [esp + 0xc], xmm0
movss dword [esp + 8], xmm1
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.gdiplus.dll_GdipCloneBitmapArea
test eax, eax
jne 0x4983c0
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x4983a2
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esi + 8], 0
mov dword [esi + 4], ecx
push edi
mov dword [eax], esi
call sub.gdiplus.dll_GdipDisposeImage
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
xor esi, esi
call sub.gdiplus.dll_GdipDisposeImage
mov eax, dword [ebp + 0x14]
push edi
mov dword [eax], esi
call sub.gdiplus.dll_GdipDisposeImage
pop edi
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
xor esi, esi
push edi
mov dword [eax], esi
call sub.gdiplus.dll_GdipDisposeImage
pop edi
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4983ee
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
mov ebx, eax
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 2
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push esi
push eax
call fcn.004d1a20
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edi, dword [ebp + 0x10]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
pop ebx
test esi, esi
je 0x49847a
lea eax, [ebp - 4]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push edi
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
jmp 0x49847c
xor esi, esi
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret