Function at 0x41a2e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fe3d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x47d144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
lea esi, [ecx + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x41a32e
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0x47f1a4
push 0x47f1c4
push 0
push ebx
mov dword [ebp - 4], 0
call fcn.00442326
add esp, 0x14
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x41a35a
xor bl, bl
jmp 0x41a560
push 0x14
call fcn.00428263
mov ebx, eax
add esp, 4
mov dword [ebp - 0x28], ebx
push ebx
mov dword [ebx], vtable.eset::ResourceStream.0
mov dword [ebx + 4], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
call fcn.00419b10
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x41a544
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41a544
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebx + 8], eax
test eax, eax
je 0x41a544
push dword [ebp - 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x41a3e4
mov dword [ebx + 8], eax
jmp 0x41a544
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
mov dword [ebp - 0x30], edi
test edi, edi
je 0x41a544
lea eax, [ebp - 0x28]
mov dword [edi], vtable.Gdiplus::Bitmap.0
push eax
push ebx
mov dword [ebp - 0x28], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [edi + 4], eax
mov eax, dword [edi + 8]
mov dword [edi + 8], 0
test eax, eax
jne 0x41a531
lea eax, [ebp - 0x2c]
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImagePixelFormat]
test eax, eax
je 0x41a440
mov dword [edi + 8], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
movzx eax, word [ebp + 0x1c]
push 0
push dword [ebp - 0x2c]
push 0
push eax
movzx eax, word [ebp + 0x18]
push eax
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromScan0]
push 8
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x41a528
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push dword [ebp - 0x28]
call dword [sym.imp.gdiplus.dll_GdipGetImageGraphicsContext]
mov ecx, dword [ebp - 0x34]
push ecx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ecx], eax
call fcn.00419820
movzx edx, word [ebp + 0x1c]
movzx eax, word [ebp + 0x24]
movzx ecx, word [ebp + 0x18]
push 0
push 0
push 0
push 2
push edx
push ecx
imul eax, edx
push eax
movzx eax, word [ebp + 0x20]
imul eax, ecx
push eax
mov eax, dword [ebp - 0x34]
push edx
push ecx
push 0
push 0
push dword [edi + 4]
push dword [eax]
call dword [sym.imp.gdiplus.dll_GdipDrawImageRectRectI]
mov ecx, eax
mov eax, dword [ebp - 0x34]
test ecx, ecx
je 0x41a4dc
mov dword [eax + 4], ecx
push dword [eax]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push dword [ebp - 0x34]
call dword [sym.imp.gdiplus.dll_GdipFree]
mov eax, dword [edi]
push 1
mov edi, dword [eax]
mov ecx, edi
call dword [0x4623b8]
mov ecx, dword [ebp - 0x30]
call edi
lea edx, [ebp - 0x20]
call fcn.00419e60
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push 0
push eax
push dword [ebp - 0x38]
push edi
call dword [sym.imp.gdiplus.dll_GdipSaveImageToStream]
push edi
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
mov byte [ebp - 0x21], 1
jmp 0x41a549
push dword [ebp - 0x28]
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
mov eax, dword [edi]
push 1
mov edi, dword [eax]
mov ecx, edi
call dword [0x4623b8]
mov ecx, dword [ebp - 0x30]
call edi
xor al, al
mov byte [ebp - 0x21], al
mov byte [ebp - 4], 1
mov eax, dword [ebx]
push ebx
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x4623b8]
call edi
mov bl, byte [ebp - 0x21]
test esi, esi
je 0x41a56b
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004281b1
mov esp, ebp
pop ebp
ret 0x20