Function at 0x41eca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
push 0x5878cc
movzx eax, cx
push eax
push 0
movss dword [esp + 0x28], xmm2
movss dword [esp + 0x2c], xmm1
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41ed3c
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 0x41ed3c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x41ed3c
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x41ed3c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41ed35
push ebx
push edi
push eax
call fcn.004faeb0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x14]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jns 0x41ed3c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.gdiplus.dll_GdipAlloc]
test edi, edi
je 0x41ed7a
push 0x10
call ebx
mov esi, eax
test esi, esi
je 0x41ed7a
lea eax, [esp + 0x10]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push edi
mov dword [esp + 0x18], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
jmp 0x41ed7c
xor esi, esi
mov ebp, dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
lea eax, [esp + 0x14]
push eax
push dword [esi + 4]
mov dword [esp + 0x1c], 0
call ebp
test eax, eax
je 0x41ed9b
mov dword [esi + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x587d90]
lea eax, [esp + 0x14]
push eax
push dword [esi + 4]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x28]
movss dword [esp + 0x28], xmm0
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x41ede0
mov dword [esi + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x587d90]
lea eax, [esp + 0x18]
push eax
push dword [esi + 4]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x24]
movss dword [esp + 0x1c], xmm0
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x41ee25
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push dword [esi + 4]
mov dword [esp + 0x24], 0
call ebp
test eax, eax
je 0x41ee46
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x1c]
mov eax, ecx
cvttss2si edx, dword [esp + 0x14]
shr eax, 0x1f
cvttss2si ebp, dword [esp + 0x20]
mov dword [esp + 0x14], edx
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
addsd xmm1, qword [eax*8 + 0x587d90]
mov eax, dword [esp + 0x10]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x587d90]
divsd xmm1, xmm0
cmp ecx, dword [esp + 0x10]
jbe 0x41eea8
movd xmm0, ebp
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [esp + 0x14], eax
jmp 0x41eeb8
movd xmm0, edx
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si ebp, xmm0
push 0x10
call ebx
mov ebx, eax
test ebx, ebx
je 0x41ef23
lea eax, [esp + 0x24]
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImagePixelFormat]
test eax, eax
je 0x41eed7
mov dword [esi + 8], eax
lea eax, [esp + 0x20]
mov dword [ebx], vtable.Gdiplus::Bitmap.0
push eax
push 0
push dword [esp + 0x2c]
mov dword [esp + 0x2c], 0
push 0
push dword [esp + 0x24]
push ebp
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromScan0]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 4], eax
lea eax, [esp + 0x10]
push eax
push dword [ebx + 4]
mov dword [esp + 0x18], 0
call dword [sym.imp.gdiplus.dll_GdipGetImageGraphicsContext]
mov edi, dword [esp + 0x10]
jmp 0x41ef2b
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x10], edi
push dword [esp + 0x14]
push ebp
push 0
push 0
push dword [esi + 4]
push edi
call dword [sym.imp.gdiplus.dll_GdipDrawImageRectI]
push edi
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x18
ret