Function at 0x427660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
push 0x52be60
push eax
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4276f1
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4276f1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4276f1
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4276f1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4276ea
push ebx
push edi
push eax
call fcn.004fb4c0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jns 0x4276f1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [ebp - 4]
test edi, edi
je 0x427727
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x427727
lea eax, [ebp + 8]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push edi
mov dword [ebp + 8], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
jmp 0x427729
xor esi, esi
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x427743
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 8], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x52b1b0]
lea eax, [ebp + 8]
push eax
push dword [esi + 4]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebp + 0xc]
movss dword [ebp + 0xc], xmm0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x427782
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x52b1b0]
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebp + 0x10]
movss dword [ebp - 0xc], xmm0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x4277c1
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
mov dword [ebp - 8], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x4277e1
mov dword [esi + 8], eax
mov ecx, dword [ebp - 8]
mov eax, ecx
cvttss2si edx, dword [ebp + 0xc]
shr eax, 0x1f
cvttss2si ebx, dword [ebp - 0xc]
mov dword [ebp + 0x10], edx
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
mov dword [ebp + 0xc], ebx
addsd xmm1, qword [eax*8 + 0x52b1b0]
mov eax, dword [ebp + 8]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x52b1b0]
divsd xmm1, xmm0
cmp ecx, dword [ebp + 8]
jbe 0x42783f
movd xmm0, edx
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [ebp + 0xc], eax
jmp 0x427852
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [ebp + 0x10], eax
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov ebx, eax
test ebx, ebx
je 0x4278b6
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImagePixelFormat
test eax, eax
je 0x427872
mov dword [esi + 8], eax
lea eax, [ebp - 0xc]
mov dword [ebx], vtable.Gdiplus::Bitmap.0
push eax
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0xc], 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 4], eax
lea eax, [ebp + 8]
push eax
push dword [ebx + 4]
mov dword [ebp + 8], 0
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov edi, dword [ebp + 8]
jmp 0x4278bd
xor ebx, ebx
xor edi, edi
mov dword [ebp + 8], edi
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 0
push 0
push dword [esi + 4]
push edi
call sub.gdiplus.dll_GdipDrawImageRectI
push edi
call sub.gdiplus.dll_GdipDeleteGraphics
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret